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 » CExtTabWnd help Collapse All
Subject Author Date
Petr Maar Apr 13, 2006 - 10:18 AM

Hello,
I have problems using CExtTabWnd control in my CExtResizableDialog class.
I have created CExtTabWnd derived class named CMyExtTabWnd and overrided
virtual bool OnTabWndSelectionChange( LONG nOldItemIndex, LONG nNewItemIndex, bool bPreSelectionTest )
as mentioned in help to monitor tab changing...

But if any tab is clicked (selected) or when I call SelectionSet method, I get STACK OVERFLOW exception. If I use CExtTabWnd class directly, everything
seems ok, but I cannot monitor tab changes...

So, can you tell me what am I doing wrong?

Technical Support Apr 13, 2006 - 12:12 PM

We may guess that your overridden method is getting into an infinite loop. Please make sure that you are not invoking it itself instead of the base class method.

Petr Maar Apr 13, 2006 - 12:29 PM

Thank you - that was it, i used your code from help and forgot to add base class identifier...

Technical Support Apr 14, 2006 - 9:14 AM

We modified this FAQ in order to not confuse our users anymore. Thank you.