Click here to Skip to main content
15,900,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS 2005 Customization Pin
Office Lineman14-Apr-06 10:35
Office Lineman14-Apr-06 10:35 
QuestionUpgraded MFC app does not have xp styles Pin
Kurt _B14-Apr-06 6:03
Kurt _B14-Apr-06 6:03 
AnswerRe: Upgraded MFC app does not have xp styles Pin
Warren Stevens14-Apr-06 6:43
Warren Stevens14-Apr-06 6:43 
GeneralRe: Upgraded MFC app does not have xp styles Pin
Kurt _B14-Apr-06 7:38
Kurt _B14-Apr-06 7:38 
Questionpocket pc programming in MFC Pin
stacy114-Apr-06 5:56
stacy114-Apr-06 5:56 
QuestionHOW TO CALL OR LOAD .BMP FILE Pin
izzah_mustapha14-Apr-06 5:31
izzah_mustapha14-Apr-06 5:31 
AnswerRe: HOW TO CALL OR LOAD .BMP FILE Pin
David Crow14-Apr-06 5:35
David Crow14-Apr-06 5:35 
AnswerRe: HOW TO CALL OR LOAD .BMP FILE Pin
Le Thanh Cong16-Apr-06 21:55
Le Thanh Cong16-Apr-06 21:55 
Add a bitmap resource with an ID of IDB_MYBITMAP (or whatever ID you want) to your project. With App Studio, you can do this by either creating a new bitmap resource and setting the ID, or by choosing Resource, Import, and importing an already created bitmap with a .BMP extension.
Using LoadBitmap() to load bitmap in your resource, example
void CMyDlg::OnPaint()
{
CPaintDC dc( this ); // Device context for painting

CBitmap bmp, *poldbmp;
CDC memdc;

// Load the bitmap resource
bmp.LoadBitmap( IDB_CORPLOGO );

// Create a compatible memory DC
memdc.CreateCompatibleDC( &dc );

// Select the bitmap into the DC
poldbmp = memdc.SelectObject( &bmp );

// Copy (BitBlt) bitmap from memory DC to screen DC
dc.BitBlt( 10, 10, 47, 47, &memdc, 0, 0, SRCCOPY );

memdc.SelectObject( poldbmp );

// Do not call CDialog::OnPaint() for painting messages
}

-----------------
conglt
Questionerror Pin
swapna_signsin14-Apr-06 5:13
swapna_signsin14-Apr-06 5:13 
AnswerRe: error Pin
Cedric Moonen14-Apr-06 5:19
Cedric Moonen14-Apr-06 5:19 
AnswerRe: error Pin
David Crow14-Apr-06 5:20
David Crow14-Apr-06 5:20 
QuestionHow to save the toolbar settings and selection Pin
Veeresh Hiremath14-Apr-06 4:29
Veeresh Hiremath14-Apr-06 4:29 
AnswerRe: How to save the toolbar settings and selection Pin
grigsoft14-Apr-06 6:04
grigsoft14-Apr-06 6:04 
AnswerRe: How to save the toolbar settings and selection Pin
Le Thanh Cong16-Apr-06 21:59
Le Thanh Cong16-Apr-06 21:59 
QuestionEdit control in VC++ Pin
sudeep_br14-Apr-06 4:22
sudeep_br14-Apr-06 4:22 
AnswerRe: Edit control in VC++ Pin
toxcct14-Apr-06 4:29
toxcct14-Apr-06 4:29 
AnswerRe: Edit control in VC++ Pin
Chris Losinger14-Apr-06 4:38
professionalChris Losinger14-Apr-06 4:38 
AnswerRe: Edit control in VC++ Pin
David Crow14-Apr-06 4:47
David Crow14-Apr-06 4:47 
QuestionA question about CTreeCtrl Pin
onlysaint14-Apr-06 4:00
onlysaint14-Apr-06 4:00 
AnswerRe: A question about CTreeCtrl Pin
Michael Dunn14-Apr-06 7:37
sitebuilderMichael Dunn14-Apr-06 7:37 
Questionhlp on comboboxes Pin
swapna_signsin14-Apr-06 3:33
swapna_signsin14-Apr-06 3:33 
AnswerRe: hlp on comboboxes Pin
David Crow14-Apr-06 3:50
David Crow14-Apr-06 3:50 
QuestionHardware abstraction layer Pin
Cedric Moonen14-Apr-06 3:09
Cedric Moonen14-Apr-06 3:09 
AnswerRe: Hardware abstraction layer Pin
Prakash Nadar14-Apr-06 3:20
Prakash Nadar14-Apr-06 3:20 
Questionworking with threads Pin
keerthikaaa14-Apr-06 2:28
keerthikaaa14-Apr-06 2:28 

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.