说明:一个基于对话框的MF C程序,可以动态设置对话框背景颜色。
A dialog based MFC procedures, can dynamically set the background color dialog.
为设置背景颜色,选择Viewproperties对话框中的第三个选项卡。
To set the background color, select the third TAB in the View properties dialog.
在上述的情况下,每个需要自定义背景控件的对话框都不得不处理控件颜色通知消息。
In the case above, every dialog box that wanted controls with custom backgrounds would have to handle the control color notification message.
在Properties对话框中,您可以为设计窗格设置个人的偏好,包括环境与记录背景颜色以及字体等等。
In the Properties dialog, you can set preferences for the design page, including setting the record background color and the font.
一种可能的方法是在对话框使用不同的背景、使控件具有独特的视觉特征,或者在标题栏上和图标上使用不同的颜色。
Possible methods include using a different background, making the controls visually distinct, or using a different color title bar or icon.
选择“样式生成器”对话框的“背景”选项卡,然后单击“颜色”字段旁边的省略号按钮(。),以打开“颜色选取器”对话框。
Select the Background TAB of the Style Builder dialog box, and click the ellipsis button (.) Next to the Color field to open the Color Picker dialog box.
选择“样式生成器”对话框的“背景”选项卡,然后单击“颜色”字段旁边的省略号按钮(。),以打开“颜色选取器”对话框。
Select the Background TAB of the Style Builder dialog box, and click the ellipsis button (.) Next to the Color field to open the Color Picker dialog box.
应用推荐