LoadBitmap API Function, access the predefined bitmaps used by the Win32 API by setting the hInstance parameter to NULL.
Vortex |
|
Very Very Active Member
Group: Moderators
Posts: 85
Member No.: 8
Joined: 13-May 04
|
Following Iczelion's tutorial #25, I am able to display a bitmap initialized with LoadBitmap inside a dialog box created with DialogBoxParam. Can anyone point me in the right direction if I misundestood the problem?
CODE | .IF uMsg==WM_INITDIALOG invoke LoadBitmap,hModule,ID_BITMAP mov hBitmap,eax
.ELSEIF uMsg==WM_PAINT invoke BeginPaint,hWnd,ADDR ps mov hDC,eax invoke CreateCompatibleDC,hDC mov hMemDC,eax invoke SelectObject,hMemDC,hBitmap invoke GetClientRect,hWnd,ADDR rect invoke BitBlt,hDC,0,0,rect.right,rect.bottom,hMemDC,0,0,SRCCOPY invoke DeleteDC,hMemDC invoke EndPaint,hWnd,ADDR ps
|
OS : Win XP Pro Sp2
Attached File ( Number of downloads: 5 )
Bitmapdlg.zip
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
|