Default window procedure for Desktop Window Manager (DWM) hit testing within the non-client area
#include <WinAPIGdi.au3>
_WinAPI_DwmDefWindowProc ( $hWnd, $iMsg, $wParam, $lParam )
$hWnd | A handle to the window procedure that received the message. |
$iMsg | The message. |
$wParam | Additional message-specific information. The content of this parameter depends on the message. |
$lParam | Additional message-specific information. The content of this parameter depends on the message. |
Success: | The result of the hit test. |
Failure: | 0 and sets the @error flag to non-zero. |
When creating custom frames that include the standard caption buttons, WM_NCHITTEST and other non-client hit test messages should first be passed to _WinAPI_DwmDefWindowProc().
This enables the DWM to provide hit testing for the captions buttons.
If _WinAPI_DwmDefWindowProc() does not handle the non-client hit test messages, further processing of these messages might be neccessary.
This function requires Windows Vista or later.
Search DwmDefWindowProc in MSDN Library.