I am having trouble with STM_SETIMAGE. Here's some code:
HBITMAP loadSpec = (HBITMAP)LoadImage(GetModuleHandle(0), MAKEINTRESOURCE(501), 335, 260, IMAGE_BITMAP, 0);
hFrame=CreateWindow(
"static",
NULL,
WS_CHILD | WS_VISIBLE | SS_BITMAP,
0, 0, 335, 260,
hwnd,
0,
0,
0
);
SendMessage(hFrame, STM_SETIMAGE, (LPARAM)IMAGE_BITMAP, (WPARAM)loadSpec);
Nothing happens! What's wrong?