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 preemption ? context switching ?
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??
describe process of creating a new class of windows ??
What are the COM components
2 Answers SunSoft Technologies,
write About send message and post message
win 3.1 supports which type of multi tasking?
Function entry for DLL in win3.1
sql query for delete duplicate records in sql datadbase
What is Win32?
14 Answers AAA, Genpact, HCL, Wipro,
What is GDI object?
what is use of the createWindow object
What is preemption and context switching?