Hello Marc,
Thanks for attaching your code.
The problem lies in your call to LoadMenuBar. In your code, you pass a value of 0 for the destination panel handle. Instead, you should pass the handle to your main panel (MainPanel). Also, if you choose to call the LoadMenuBar function, then you should not specify a menu bar on your panel in your UIR file (this would be like loading your menu bar twice on the same panel).
If you do want to specify a menu bar on your panel in your UIR file, then you can instead use the GetPanelMenuBar function to get a handle to the menu bar on your panel.
So in summary, to display the check mark on your panel, either:
1. Replace LoadMenuBar(...) with GetPanelMenuBar (MainHandle).
- or -
2. Remove the menu bar from your panel in your UIR file. Then, replace the first parameter of the LoadMenuBar function with your panel handle. i.e. LoadMenuBar (MainHandle, "menubar_item.uir", MENUBAR)
Hope that helps, and let me know if you need any clarification. Thanks.
Wendy L
LabWindows/CVI Developer Newsletter