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 API used to hide window
What is Function entry for DLL in win3.1?
sql query for delete duplicate records in sql datadbase
What Message to limit the size of window?
What is GDI object?
how radio button is active in dialog box?
win 3.1 supports which type of multi tasking?
what is the function to repaint a window immediately?
How to load Bitmap at Dialogbakground in an MFC application?
1 Answers SunSoft Technologies,
to take three string inputs in a two dimensional array of 3 rows and 15 columns and write a function that prints them.