IonicWind Software

Aurora Compiler => GUI => Topic started by: Parker on May 16, 2006, 02:42:39 PM

Title: Flat toolbars in an MDI window
Post by: Parker on May 16, 2006, 02:42:39 PM
Apparently MDI windows don't change background color, which means that flat toolbars look bad with the white background instead of GetSysColor( 15 ). I did use the SetWindowColor( GetSysColor( 15 ) ); call, but it seems to do nothing.
Title: Re: Flat toolbars in an MDI window
Post by: Ionic Wind Support Team on May 16, 2006, 03:22:00 PM
Where did you use the call?   On Create is too early to use SetWindowColor.  MDI frame windows use whatever system setting you have for the color.

Title: Re: Flat toolbars in an MDI window
Post by: Parker on May 16, 2006, 03:32:02 PM
I figured it out, I thought that I could do everything in OnCreate, but after I moved it to main it worked.
Title: Re: Flat toolbars in an MDI window
Post by: Ionic Wind Support Team on May 16, 2006, 04:06:25 PM
You can do most things in OnCreate.  But because that is called while Windows is still processing the CreateWindowEx call there are a few things you can't do.  SetWindowColor is one of them.  Although I can probably code around that.