MKI_DialogPopupSetCursor (Dialogs)

www.CAD6.com

C++ Syntax

void

MKI_DialogPopupSetCursor(

 HWND f_hWindow,

 WPARAM f_wParam,

 LPARAM f_lParam );

 

This procedure tracks all popup window activation and assures that the cursor will always appear in the correct shape (hair line, arrow, hour glass, invisible, etc.).

 

Parameters

Window

[HWND] Handle of the popup window.

wParam

[WPARAM] The value of the wParam parameter passed to the window's callback procedure.

lParam

[LPARAM] The value of the lParam parameter passed to the window's callback procedure.

 

Comment

This procedure should be called in the WM_SETCURSOR 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_SETCURSOR:

      MKI_DialogPopupSetCursor( hDlg, wParam, lParam );

      return( DefWindowProc( hDlg, Message, wParam, lParam ) );

  }

  return( 0 );

}

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH