LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add items to the System Menu?

At the top left of the parent panel in an application, there is an icon which, when clicked, displays the system menu. I want to add items to this menu. How do I do this?
0 Kudos
Message 1 of 2
(2,527 Views)
There aren't functions in CVI for this. You would do it through Windows SDK functions. The function you would use would be GetSystemMenu, then you could use the WinSDK menu functions (InsertMenuItem, etc.) on the menu handle returned to add things to the system menu. You would need to get the hWnd for your CVI panel which you can get with GetPanelAttribute on the System Window Handle. Consult the Windows SDK help from CVI's help menu to find out about these functions. If thes SDK help isn't there, you may need to re-install CVI and add the Windows SDK to your install.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 2
(2,527 Views)