应用程序SDI MFC与类CMFCOutlookBar和CListView CLass

问题描述:

我想在Visual C ++ MFC中使用Document / View模型创建一个应用程序,我正在使用Outlook栏。

我已经使用CTreeList修改了Outlook栏并成功了现在我想在mainfrm.cpp中创建和编译,当我选择一个项目树时,程序显示一个不同的表。

真正的问题是:我不能这样做因为这个应用程序是我的第一个SDI和我不知道如何从意见中交换信息。

任何人都可以一步一步解释我如何解决它。

我将非常感激。



Giovanni

HI all i am trying to wirte an application with Document/View model in visual C++ MFC and i am using the Outlook bar.
I have modified the Outlook bar using the CTreeList and i have successfully created and compiled in mainfrm.cpp now i want that when i select an Item tree the program show a different table.
The true problem is: I cannot do it becouse this app is my first SDI and i don''t know how exchange information from views.
Can anyone explain me step by step how to solve it.
I will be very gratefull.

Giovanni

您可以将信息封装成消息,然后将其发送到CView
You can Encapulate the information into a message, then send it to CView