MKI_DialogHandleDefaultMessages (Dialogs) New in Version 2024.0

www.CAD6.com

C++ Syntax

INT_PTR

MKI_DialogHandleCtlColor(

 HWND f_hWindow,

 UINT f_unMessage,

 WPARAM f_wParam,

 LPARAM f_lParam );

 

This procedure handles all default messages send to a dialog or list window such as WM_CTLCOLOR* and WM_ENTERIDLE in order to apply all appropriate skin colors to the dialog's controls and to handle keys pressed by the user (especially F1 for help).

 

Parameters

f_hWindow

[HWND] Handle of the dialog window.

f_unMessage

[UINT] Parameter passed to the window's callback procedure.

f_wParam

[WPARAM] Parameter passed to the window's callback procedure.

f_lParam

[LPARAM] Parameter passed to the window's callback procedure.

 

Return Value

The result of the respective message handling to be returned by the dialog's callback procedure (or nullptr).

 

Comment

This procedure should be called in the default case of all dialog window callback procedures of the plug-in:

 

INT_PTR CALLBACK

DialogProc( HWND f_hDlg, UINT f_unMessage, WPARAM f_wParam, LPARAM f_lParam )

{

  switch( f_unMessage )

  {

 

    ...

 

    default:

      return( MKI_DialogHandleDefaultMessages( f_hDlg, f_unMessage, f_wParam, f_lParam ) );

  }

  return( false );

}

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH