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 General Discussion » CExtTabWnd Collapse All
Subject Author Date
Mac Will Dec 13, 2005 - 2:23 PM

Hello,


I have a MDI application with the CExtTabMdiWnd control visible.  I needed a way of visualy allerting the user when something happens on a tab that is not currently set on focus.  I was thinking a flashing icon but I could not get CExtTabWnd::ItemIconSet to work.


Any ideas?


For CExtTabMdiWnd::ItemIconSet  to work do I have to override a function (maybe CExtTabWnd::OnTabWndQueryItemIcon) and not set an icon the normal way.


I am open to any ideas as long as I get the result of a visual cue that another ’tab’ needs attention.


 


Thanks a million


 


MAC

Mac Will Dec 14, 2005 - 2:52 PM

Please disregard my previous post.  I do not need an exampl of this.  I was making a simple error and fixed it and I now have it working.
Thanks
MAC

Mac Will Dec 14, 2005 - 10:06 AM

A simple example would be awesome because I can’t seem to get it to work no matter what I override.
If you have any example that uses: CExtTabMdiWnd::ItemIconSet (I don’t see one in the examples) that would be awesome.


Thanks!


P.S. Unfortunately I could not send you my project.

Technical Support Dec 14, 2005 - 9:57 AM

Your guess about overriding the OnTabWndQueryItemIcon() method is absolutely correct. The MDI tab window is based on the CExtTabWnd class (or any other derived from it) with applied the CExtTMWI template decorator class. The CExtTMWI template class automatically synchronizes the MDI tab control. It gets text and icon for each tab window from the corresponding MDI child frame window. This class also overrides the OnTabWndQueryItemIcon() virtual method and that is why to directly assign an icon to the tab item would not work.