キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Is window minimized?

How can I tell that a window is or is not currently minimized?
0 件の賞賛
メッセージ1/4
3,126件の閲覧回数
I don't know without trying a few things, but in the library lvwutil.zip, there are VIs that do things like Minimize, Maximize, Restore Window as well as Get Window Rectangle. These may be of help.

Rob
0 件の賞賛
メッセージ2/4
3,126件の閲覧回数
Well, there is the obvious of looking (humor....)

This is a Win API call. The lvwin utilities does not appear to contain the proper call to get this information. I would suggest determining what you need to do If you just need to show the window, then do that instead, you won't have to worry about whether or not it is already showing.

However, if what you need is to know if the window is minimized, and aren't going to act to show or hide the window, then you will need to research the user32.dll and win32.dll functions to get the exact function you need, and the parameters for that function.

If you aren't in windows, congratulations. You should have better luck interfacing with the opsys, or at least, in getting the information you need to do this.


Good luck, and please let us know how you do.
0 件の賞賛
メッセージ3/4
3,126件の閲覧回数
Well one workaround is to use the VI Server property>>Front Panel Wiondow>>Is Frontmost. If the window is the active window and displayed (not minimized) then it will read TRUE. If it is minimized it will read FALSE. However watch out, It will also read FALSE if the window is open BUT another VI is active and on top of it...

Not the best but maybe you can use it in your situation since it sounds like you are looking to see if the window is active...


Michael Aivaliotis
VI Shots LLC
0 件の賞賛
メッセージ4/4
3,126件の閲覧回数