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 » About UnsubclassWindow Collapse All
Subject Author Date
tarou iiyama Jun 2, 2006 - 12:00 AM

Hello

Please teach it about UnsubclassWindow.
I want to perform a change of a tab.

I delete pTabOld in UnsubclassWindow.
However, old pTabOld is displayed.

pTabOld->SetRedraw( FALSE );
pTabOld->EnableWindow( FALSE );
RemoveAnchor ( pTabOld->m_hWnd );
HWND hWnd = pTabOld->UnsubclassWindow( );

CExtTabPageContainerWnd * pNewTab = new CExtTabPageContainerWnd;
if (! pNewTab->SubclassDlgItem ( IDC_MULTILIST2 , this )){
return ;
}

Technical Support Jun 2, 2006 - 7:27 AM

We recommend you use two tab page container windows and avoid window unsubclassing because you may encounter some difficulties. Each tab page container window keeps internal data about tab page windows. This information must also be moved from the unsubclassed tab page container class into the subclassed one.

tarou iiyama Jun 4, 2006 - 8:33 PM

Hello

 I make each tab resource domain.
And I change it if necessary.
 In this way I think.
Is it good?

----------------------------------------------------------------------
AddAnchor( IDC_TAB_LISTA , __RDA_LT, __RDA_RT );
AddAnchor( IDC_TAB_LISTB , __RDA_LT, __RDA_RT );

GetDlgItem( IDC_TAB_LISTA )->ShowWindow( SW_SHOW );
GetDlgItem( IDC_TAB_LISTB )->ShowWindow( SW_HIDE );
----------------------------------------------------------------------

Thank You

Technical Support Jun 5, 2006 - 1:15 PM

Your code looks correct but it is not completely clear what you actually need to do. So please give us more details. If you send us a test project, that would be helpful.