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 » HOW DOES ONE CHANGE ONLY THE TOOLBAR BACKGROUND ON THE FLY Collapse All
Subject Author Date
steven frierdich Jun 10, 2006 - 6:50 PM

I AM USING THE CExtToolControlBar FOR A TOOLBAR AND I NEED TO CHANGE THE BACKGROUND OF JUST THE TOOLBAR ON THE FLY. ANYONE GOT THE CODE TO DO THIS

Technical Support Jun 12, 2006 - 12:29 PM

You can do this by overriding these two toolbar’s virtual methods:

       virtual void DoPaintNC( CDC * pDC );

       virtual void DoEraseBk( CDC * pDC );
The first paints toolbar’s borders and the second paints the area under toolbar buttons.