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 » Using SubclassChildControls Collapse All
Subject Author Date
Guido Jaeger Feb 15, 2011 - 3:07 AM

I use SubclassChildControls for a Dialog incl. Buttons, Scrollbars, Edits and SpinEdits


Part of the Code:

Testdialog.h


class CTestdialog: public CExtResizableDialog //CDialog


Test.cpp

CTestdialog::CTestdialog(CBaseEvent* pEvent,CTestdialog* pAni,CString strName,CRealTimeView* pView)

             : CExtResizableDialog  (CTestdialog::IDD,NULL)


 


BOOL CTestdialog::OnInitDialog()

{  

 

 CExtResizableDialog::OnInitDialog();

 SubclassChildControls();

 ....


The Dialogs Background , the Grouboxes and the Buttons change to the new Look.

But the Scrollbars , Edits and SpinControls stay at the old Look.


I send an E-Mail with a Screenshot to Support@prof-uis.com.



Hope to get Answer...


 


 

Technical Support Feb 15, 2011 - 9:42 AM

Please check the following:

1) Edit controls are subclassed with CExtEdit objects.

2) Spin controls are subclassed with CExtSpinWnd objects.

3) Scroll bars are subclassed with CExtScrollBar objects.

4) Group boxes are subclassed with CExtGroupBox objects.

5) The Z order of group boxes is larger than Z orders of controls inside it. The Ctrl+D command displays Z orders in Visual Studio’s dialog editor.

6) The dialog template resource has both Clip Siblings and Clip Children options set on.