03-20-2009, 03:45 PM
This utility makes windows maximize to specified parts of the screen: http://maxto.net/
I'd like to do this with QM. MSDN says to intercept the WM_GETMINMAXINFO message and change the values. But my WindowProc is only receiving the message when the window is moved, not when it is maximized or minimized. What's wrong?
Function WinProcMessages
I'd like to do this with QM. MSDN says to intercept the WM_GETMINMAXINFO message and change the values. But my WindowProc is only receiving the message when the window is moved, not when it is maximized or minimized. What's wrong?
Function WinProcMessages
function [nCode] [wParam] [CWPSTRUCT*m]
;BEGIN DIALOG
;0 "" 0x90CB0A40 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030009 "" "" ""
if(getopt(nargs)=0)
,int+ g_whook=SetWindowsHookEx(WH_CALLWNDPROC &WinProcMessages 0 GetCurrentThreadId)
,if(!ShowDialog("WinProcMessages" 0)) ret
,
sel m.message
,case WM_GETMINMAXINFO
,out "WM_GETMINMAXINFO"
ret CallNextHookEx(g_whook nCode wParam m)