INameSpaceTreeControlCustomDraw::PrePaint method

Called before the namespace tree control is drawn.

Syntax

HRESULT PrePaint(
  HDC     hdc,
  RECT    *prc,
  LRESULT *plres
);

Parameters

hdc

Type: HDC

A handle to the control's device context. Use this HDC to perform any GDI functions.

prc

Type: RECT*

A pointer to the RECT structure that describes the bounding rectangle of the area being drawn.

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

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

See Also

INameSpaceTreeControlCustomDraw