LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

maximize pannel at start

Hello

I have written an CVI app., which should start allways maximized.
I have tried

GetPanelAttribute (panel, ATTR_SYSTEM_WINDOW_HANDLE, &iZwi);
hwnd = (HWND)iZwi;

lWert = GetWindowLong (hwnd, GWL_STYLE);
SetWindowLong (hwnd, GWL_STYLE, lWert | WS_MAXIMIZE);

but this does not work.

I have also tried

GetScreenSize (&height, &width);
SetPanelPos (panel, 24, 0);
SetPanelSize (panel, height-24, width);

but this gives me not a maximized window, but a window with the screensize.
Does anymody knew, how to do that ?

Thanks

Stephan Gerhards
stephan.gerhards@ni.com
0 Kudos
Message 1 of 3
(3,190 Views)
> I have written an CVI app., which should start allways maximized.

SetPanelAttribute (Panel, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE);
-----------
Guillaume Dargaud
CNR/IFA
http://sung3.ifsi.rm.cnr.it/~dargaud/
http://sung3.ifsi.rm.cnr.it/~domec/
http://www.appennini.it/roma8000/
http://sodaracq.ifa.rm.cnr.it/
http://radarpct.ifa.rm.cnr.it/
"I look forward to the invention of faster-than-light travel. What I'm not
looking forward to is the long wait in the dark once I arrive at my
destination." - Marc Beland.
0 Kudos
Message 2 of 3
(3,190 Views)
Thank you, Guillaume. This works fine. Sometines I seem to be blind....

Stephan

Guillaume Dargaud schrieb in im Newsbeitrag:
3960a47d@newsgroups.ni.com...
> > I have written an CVI app., which should start allways maximized.
>
> SetPanelAttribute (Panel, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE);
> -----------
> Guillaume Dargaud
> CNR/IFA
> http://sung3.ifsi.rm.cnr.it/~dargaud/
> http://sung3.ifsi.rm.cnr.it/~domec/
> http://www.appennini.it/roma8000/
> http://sodaracq.ifa.rm.cnr.it/
> http://radarpct.ifa.rm.cnr.it/
> "I look forward to the invention of faster-than-light travel. What I'm not
> looking forward to is the long wait in the dark once I arrive at my
> destination." - Marc Beland.
>
>
0 Kudos
Message 3 of 3
(3,190 Views)