[comp.windows.ms.programmer] Painting on buttons in dialogs

brian@moci.UUCP (Brian Daleiden) (11/20/90)

  I am trying to paint on the face of some buttons in a dialog without
creating a BS_USERBUTTON. With buttons created in a window directly,
one would just process the WM_CTLCOLOR message, selecting and returning
the desired brush with which to paint.
  But, dialogs return a BOOL type, not the long of a WNDPROC. When I
do intercept the WM_CTLCOLOR message, nothing is drawn on the face of
the buttons. Trying to manually paint the client rect of the button
results in the rect being painted followed by the button redraw over
the painted area.
  Any ideas on how to paint a button when it's in a dialog parent window?
I would like to keep away from manually drawing a BS_USERBUTTON if possible.

  Thanks,
    Brian


  Brian Daleiden  ICOM Inc. Milwaukee, WI
  !uwm.edu!moci!brian