I try to set colors and fonts of existing CVI parent and child panels
to system colors. SetPanelAttribute(hPanMeas, ATTR_CONFORM_TO_SYSTEM,
1) does not work.
Using a Windows SDK function
dwWindowTitleColor = GetSysColor(COLOR_CAPTIONTEXT);
i_red = (dwWindowTitleColor & 0x0000FF) >> 0;
i_green = (dwWindowTitleColor & 0x00FF00) >> 8;
i_blue = (dwWindowTitleColor & 0xFF0000) >> 16;
dwWindowTitleColor = MakeColor (i_red, i_green, i_blue );
SetPanelAttribute(hPanMeas, ATTR_TITLE_COLOR, dwWindowTitleColor);
works, but has to be done for each panel.
After setting the title bar color, horizontal black lines in the title
bar area outside the panel text are still drawn.
How can I omit these lines to that the title bar color matches the
system title bar color and does not appear darker as it is now?
Thank you in advance.
Andre Lehmann