Changing Statusbar Colors, Fonts & Controls

A Statusbar can have several parts and each part can have a different color and font.  Because of the number of statusbar parts can change, a dynamic structure is defined to store text and background colors, an icon handle, a font handle and a logical font.  The logical font is used to recreate the font since the font handle cannot be saved to a file.  Icons are not saved in this implementation as I did not find them that useful.  Most probably the icon file name or the values of predefined icons are used.

Each time the statusbar must be redisplayed, we have to do all the drawing and painting by ourselves. This occurs in  OS.Windows.Procs.OnDrawItemHandle.  The owner draw structure contained in tlParam has all the necessary information to perform all the necessary painting and drawing for use by OS.Windows.Controls.Statusbars.DrawPart.
Changing the attributes on the fly by right clicking on a particular statusbar part is a very useful feature for a main window, Therefore this is implemented in OS.Windows.Main.  The statusbar must be subclassed to intercept the right mouse click.  However this is not implemented for dialog boxes as it would be a over kill.

Controls such as push buttons and edit boxes can be placed into different parts of a statusbar.  All such controls must be subclassed to intercept any desired message and forwarded to the parent of the statusbar for the desired action.

Back To Changing Trackbar Colors & Customization
Home