|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Sep 2006
Città: M.O.F.N. (Middle of Fuckin Nowhere)
Messaggi: 309
|
[c++ & win32 api] BITMAPS
io ho un dialog con uno static bitmap che ha come id IMG_BR
il dialog ha come handle hwnd ho inoltre incluso nelle risorse alcuno file .bmp che dovrei mettere proprio nell' IMG_BR. prendiamo in esempio il file 1 c.bmp avevo visto le funzioni LoadBitmap() e SendMessage(), ma non ho capito molto. come faccio a far visualizzare quell'immagine? |
|
|
|
|
|
#2 | |
|
Senior Member
Iscritto dal: Nov 2005
Città: TO
Messaggi: 5206
|
Quote:
HBITMAP hbmp; hbmp = LoadBitmap (hInstance, MAKEINTRESOURCE (ID_BITMAP)); poi mandi al controllo static il messaggio STM_SETIMAGE: SendDlgItemMessage (hwnd, IMG_BR, STM_SETIMAGE, IMAGE_BITMAP, (WPARAM) hbmp);
__________________
Andrea, SCJP 5 (91%) - SCWCD 5 (94%) |
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 22:31.




















