Can somebody tell me how i can color a window so that i don't have that boring windows color pallete but just me own.
I want it to be black and green but don't know how o_O
I want it to be black and green but don't know how o_O
For dialogs, you can use WM_CTLCOLORDLG message to SetTextColor() and SetBkColor() your dialog. For windows, you can use WNDCLASSEX.hbrBackground before you RegisterClassEx(). Set it to a valid brush.
tnx but how do i make them black ? color_black doesn't work o_O
GetStockObject(BLACK_BRUSH)
return that in WM_CTLCOLORDLG if you are using dialogs and set that for WNDCLASSEX.hbrBackground if you are using windows.
return that in WM_CTLCOLORDLG if you are using dialogs and set that for WNDCLASSEX.hbrBackground if you are using windows.
is there anywhere a database or something which holds every color ?
Use CreateSolidBrush to create a new brush with a given colour.
tnx but lost anyway so i'll start over with the tutorial's :/
mov wc.hbrBackground, COLOR_BTNFACE+1
if i replace color_btnface+1 to black_brush it doesn't work it shows some nasty grey O_o
what did i do wrong ?
if i replace color_btnface+1 to black_brush it doesn't work it shows some nasty grey O_o
what did i do wrong ?
invoke GetStockObject, BLACK_BRUSH
mov wc.hbrBackground, eax
Use COLOR_WINDOW+2 on wcx.hbrBackground.
What?
mov wc.hbrBackground, COLOR_WINDOW+2 :)
What?
tnx
How can i change the color of the window itself ( like the blue bar, the grey where the menu is ) ?
How can i change the color of the window itself ( like the blue bar, the grey where the menu is ) ?
Such non-client areas need to be owner-drawn if you need to change their color. That's a more difficult process.
and only that stupid grey can i change that ? or is that to difficult ?
What stupid gray?
the grey where all menu items are in ( like in explorer where the buttons home previous next stop refresh etc. are in ) don't know the name of that area :confused:
You mean the toolbars and the menu bar?
Look for:
:: IDEBar by Thomas - www.madwizard.org
:: XPMenu by Sloat - ask him to send you the xpmenu since it isn't available for d/l on his site.
Maybe their source codes wil help ya!
Look for:
:: IDEBar by Thomas - www.madwizard.org
:: XPMenu by Sloat - ask him to send you the xpmenu since it isn't available for d/l on his site.
Maybe their source codes wil help ya!
allright tnx very much both