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.
Subject |
Author |
Date |
|
Roberto Manes
|
Mar 8, 2005 - 10:26 AM
|
I recompiled my project with the Prof-UIS 2.30 library support and now I have got a problem with a CExtTabPageContainerWnd object which was working with vers. 2.26 and 2.27. I created the CExtTabPageContainerWnd with one tabPage by default. After a certain operation I remove the default tabPage by adding some tabPages (anyway at least two). Soon after I try to select the first page with the PageSelectionSet(..) method I get a Unhandled exception because the _RealignAllImpl() function fails during the following call GetDlgItem( 0x101 + nSel )->GetWindowRect( &rcAlign ); the 0x101 + 0 ID is not a valid ID but I can’t understand why Can you suggest any idea ? Thanks in advance
|
|
Technical Support
|
Mar 9, 2005 - 5:08 AM
|
Please note that by default the CExtTabPageContainerWnd::PageRemove method destroys the window associated with the page. So if you need to insert the window again, remove it in another way (without destroying this window):m_wndTabPageContainer.PageRemove( nIndex, 1, false ); Please let us know if this resolves the problem.
|
|
Roberto Manes
|
Mar 9, 2005 - 9:06 AM
|
I know, that’s why I created again the dialog before adding the new Tab Pages Note: I use the same dialog for all the tabs. I pass as argument true to the PageRemove method to get the dialog destoyed only once when I delete the last page. In the previuos versions it was working !!!.
|
|
Technical Support
|
Mar 9, 2005 - 11:44 AM
|
You should not insert the very same HWND into any tab page container more than once. Otherwise, this just breaks down the container and we have no idea why this worked in earlier Prof-UIS versions. If you use only one copy of your dialog, you may simply insert a tab control into your dialog. A tab page container in this case is redundant at all.
|
|