How to load Bitmap at Dialogbakground in an MFC application?
Answer / john k gummadi
In OnInitDialog:
-----------------
1. Create CBitmap from the bitmap.
2. Create a memory DC (CDC)
3. Put the CBitmap into the memory DC (Use
CDC::SelectObject function).
In OnPaint:
------------
4. Get your dialog DC (CDialog::GetDC)
5. Do BitBlt or StretchBlt on dialog DC with memory DC as
source DC (this will paint the bitmap on your dialog).
6. Release dialog DC (ReleaseDC function)
| Is This Answer Correct ? | 13 Yes | 0 No |
What is Win32?
14 Answers AAA, Genpact, HCL, Wipro,
What is preemption ? context switching ?
what is use of the createWindow object
In win32 application if defining a variable of CString then it gives the error "CString:Undeclared identifier" how to solve the problem? What headerfile need to include??
How to load Bitmap at Dialogbakground in an MFC application?
1 Answers SunSoft Technologies,
what is the function to repaint a window immediately?
what is the difference between MFC and Win32
5 Answers ArisGlobal, Microsoft,
what is the stack size in win 32 program
what Message displayed when a window is destroyed
how radio button is active in dialog box?
how to Initialize contents of a dialog?
System call executable binary file into a process