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 » CExtTabMdiWnd caption Collapse All
Subject Author Date
Krustys Donuts Sep 12, 2005 - 10:51 PM

I used your example to put a custom caption into a tab managed by a CExtTabMdiWnd. What’s the best way to dynamically change that caption later? If I use SetTitle() and/or SetWindowText(), the text doesn’t change until I move the mouse over the tab. And it won’t resize in any case (if the new caption is longer than the old caption). What do you suggest?

Thanks.

Krustys Donuts Sep 12, 2005 - 11:45 PM

Never mind... RecalcLayout(). Duh.

Technical Support Sep 13, 2005 - 4:01 AM

You should invoke the CExtTabWnd::UpdateTabWnd() in this case.