CreateDialogResizer(
     HWND:hWnd,
     int:iNumCtls,
     LPDLGRESIZERCONTROL:pCtls
)
→ HANDLE

Arguments

hWnd

[in] The dialog window.

iNumCtls

[in] The number of entries in the pCtls array.

pCtls

[in] Pointer to an array of DLGRESIZERCONTROL structures.

Return value

Returns a handle to the dialog resizer.

Description

The CreateDialogResizer function creates a dialog resize helper, which repositions and resizes the controls in a dialog when the dialog is resized.

The DLGRESIZERCONTROL structure has the following fields:

DlgResizerF_RightPosition relative to right side
DlgResizerF_WidthWidth relative to width
DlgResizerF_BottomPosition relative to bottom side
DlgResizerF_HeightHeight relative to height
DlgResizerF_WindowWindow rather than control ID
DlgResizerF_DiffParentControl has a different parent window
DlgResizerF_NewParentSpecify a new parent window for subsequent items
DlgResizerF_LVColumnColumn for immediately previous listview (1-based)
DlgResizerF_PreviousPrevious resizer to link to
DlgResizerF_LVColumnFillStrictly use all remaining space on the specified column (1-based) for immediately previous listview.