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 » CExtControlBar question (Part3 ) Collapse All
Subject Author Date
tera tera Jun 24, 2009 - 4:11 AM

Hello.


I am hard to see Pin and CloseButton

Therefore I want to draw with white



http://www.prof-uis.com/prof-uis/tech-support/support-forum/cextcontrolbar-question-part2-64809.aspx

Technical Support Jun 24, 2009 - 12:55 PM

You can override the CExtControlBar::NcButtons_HandleDraw() virtual method for painting custom caption buttons.
The control bars are tool windows. We think the captions on the screenshot are OK. You can really see buttons because they are changed when covered by mouse. The white color icons will be too bright.

tera tera Jun 26, 2009 - 3:46 AM

Hello.


I want to draw the float bar with green.

Had better I remodel PaintManager?


Technical Support Jun 26, 2009 - 1:11 PM

You should create your own CExtMiniDockFrameWnd-derived class and implement the CExtMiniDockFrameWnd::RenderNC() virtual method. To make both MFC and Prof-UIS using your mini frame class with all the control bars, you should invoke the following line of code from the main frame’s method:

       m_pFloatingFrameClass = RUNTIME_CLASS(CYourMiniDockFrameWnd);


tera tera Jun 28, 2009 - 7:39 PM

 


It is troublesome to revise here and there.

Is not there the method else?


For example, I improve CExtPaintManagerStudio2008?

Technical Support Jun 30, 2009 - 6:03 AM

Yes, you should override the CExtPaintManager::PaintGripper() virtual method. This virtual method paint the gripper of a toolbar, the caption of a toolbar, and the caption of a floating mini frame.