I have Visual C+++ 2008 (free download version). I tried this function:
void maximize(HWND wn){MINMAXINFO z;
SendMessage(wn,WM_GETMINMAXINFO,0,LPARAM(&z));
SetWindowPos(wn,HWND_TOP,z.ptMaxPosition.x,z.ptMaxPosition.y,
z.ptMaxSize.x,z.ptMaxSize.y,SWP_DRAWFRAME|SWP_SHOWWINDOW);}
and the result was to set the window to size x=y=0.
