AdjustWindowRect Function
--------------------------------------------------------------------------------
The AdjustWindowRect function calculates the required size of the window rectangle, based on the desired client-rectangle size. The window rectangle can then be passed to the CreateWindow function to create a window whose client area is the desired size.
To specify an extended window style, use the AdjustWindowRectEx function.
Syntax
--------------------------------------------------------------------------------
The AdjustWindowRect function calculates the required size of the window rectangle, based on the desired client-rectangle size. The window rectangle can then be passed to the CreateWindow function to create a window whose client area is the desired size.
To specify an extended window style, use the AdjustWindowRectEx function.
Syntax
Code:
BOOL AdjustWindowRect( LPRECT lpRect, DWORD dwStyle, BOOL bMenu
Code:
LET Listbox_Rect = desired LB rect AdjustWindowRect Listbox_Rect, dialog_style, bmenu DIALOG NEW [PIXELS] _ Listbox_rect.nTop, _ Listbox_rect.nLeft, _ Listbox_rect.nRight-Listbox_rect.nleft + 1, _ Listbox_rect.nBottom-Listbox_rect.nTop + 1, _ rest_of_params CONTROL ADD LISTBOX (desired size) DIALOG SHOW....
MCM
Leave a comment: