Article View: comp.windows.ms.programmer
Article #662Painting on buttons in dialogs
From: Brian Daleiden
Date: Tue, 20 Nov 1990 14:54
Date: Tue, 20 Nov 1990 14:54
19 lines
1179 bytes
1179 bytes
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
Technical Details
Message-ID:
<9@moci.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uwm.edu!moci!brianShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uwm.edu!moci!brian From: brian@moci.UUCP (Brian Daleiden) Newsgroups: comp.windows.ms.programmer Subject: Painting on buttons in dialogs Keywords: dialog button Message-ID: <9@moci.UUCP> Date: 20 Nov 90 14:54:01 GMT Organization: Icom, Inc., West Allis, WI Lines: 19