AddControl (class MKI_SUBCLASS_LIST) New in Version 2024.0 |
www.CAD6.com |
C++ Syntaxvoid MKI_SUBCLASS_LIST::AddControl( HWND f_hDlg, __int32 f_nCtlID, MKI_SUBCLASS_PROC f_fnDrawProc, MKI_SUBCLASS_PROC f_fnMenuProc, LPVOID f_pUserData );
Sub-classes a control in a dialog window to have the system call a MKI_SubclassProc each time the control is painted and/or right-clicked.
Parametersf_hDlg [HWND] Handle of the dialog window whose control is to be sub-classed. f_nCtlID [__int32] ID of the control to be sub-classed. f_fnDrawProc [MKI_SUBCLASS_PROC] Address of the drawing procedure that will be called each time the control was painted. May be nullptr. f_fnMenuProc [MKI_SUBCLASS_PROC] Address of the context menu display procedure that will be called each time the control is right-clicked by the user. May be nullptr. f_pUserData [LPVOID] Address of user data to be passed to each call of the callback procedures.
CommentThis procedure should be called in the WM_INITDIALOG case of the dialog window for each control to be sub-classed.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH