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 » Redrawing ribbon bar title? Collapse All
Subject Author Date
Robert Webb Mar 22, 2010 - 1:29 AM

Hi,


Seems like this should be the simplest thing, but when I call SetTitle() for my CDocument, neither the MDI tab label nor the overall window title are updated.  How can I force these things to update?


The MDI tab label I can get to redraw with "m_MDITabs.InvalidateRect(NULL)", but I think sometimes if the title is longer than it was, then the size of the tab is not increased to match.


As for the overall window title (at the top of the ribbon bar), I don’t really want to redraw the whole ribbon bar just to update the title.  What’s the right way to do this?


Thanks,


Rob.

Technical Support Mar 22, 2010 - 11:36 AM

If the main frame caption or MDI child frame caption has changed, Prof-UIS is able to intercept the standard WM_SETTEXT window message and update ribbon bar caption, MDI tab items, skinned window non client area caption, everything else. But the CDocument object is handle-less. Please override the CDocument::SetTitle() virtual method, invoke the parent class method and then invalidate the ribbon bar and update MDI tabs using the CExtTabWnd::UpdateTabWnd() method.