How to force to Fullscreen Form

Is it possibile by code resize a form to fullscreen? (like button Maximize) ?

// VAR Changed on 10 Jun 2013 at 12:17:41 by Fandy Xie
public void activate(boolean _active)
{
;
    super(_active);

    #define.SC_MAXIMIZE (61488)
    #define.WM_SYSCOMMAND (0x0112)

    WinAPI::SendMessage(element.hWnd(), #WM_SYSCOMMAND, #SC_MAXIMIZE, '');
}

 

 

 

posted @ 2013-07-10 12:20  Fandy Xie  Views(402)  Comments(0Edit  收藏  举报