Is there a way to programmatically, dynamically set the color attributes of controls to match the desktop theme/color scheme to the computer on which the LabWindows/CVI application is running?
You can call SetPanelAttribute (panelHandle, ATTR_CONFORM_TO_SYSTEM_THEME, 1); to specify the controls on that panel to be drawn based on the Windows theme setting.
If you want to override the theme drawing for an individual control, you can call SetCtrlAttribute (panelHandle, PANEL_CONTROL, ATTR_DISABLE_PANEL_THEME, 1);.