LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Modifing a Window Style

Is there a way to directly modify the style of the Windows in LabWindows? What I would like to do is change thier style to WS_CHILD so that I can wrap them into another window and have them stay within the bounds of that Window. If this is not possible what is the best way of going about creating a MDI using LabWindows??
0 Kudos
Message 1 of 2
(2,904 Views)
Hi,

In CVI you define the "parent" of a window when you load the panel. If you need to change this state you would need to discard the panel and reload it as a chald panel. This method will confine the window to the parent windoe, but it will be a bit different than MDI.

You can use calls to the Windows API to confine the window and have a full MDI look of your applications. Here is a link to a good example that calls the Windows SDK to confine a window within another parent window: Creating a Child Window Inside a LabWindows/CVI Top-level Panel to Simulate Multiple Document Interf...

To run
this example you need to have the Windows SDK installed, just run the CVI installer from add/remove programms, select CVI, go to modify and make sure that Windows SDK is selected.

I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(2,904 Views)