AddIconButton (class MKI_SUBCLASS_LIST) New in Version 2024.0

www.CAD6.com

C++ Syntax

void

MKI_SUBCLASS_LIST::AddIconButton(

 HWND f_hDlg,

 __int32 f_nCtlID,

 __int32 f_nIconID,

 MKI_SUBCLASS_PROC f_fnMenuProc,

 LPVOID f_pUserData );

 

Sub-classes a control in a dialog window to automatically display a given standard icon and optionally to have the system call a MKI_SubclassProc each time the control is right-clicked.

 

Parameters

f_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_nIconID

[__int32] Identification number of the application's standard icon, see MKI_ICON_ID_*.

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.

 

Comment

This 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