I'm sending a message directly to the button on the dialog with
Originally Posted by Cool-August
. The button is actually a button control, not a button done with CreateWindow. If I used GetDC and all that to draw within the button wouldn't it still be limited to the frame? Currently everything "works" so to speak, it's just that if I have an 80x20 pixel bitmap and an approx. 60x10 button then only 60x10 of the bitmap will be displayed.
SendDlgItemMessage(hDlg, IDC_OKAYBUTTON, BM_SETIMAGE, (WPARAM)IMAGE_BITMAP, (LPARAM)LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_OKAY)));