DateTime_GetIdealSize macro (commctrl.h)

Gets the size needed to display the control without clipping. Use this macro or send the DTM_GETIDEALSIZE message explicitly.

Syntax

void DateTime_GetIdealSize(
  [in]   hdp,
  [out]  psize
);

Parameters

[in] hdp

Type: HWND

A handle to the DTP control.

[out] psize

Type: SIZE

A pointer to a SIZE structure to receive the size. The caller is responsible for allocating this structure.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header commctrl.h