I'm having a little trouble wrapping my head around how to get the information I'm looking for from CallWindowProc and WM_GetMinMaxInfo.
My goal is to be able to set a windows max or min size during a sizing event and I think I'm close, but I'm baffled by how this is (not) working.
I have a bound event responding to WM_GETMINMAXINFO, and that's firing fine.
The Declare function looks like this:
DECLARE INTEGER CallWindowProc IN user32;
INTEGER lpPrevWndFunc, INTEGER hWindow, LONG Msg, ;
INTEGER wParam, INTEGER lParam
This is the MS documentation on the last two parms with respect to WM_GETMINMAXINFO:
wParam
This parameter is not used.
lParam
Pointer to a MINMAXINFO structure that contains the default maximized position and dimensions, and the default minimum and maximum tracking sizes. An application can override the defaults by setting the members of this structure.
In my event handler for this message, there are only 4 parameters passed (PCOUNT() = 4) and they look like this:
2622176, 36, 0, 1242920
So I'm confused. I _am_ getting a value in the 4th parm and nothing in the 5th. I tried using SYS(2600) assuming that the 4th parm was the pointer to the MINMAXINFO structure that I wanted, but that returned gobbledygook.
Thanks for any help!
-m@