![]() |
MKI_DialogComboboxAdjust (Dialogs) |
www.CAD6.com |
C++ Syntaxvoid MKI_DialogComboboxAdjust( HWND f_hWindow, __int32 f_nCtlID );
Adjusts the size of a combobox according to the number of its entries. This enables the user to get a fast overview of all available choices in that combo box, and minimizes the need to scroll.
Parametersf_hWindow [HWND] Handle of the dialog window that contains the combobox control. f_nCtlID [__int32] Identification number of the combobox control.
CommentThis procedure should be called in the WM_INITDIALOG case of all dialog windows that contain combo boxes for each of these combo boxes:
INT_PTR CALLBACK DialogProc( HWND f_hDlg, UINT f_unMessage, WPARAM f_wParam, LPARAM f_lParam ) { switch( f_unMessage ) { case WM_INITDIALOG: ...
MKI_DialogComboboxAdjust( f_hDlg, IDD_COMBOBOX0 );
...
} return( 0 ); }
This also applies to sub-classed common dialog windows!
|
CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH