1 2 3 4 5 6 7 8 9 10 11 12
|
void makeGUI(HWND hwnd)
{
static1 = CreateWindow("STATIC","",WS_CHILD | SS_BITMAP,
100,100,150,150,
hwnd,(HMENU) STATIC1,hInst,NULL);
ShowWindow(static1,SW_SHOW);
bmp1 = (HBITMAP) LoadImage(hInst,"pic1.bmp",IMAGE_BITMAP,100,100,LR_LOADFROMFILE);
SendMessage(static1,STM_SETIMAGE,(WPARAM) IMAGE_BITMAP,(LPARAM) bmp1);
}
|