why is it that

.elseif eax == WM_CTLCOLORDLG
mov eax,Brush
ret

that code will color a dialog window but

.elseif eax == WM_CTLCOLORBTN
mov eax,Brush
ret

won't color a button?
Posted on 2004-08-28 18:47:21 by HeXeN
You have to use SetBkColor to color the button. I don't know where the returned brush is used.
Posted on 2004-08-29 07:36:35 by Sephiroth3
thanks ill try it out.
Posted on 2004-08-29 12:07:33 by HeXeN
You have to use SetBkColor to color the button. I don't know where the returned brush is used.
IIRC, SetBkColor only colours the background of the text on the button. The button has to have the BS_OWNERDRAW style before the returned brush has any effect on the button background. Find out everything you need to know right here.
Posted on 2004-09-02 03:39:18 by sluggy