Tuesday, June 22, 2010

Aero Snap vertical maximize winapi

Easy way to toggle the Aero Snap vertical maximize in WinAPI:
HWND active = GetForegroundWindow();
PostMessage((HWND) active, WM_NCLBUTTONDBLCLK, HTTOP, 0);