MFCShellTree控制问题 [英] MFCShellTree control problem

查看:218
本文介绍了MFCShellTree控制问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个带有选项卡控件和两个子窗口的简单MFC对话框应用程序。

I have created a simple MFC dialog box app with a tab control and two child windows.

在OnInitDlg()中,我使第一个子窗口对应于第一个选中的选项卡。

In OnInitDlg() I make my first child window visible corresponding to the first tab that is selected.

这个第一个子窗口包含一个MFCShellTree控件和一些按钮。

This first child window contains a MFCShellTree control and some buttons.

当我运行我的应用程序和对话框时选项卡控件与子窗口中的按钮一起显示。

When I run my app and the dialog box with the tab control appears as expected along with the buttons in the child window.

然而,MFCShellTree中的第一个项目('desktop')可见,但控件背景不可见。

However the first item ('desktop') in the MFCShellTree visible but the control background is invisible.

我必须点击'桌面' 在控件背景(白色)变为可见之前。

I have to click on 'desktop'  before the control background (white) becomes visible.

为什么应用程序启动时整个控件都不可见?

Why wont the entire control become visible when the app starts?

推荐答案

什么是MFCShellTree?我在Microsoft文档中找不到它,除非它是第三方开发的东西。你应该提供一个链接。

What is a MFCShellTree? I can't find it in the Microsoft documentation, unless it is something that a third party developed. You should provide a link to it.

这种类型的东西通常需要更多的信息;可能是一些代码。您可能需要创建一个重新创建问题的小样本。

This type of thing usually needs more information; probably some code. You might need to create a small sample that re-creates the problem.


这篇关于MFCShellTree控制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆