LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LaunchExecutableEx() windowstate not working

I have the following line of code:

 

LaunchExecutableEx("C:\\Programs\\1234.exe", LE_SHOWMINIMIZED, &handle);

 

The problem I am having is that the exe launches in a maximized state even though I have selected a windowstate of LE_SHOWMINIMIZED, even with LE_HIDE.

 

What could this be??

0 Kudos
Message 1 of 4
(4,079 Views)

Please note that in my problem above I am launching a 3rd party test application. When I try the same using standard executables like wordpad.exe it works just fine.. I am wondering what would be the difference and how I might be able to fix it.

 

Thanks in advance!!

0 Kudos
Message 2 of 4
(4,065 Views)

Hello x33,

 

I think the application (1234.exe) is starting minimized (using your attribute), but it might have code that brings it into view and maximizies it, after it has been loaded. It's just a theory, based on your observation in the 2nd post, but you could try creating a CVI application and starting that with LaunchExecutableEx. If it works, then alter the application and maximize it after you have done DisplayPanel. Try running that application by caling LaunchExecutableEx with LE_SHOWMINIMIZED and see what happens.

 

Best regards,

= Nelu F. || National Instruments.

0 Kudos
Message 3 of 4
(4,054 Views)

I consider this a bug in the 3rd party test application. It doesn't handle the windows system message to minimize its window right.  And to get a workaround or fix you have to ask the programmers of that application.

 

 

0 Kudos
Message 4 of 4
(4,053 Views)