|
From: <jos...@ya...> - 2001-07-09 08:28:56
|
Hi, I don't know the correct answer but perhaps you may want to investigate the message WM_DRAWITEM. Cheers, Chemanuel --- Lorenzo <co...@in...> escribió: > 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. > ---------------------------------------------------------------------------- > --- > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger: Comunicación instantánea gratis con tu gente - http://messenger.yahoo.es |