INameSpaceTreeControlCustomDraw::PrePaint method (shobjidl.h)
Called before the namespace tree control is drawn.
Syntax
HRESULT PrePaint(
[in] HDC hdc,
[in] RECT *prc,
[out] LRESULT *plres
);
Parameters
[in] hdc
Type: HDC
A handle to the control's device context. Use this HDC to perform any GDI functions.
[in] prc
Type: RECT*
A pointer to the RECT structure that describes the bounding rectangle of the area being drawn.
[out] plres
Type: LRESULT*
When this method returns, contains a pointer to an LRESULT, which contains one or more of the values from the CDRF Constants enumeration.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl.h |