WM_GETMINMAXINFO
-
I'm hooking another app and subclassing it. When I work with the WM_GETMINMAXINFO msg and set the MINMAXINFO data then return 0, my settings are overriden by the app if my ptMinTrackSize.x or ptMinTrackSize.y are less than what the app allows. Basically, what I'm asking is, how is the app setting the min and max window size if I'm overriding the WM_GETMINMAXINFO msg and returning 0?
-
I'm hooking another app and subclassing it. When I work with the WM_GETMINMAXINFO msg and set the MINMAXINFO data then return 0, my settings are overriden by the app if my ptMinTrackSize.x or ptMinTrackSize.y are less than what the app allows. Basically, what I'm asking is, how is the app setting the min and max window size if I'm overriding the WM_GETMINMAXINFO msg and returning 0?
You should be able to shrink app to: Y = GetSystemMetrics(SM_CYCAPTION)+GetSystemMetrics(SM_CYDLGFRAME); X = n*GetSystemMetrics(SM_CYDLGFRAME); Boyond that requires patching OnNcCalcSize