HBRBACKGROUND class member Question
Posted on 1997-09-12
I would like my dialog box to display using a different background color for the buttons, static displays, dialog background (pretty much everything). In my WM_INITDIALOG, I'm calling SetClassLong with parms:
hwnd (dialog box hwnd),
HBRUSH (brush handle from successful CreateSolidBrush)
However, I receive error back. Why won't this work.
Alternatively, I can use WM_CTLCOLORBTN/DLG/EDIT/... and return my brush handle there. However, doing so works for DLG but BTN ignores me. Also, even if I got BTN to take my brush the borders around DLG and BTN are still colored according to system 3-D objects color. Therefore, I would like to get the first method to work instead.
Thanks for help!