News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Statusbar color

Started by starzboy, July 18, 2009, 02:28:51 PM

Previous topic - Next topic

starzboy

Hi

I have colored a dialogbox and the statics, but the color of status bar has not chnaged and looks weird.
How does one change the color of a statusbar ?

thanx

ramguru

maybe with SB_SETBKCOLOR message  :wink

MichaelW

In my quick test sending a SB_SETBKCOLOR message from the WM_INITDIALOG handler worked as expected for a dialog that was not user-sizable. But for a user-sizeable dialog the sizing area at the right end of the status bar remained at the default background color, unaffected by the color set with SB_SETBKCOLOR or in my WM_CTLCOLORDLG handler. The attachment shows the problem. At this point I have no idea of how to correct the problem.

[attachment deleted by admin]
eschew obfuscation

Slugsnack

it might be worth it to try to call setwindowpos() after you send the message. some changes don't always take place till you do that. eg. setwindowlong

MichaelW

The problem can be eliminated by maximizing the window (but only while it is maximized), and otherwise the problem is not affected by moving, sizing, or forcing a redraw.
eschew obfuscation