![]() |
MKI_DialogInitPropertySheet (Dialogs) New in Version 2024.0 |
www.CAD6.com |
C++ Syntaxvoid MKI_DialogInitPropertySheet( HWND f_hPropSheet, MKI_SUBCLASS_LIST_PTR f_pSubclassList );
This procedure initializes the tab control in a property sheet dialog to allow the serving application to apply the current skin to that control.
Parametersf_hPropSheet [HWND] Handle of the property sheet window whose controls are to be initialized. f_pSubclassList [MKI_SUBCLASS_LIST_PTR] If not nullptr, this subclassing list will be used to subclass all property sheet dialog controls.
CommentThis procedure should be called in the PSCB_INITIALIZED case of all property sheet dialog handling procedures. If f_pSubclassList is not nullptr, all relevant dialog controls will be sub-classed. Use code similar to the following in your property sheet dialog's main message dispatching code:
INT_PTR CALLBACK PropSheetProc( HWND f_hPropSheet, UINT f_unMessage, LPARAM f_lParam ) { static MKI_SUBCLASS_LIST s_cSubclassList;
switch( f_unMessage ) { case PSCB_INITIALIZED: MKI_DialogInitPropertySheet( f_hPropSheet, &s_cSubclassList ); break; } return( 0 ); }
If you wish to use a local instance of MKI_SUBCLASS_LIST for each property page dialog instead of a static one, pass f_pSubclassList as nullptr here and call MKI_SUBCLASS_LIST::AddPropertySheetControls() in the WM_INITDIALOG case of the property page's dialog handling procedure instead.
|
CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH