Just like the picture, thanks...
Printable View
Just like the picture, thanks...
Use Bitmap Button Style ?
for Edit Background used :
WM_CTLCOLOREDIT for or WM_CTLCOLORSTATIC;
WM_CTLCOLOREDIT is for EDIT Text ;
WM_CTLCOLORSTATIC is for Readonly Edit Text
case WM_CTLCOLOREDIT :
{hBmp=LoadImage(...);
HBRUSH hBrush=CreatePatternBrush(hBmp);
return hBrush;
}
When I use Bitmap Button Style. Should I must use SendMessage(...)?
SendMessage(
(HWND) hWnd, // handle to destination window
BM_SETIMAGE, // message to send
(WPARAM) wParam, // image type
(LPARAM) lParam // handle to the image (HANDL)
)
I notice the botton have frame, how can I get rid the frame, only picture I want.Code:HBITMAP hBit1;
hBit1=LoadBitmap(hInstance,"IDB_LARC");
SendMessage(hwnd,BM_SETIMAGE,IMAGE_BITMAP,(LPARAM)hBit1);
Dunno I never try BITMAP Button,
May be, you can Remove the Border style From BUTTON Window,
or
if it doesn't work, use try to used Owner draw Button.
Owner draw Button, It works very good. thanks all.