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 » CExtResizablePropertySheet in CExtControlBar Collapse All
Subject Author Date
chen xinyu Sep 26, 2009 - 1:47 AM

I want to create a CExtResizablePropertySheet  object in a CExtControlBar.   I derived CExtMyResizablePropertySheet class from CExtResizablePropertySheet. The create function followed:


BOOL CExtMyResizablePropertySheet::Create( CWnd * pWndParent )

{

 if( !CExtResizablePropertySheet::Create(pWndParent,WS_CHILD|WS_VISIBLE,0) )

  {

    ASSERT( FALSE );

    return FALSE;

  }

   ModifyStyle(

    WS_THICKFRAME|WS_BORDER|WS_CAPTION|WS_SYSMENU,

    0,

    SWP_FRAMECHANGED

    );

  ModifyStyleEx(

    WS_EX_DLGMODALFRAME|WS_EX_STATICEDGE|WS_EX_CLIENTEDGE,

    0,

    SWP_FRAMECHANGED

    );

  return TRUE;

}


But the question is when I add "WS_CHILD" ,it goes wrong.  After "WS_CHILD" is removed it goes well,but the result is not what I want.


I am waiting your help. Thanks.

Technical Support Sep 27, 2009 - 8:06 AM

Please replace the CExtChildResizablePropertySheet class in the ResizableChildSheet sample application and try to reproduce the problem. Then send us the modified project to the support mail box at this web site.