MKI_DialogPopupRegister (Dialogs)

www.CAD6.com

C++ Syntax

bool

MKI_DialogPopupRegister(

 HWND f_hWindow );

 

This procedure registers the given popup window to the serving application, allowing it to keep track of all popup windows.

 

Parameters

Window

[HWND] Handle of the popup window.

 

Return Value

Returns true if successful, false if not.

 

Comment

This procedure should be called in the WM_INITDIALOG or WM_CREATE case of all popup windows of the plug-in:

 

INT_PTR CALLBACK

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

{

  switch( f_unMessage )

  {

    case WM_CREATE:

    case WM_INITDIALOG:

      MKI_DialogPopupRegister( f_hDlg );

      break;

  }

  return( 0 );

}

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH