this code create a button with a bitmap over:
hwndButton = CreateWindow(
"BUTTON",
"OK",
WS_VISIBLE| WS_CHILD | BS_DEFPUSHBUTTON |BS_BITMAP,
5,
5,
46,
46,
hwnd,
NULL,
(HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE),
NULL);
hBitmap = LoadImage(0, "stud.bmp", IMAGE_BITMAP, 92, 44,
LR_DEFAULTCOLOR | LR_LOADFROMFILE);
SendMessage(hwndButton,BM_SETIMAGE,(WPARAM)IMAGE_BITMAP,(LPARAM)hBitmap);
now i have two problems:
1. i want to move the position of the bitmap of few pixels.
2. if i disabled the button with api "EnableWindow" the button become
gray, how can i avoid this?
i hope someone can help me.
----------------------------------------------------------------------------
---
If debugging is the process of removing bugs,
then programming must be the process of putting them in.
----------------------------------------------------------------------------
---
|