Gernot Frisch
unread,Jan 30, 2012, 11:01:27 AM1/30/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
I can set the HBITMAP of a static control perfectly. But when I try to get
the HBITMAP, I always get 0.
// this works, I can see it
HBITMAP copyxp = SendMessageA((HWND)pW, STM_SETIMAGE, (WPARAM)0,
(LPARAM)(*pBmp));
// this will return 0. I call it right after the STM_SETIMAGE.
HBITMAP hGetImg = SendMessageA((HWND)pW, STM_GETIMAGE, (WPARAM)0,
(LPARAM)0);
..
if(copyxp) DeleteObject(copyxp);