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 help Collapse All
Subject Author Date
Petr Maar Apr 12, 2006 - 2:08 PM

Hello,
I have problems using CExtTabWnd control in my CExtResizableDialog class.
I 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:24 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:30 PM

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