DwmDefWindowProc function

Default window procedure for Desktop Window Manager (DWM) hit testing within the non-client area.

Syntax


BOOL WINAPI DwmDefWindowProc(
  _In_   HWND hwnd,
  UINT msg,
  WPARAM wParam,
  LPARAM lParam,
  _Out_  LRESULT *plResult
);

Parameters

hwnd [in]

A handle to the window procedure that received the message.

msg

The message.

wParam

Specifies additional message information. The content of this parameter depends on the value of the msg parameter.

lParam

Specifies additional message information. The content of this parameter depends on the value of the msg parameter.

plResult [out]

A pointer to an LRESULT value that, when this method returns successfully,receives the result of the hit test.

Return value

TRUE if DwmDefWindowProc handled the message; otherwise, FALSE.

Remarks

When creating custom frames that include the standard caption buttons, WM_NCHITTEST and other non-client hit test messages should first be passed to the DwmDefWindowProc function. This enables the DWM to provide hit testing for the captions buttons. If DwmDefWindowProc does not handle the non-client hit test messages, further processing of these messages might be neccessary.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dwmapi.h

Library

Dwmapi.lib

DLL

Dwmapi.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft