It's another day, there is no progress.

xiaoxiao2021-03-05  31

I also read the MFC of the day, and the code seems to have no progress, I have to expect the progress of my heart. Tomorrow, I have to meet, I have to pay a stuff, so I must have a good code tomorrow, so I have to have a Dongdong. . .

When I check the information, I found a programmer's personal home page (http://www.liuhu.net/), um, there are many listed above, watching his experience for half an hour, more Dongdong of. Is this what I think is life? Self-satisfaction, it is enough, this is enough :) Well, just see a cattle experience, by the way. . .

Nothing, some of the stuff is placed today.

Menu items can be reacted in the view, or can react in HandApp, more in mainframe. In general, multiple documents are reactive in MainFrame. In multiple documents, there are two menus, one is mainframe, the other is Handapp So the child window is closed, the mainframe of the displayed menu, if the child is not closed, then the display is HANDAPP.

1. Document class is usually related to the access of the data and other processing processes, while it is primarily used to express document data, but each view must be included in a frame (attached to mainframe in SDI, attached to childframe in MDI) The toolbar, menu, etc. can be placed on the frame;

2. Some types of documents, frameworks, and a commonly associated constitute a document template class (base class is CDOCTemplate, its subclass CSINGEDEMPLATE, and CMUTIDEMPLATE), the document template class is constructed in the initialization of WinApp;

3. A app can have n document templates, but the SDI and MDI framework wizards are only one template for default (if you need more, you can imitate the addition); a document template can generate multiple document instances multiple times in the program This so-called multi-document interface MDI (multi-document can not only be multiple different types of documents, but also multiple different types of documents); a data can have n types of expressions, so a document can have n-dependent Relational;

4. Only a movable document, depending on, and the framework at a moment. That is, the current document, the view, and the framework.

That is, if you want to change what Dongdong under the window point into another, the first step will get the document template pointer, then obtain the current activity document, then get the current activity, finally change the pointer, and associate into a new view document frame. .

The corresponding document must be defined in the file, and it is not used by the document template when it is just established in theApp.

转载请注明原文地址:https://www.9cbs.com/read-34131.html

New Post(0)