May 04, 2024, 01:16:33 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Flat toolbars in an MDI window

Started by Parker, May 16, 2006, 02:42:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Parker

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.

Ionic Wind Support Team

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.

Ionic Wind Support Team

Parker

I figured it out, I thought that I could do everything in OnCreate, but after I moved it to main it worked.

Ionic Wind Support Team

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.
Ionic Wind Support Team