Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ hbrBackground在c++;_C++_User Interface - Fatal编程技术网

C++ hbrBackground在c++;

C++ hbrBackground在c++;,c++,user-interface,C++,User Interface,我在C++中创建了上面的简单GUI。我希望静态文本控件背景与主窗口(白色)相同,或者如何使主窗口背景(hbrBackground)与静态文本控件中的背景颜色相同 非常感谢 您可以通过响应设置静态控件的背景 您可以通过响应和调用来更改窗口的背景色(有一种可能)。谢谢,我使用了WM_CTLCOLORSTATIC并将背景设置为透明。

我在C++中创建了上面的简单GUI。我希望静态文本控件背景与主窗口(白色)相同,或者如何使主窗口背景(hbrBackground)与静态文本控件中的背景颜色相同


非常感谢

您可以通过响应设置静态控件的背景


您可以通过响应和调用来更改窗口的背景色(有一种可能)。

谢谢,我使用了WM_CTLCOLORSTATIC并将背景设置为透明。