Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can we open two Modal Dialogs at Same Time? Pin
Rajesh R Subramanian8-Dec-09 1:35
professionalRajesh R Subramanian8-Dec-09 1:35 
AnswerRe: Can we open two Modal Dialogs at Same Time? Pin
Richard MacCutchan8-Dec-09 2:03
mveRichard MacCutchan8-Dec-09 2:03 
AnswerRe: Can we open two Modal Dialogs at Same Time? Pin
dxlee8-Dec-09 4:10
dxlee8-Dec-09 4:10 
Question[Message Deleted] Pin
Benjamin Bruno7-Dec-09 18:15
Benjamin Bruno7-Dec-09 18:15 
AnswerRe: serialization Pin
Adam Roderick J7-Dec-09 18:24
Adam Roderick J7-Dec-09 18:24 
GeneralRe: serialization Pin
Tim Craig8-Dec-09 21:04
Tim Craig8-Dec-09 21:04 
AnswerRe: serialization Pin
Cedric Moonen7-Dec-09 20:21
Cedric Moonen7-Dec-09 20:21 
QuestionHelp - To draw image as banner with help of co-ordinates. Pin
Le@rner7-Dec-09 17:56
Le@rner7-Dec-09 17:56 
Hi all,

i m working on SDI type application,in form view of application i want to load an image as a banner ant stretch it from top left to top right.
i do this with this code that is implement over OnPaint function.
everything is working fine.
CDC* dc=this->GetDC();
	HDC memdc;
	this->GetClientRect(&rect);	
	CBitmap bitmap;
	bitmap.LoadBitmapA(IDB_HEADER);
	BITMAP bm;
	bitmap.GetBitmap(&bm);
	int w = bm.bmWidth; 
	int h = bm.bmHeight; 
	memdc=::CreateCompatibleDC(dc->m_hDC);
	::SelectObject(memdc,bitmap);
	StretchBlt(dc->m_hDC,0,0,rect.Width(),50,memdc,0,0,w,h,SRCCOPY);	
	CString Title="";
	m_Banner.GetWindowTextA(Title);	
	dc->SelectObject(m_Banner.GetFont());
	dc->SetBkMode(TRANSPARENT);
	dc->DrawText(Title, rect, DT_CENTER | DT_WORDBREAK); 


problem is occur when the form scrolled with vertical scrollbar.

please help me for this.

thanks in advance.

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

AnswerRe: Help - To draw image as banner with help of co-ordinates. Pin
Cedric Moonen7-Dec-09 20:31
Cedric Moonen7-Dec-09 20:31 
GeneralRe: Help - To draw image as banner with help of co-ordinates. Pin
Le@rner7-Dec-09 23:13
Le@rner7-Dec-09 23:13 
AnswerRe: Help - To draw image as banner with help of co-ordinates. Pin
Cedric Moonen7-Dec-09 23:48
Cedric Moonen7-Dec-09 23:48 
QuestionBitmap [modified] Pin
transoft7-Dec-09 4:00
transoft7-Dec-09 4:00 
AnswerRe: Bitmap Pin
Cedric Moonen7-Dec-09 4:27
Cedric Moonen7-Dec-09 4:27 
GeneralRe: Bitmap Pin
transoft7-Dec-09 4:58
transoft7-Dec-09 4:58 
GeneralRe: Bitmap Pin
Cedric Moonen7-Dec-09 5:01
Cedric Moonen7-Dec-09 5:01 
GeneralRe: Bitmap Pin
transoft7-Dec-09 5:06
transoft7-Dec-09 5:06 
AnswerRe: Bitmap Pin
«_Superman_»7-Dec-09 4:31
professional«_Superman_»7-Dec-09 4:31 
GeneralRe: Bitmap Pin
transoft7-Dec-09 5:04
transoft7-Dec-09 5:04 
GeneralRe: Bitmap Pin
«_Superman_»7-Dec-09 5:47
professional«_Superman_»7-Dec-09 5:47 
AnswerRe: Bitmap Pin
loyal ginger7-Dec-09 5:23
loyal ginger7-Dec-09 5:23 
AnswerRe: Bitmap Pin
Iain Clarke, Warrior Programmer8-Dec-09 4:14
Iain Clarke, Warrior Programmer8-Dec-09 4:14 
QuestionRunning a windows service in any other account other than 'SYSTEM' Pin
Kushagra Tiwari7-Dec-09 3:38
Kushagra Tiwari7-Dec-09 3:38 
AnswerRe: Running a windows service in any other account other than 'SYSTEM' Pin
Covean7-Dec-09 4:13
Covean7-Dec-09 4:13 
GeneralRe: Running a windows service in any other account other than 'SYSTEM' Pin
Kushagra Tiwari7-Dec-09 4:22
Kushagra Tiwari7-Dec-09 4:22 
GeneralRe: Running a windows service in any other account other than 'SYSTEM' Pin
Covean7-Dec-09 4:32
Covean7-Dec-09 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.