MKI_SUBCLASS_DATA (Basic Classes) Changed in Version 2024.0

www.CAD6.com

C++ Syntax

class MKI_SUBCLASS_DATA

{

  public:

 

  MKI_SUBCLASS_PROC m_pfnDrawProc;

  MKI_SUBCLASS_PROC m_pfnMenuProc;

  WNDPROC m_pfnWindowProc;

  HWND m_hDlg,

       m_hControl;

  __int32 m_nCtlID;

  __int32 m_nIconID;

  LPVOID m_pUserData;

};

 

This structure contains information about a sub-classed control. It's used by MKI_SUBCLASS_LIST.

 

Element Description

m_pDrawProc

[MKI_SUBCLASS_PROC] Address of the drawing routine called after each control painting. May be nullptr.

m_pMenuProc New in Version 2020.0

[MKI_SUBCLASS_PROC] Address of the context menu routine called after a right-button click. May be nullptr.

m_pWindowProc

[WNDPROC] Address of the original windows procedure for that control.

m_hDlg

[HWND] Handle of the dialog window in which the sub-classed control lies.

m_hControl New in Version 2024.0

[HWND] Handle of the sub-classed control.

m_nCtlID

[__int32] ID of the sub-classed control. May be negative to indicate "no ID".

m_nIconID New in Version 2020.0

[__int32] ID of the icon to be drawn centered within the control.

m_pUserData

[LPVOID] Address of user data as stated when the control was sub-classed.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH