On 1/12/08, Anthony Appleyard <[EMAIL PROTECTED]> 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);}
Did your mail client erase all newline characters? If not, learn to
use it and indent, it's awfully hard to read this code.
For your other problem, you can do it in one function call:
ShowWindow(hWndMain, SW_MAXIMIZE);
--
Tamas Marki