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 the function to repaint a window immediately?
How will we unable and disable services in win 7 ?
What Message to limit the size of window?
System call executable binary file into a process
What is Function entry for DLL in win3.1?
explain WM_PAINT message ?????
how to Initialize contents of a dialog?
About GDI object?
What is preemption and context switching?
Message to limit the size of window
what Message displayed when a window is destroyed
How to load Bitmap at Dialogbakground in an MFC application?
1 Answers SunSoft Technologies,