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 » I want to paint custum background graphics or image in CExtResiablePropertySheet..Howto...? Collapse All
Subject Author Date
Eun Hyang Im Sep 7, 2008 - 5:21 AM

I want to paint custum background graphics or image in CExtResiablePropertySheet, CExtResiablePropertyPage and CExtResiableDialog.


I tried to do this at draw OnPaint , OnEraseBackground and OnCtlColor....etc...


But my paint method did not show, Only I can view CExt.... Theme background....


 


How to do this ? please help me


 

Technical Support Sep 8, 2008 - 7:04 AM

Prof-UIS supports painting of inherited background and custom drawn background of dialog can automatically appear in dialog controls like static labels. This feature is demonstrated in the TabbedBars sample application where you can see gradient like custom painted background on dialog pages inside One Note tab page container with colored tabs and you can also turn on painting of hurricane like background for entire main frame window. But this feature is turned off by default. To turn it on you should invoke the g_PaintManager->m_bCustomBackgroundInheritanceEnabled = true; code both at startup and after each paint manager changing. You should also handle the CExtPaintManager::g_nMsgPaintInheritedBackground registered message in your dialog class and/or property page class for painting their custom backgrounds. Your message handlers will be invoked both for painting background of dialog window and for all its child controls including created at deep nested levels (child controls of child controls ...). You can take a look at how this registered message is handed in the TabbedBars sample application.