Anthony Appleyard wrote:
> 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.
Use ShowWindow() with SW_MAXIMIZE instead.
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/