Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Bitmap background in MDIClient window Collapse All
Subject Author Date
Lynn Reid Jun 17, 2006 - 11:24 PM

Hi:
I’m very new to Prof-UIS (like this week!). I’m trying to convert an existing application to use Prof-UIS. I’ve got the tabbed windows working for my MDI Clients. Before any documents are opened, how do I paint the background of the clients? e.g. how do I make the "interior" of the Mainframe show up a company logo? I have taken a look at the TabbedBars example and it is quite overwhelming. I don’t need the bitmap to be consistent across toolbars, or work with any theme, etc. -- just to show up! The bitmap should be tiled.

I have implemented the OnMsgPaintInheritedBackground registered message in my CMDIChildWnd class -- but since it is never even called I’m clearly doing something wrong. Please, can you start from the beginning on changing my CMDIChildWnd class and pretend I’m an idiot? Many thanks.

Technical Support Jun 19, 2006 - 3:19 AM

The TabbedBars sample really demonstrates this advanced feature of Prof-UIS paint managers: painting of complex inherited backgrounds. This feature is turned off by default. That is why your message handlers are not invoked. To turn it on, please use the following code:

g_PaintManager->m_bCustomBackgroundInheritanceEnabled = true;
This line should be invoked in two cases: during startup and when the active paint manager changes.