Windows Dev Center

DateTime_GetIdealSize macro

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

Syntax


BOOL DateTime_GetIdealSize(
  [in]  HWND hdp,
  [out] SIZE psize
);

Parameters

hdp [in]

Type: HWND

A handle to the DTP control.

psize [out]

Type: SIZE

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

Return value

Returns TRUE.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft