Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sending messages to the main window Pin
Ryan Binns30-May-04 18:07
Ryan Binns30-May-04 18:07 
GeneralRe: sending messages to the main window Pin
kfaday31-May-04 2:49
kfaday31-May-04 2:49 
GeneralRe: sending messages to the main window Pin
Anthony_Yio31-May-04 0:59
Anthony_Yio31-May-04 0:59 
GeneralRe: sending messages to the main window Pin
kfaday31-May-04 2:50
kfaday31-May-04 2:50 
Generalerror C2065: 'cout' : undeclared identifier Pin
Anonymous30-May-04 13:43
Anonymous30-May-04 13:43 
GeneralRe: error C2065: 'cout' : undeclared identifier Pin
kfaday30-May-04 14:37
kfaday30-May-04 14:37 
GeneralRe: error C2065: 'cout' : undeclared identifier Pin
Michael Dunn30-May-04 16:25
sitebuilderMichael Dunn30-May-04 16:25 
Generalform background bitmap Pin
zubeido30-May-04 13:41
zubeido30-May-04 13:41 
Hi all!
I've been tring to put a bitmap background image on the main Dialog but nearest i can get is this:

CDC* pDC=GetDC();
CDC old; //New device context used as the source DC
//Creates a deice context compatible to pDC
old.CreateCompatibleDC(pDC);
CBitmap dlg_bmp;
CRect rect;
GetClientRect(&rect);
dlg_bmp.LoadBitmap(IDB_BITMAP3);
CBitmap* oldbmp= old.SelectObject(&dlg_bmp);
pDC->BitBlt(rect.left, rect.top, rect.Height(), rect.Width (),&old,0,0,SRCCOPY);
old.SelectObject(oldbmp);
dlg_bmp.DeleteObject(); //Deletes the bitmap
Invalidate();

when this runs the bitmap is loaded and it overrun the other controls hiding them
If some one help me i'd be very gratefull

AI_Warrior
GeneralRe: form background bitmap Pin
Michael Dunn30-May-04 16:27
sitebuilderMichael Dunn30-May-04 16:27 
GeneralRe: form background bitmap Pin
Aizaz31-May-04 2:14
Aizaz31-May-04 2:14 
Generalfunny working ListBox - help! Pin
Anonymous30-May-04 11:46
Anonymous30-May-04 11:46 
GeneralDeriving Edit Box Control Pin
Grahamfff30-May-04 11:11
Grahamfff30-May-04 11:11 
GeneralC++ Launches File Pin
vinniez_ok30-May-04 9:22
vinniez_ok30-May-04 9:22 
GeneralRe: C++ Launches File Pin
Ravi Bhavnani30-May-04 9:45
professionalRavi Bhavnani30-May-04 9:45 
GeneralRe: C++ Launches File Pin
Michael Dunn30-May-04 10:09
sitebuilderMichael Dunn30-May-04 10:09 
GeneralRe: C++ Launches File Pin
vinniez_ok30-May-04 13:04
vinniez_ok30-May-04 13:04 
GeneralRe: C++ Launches File Pin
Michael Dunn30-May-04 16:30
sitebuilderMichael Dunn30-May-04 16:30 
GeneralRe: C++ Launches File Pin
vinniez_ok30-May-04 17:14
vinniez_ok30-May-04 17:14 
GeneralPrinting A report in A database Pin
Youngranger30-May-04 8:30
Youngranger30-May-04 8:30 
Questionhow to get IDirectNotify Pin
laia30-May-04 8:08
laia30-May-04 8:08 
AnswerRe: how to get IDirectNotify Pin
Alexander M.,30-May-04 11:40
Alexander M.,30-May-04 11:40 
Generalthis is my method Pin
laia31-May-04 2:59
laia31-May-04 2:59 
GeneralUnicode Programming Pin
Truong D. Toan30-May-04 7:46
Truong D. Toan30-May-04 7:46 
GeneralRe: Unicode Programming Pin
f6430-May-04 8:03
f6430-May-04 8:03 
GeneralRe: Unicode Programming Pin
Truong D. Toan30-May-04 20:01
Truong D. Toan30-May-04 20:01 

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.