/*************************************/
Chapter 2: Reading and Writing documents-MDI applications
1. The cmdiframewnd class in the MFC Library encapsulates all the functions of the main framework window and the MDI customer window (including the message control functions of all windows MDI messages ), therefore, you can manage its subwindows (represented by javasichildwnd class objects ).
2. In an MDI application, only one subwindow is active at any time. The MDI application only uses menus and
Read Xu Jing Week wrote a "program interface multi-mode display implementation", the program has multiple display modes in one application, but the interface is implemented by the SDI MFC document view structure, but the code used is not implemented in MDI's multiple documents/views, and through MSDN I found some implementations of MDI Multi-mode implementation method, dare not to enjoy, share with you.
Using SDI
Pointer in MFC
The following table summarizes the methods for obtaining class pointers in MFC, which are comprehensive, concise, and of great reference value.
From this class:
You can access this class using:
Cwinapp
Cmainframe
Cchildframe
Cdocument
Cview
Cwinapp
Afxgetmainwnd () orm_pmainwnd
Afxgetmainwnd ()-> mdigetactive ()
Afxgetmainwnd ()-> getactiveview ()-> getdocument ()
Afxgetmainwnd ()-> getactiveview ()
Cmainframe
completely acceptable, but this requires you to process some column messages such as scrolling (II have met such requirements in a grayscale histogram of the displayed image and binary image projection.At that time, I derived a class from cwnd to display data. Because the image is large, one-Screen DisplayThe display is incomplete, so we need to add a scroll bar to the window, which takes a lot of time to process these messages,The code that actually displays data is rare ). Therefore, I have a
From: http://qianshao.blog.51cto.com/935360/201520
UObjective of this section:
N understand the concepts and differences between MDI and SDI
N proficient in setting the primary attributes of the MDI form and General Form
N skills in the arrangement of MDI forms
N The form value passing technology that masters and implements Multi-document interfaces 1-4-1 Introduction
The window we designed previously is called the single document window (
. And please tell me how I can handle the vertical toolbar items.
Extends nfebruary 25th, 2008, amonly a guess: Have you tried to get the ID of the "standard" toolbar in the SDI application?
Have you tried to get the toolbar pointer/hwnd using getdlgitem () for the "standard" toolbar in the SDI application and compare it with the correct toolbar handle?
FeoggouFebruary 26th, 2008, AMOnly a guess: have you t
How to change the document title
I. Changes in the title of a Single-Document Interface (SDI) windowFirst, let's look at windowsStructure of the title bar of the SDI window. Detailed examples: Use
VC Appwizard creates a single-document project named "sdititle". After the project is created, compile and run the project. The title of the Main Window of the program is as follows:
Document title main window ti
be used.
For an application using the MFC Document-view architecture, it is more appropriate to define different view classes and switch between them when necessary. this shall overcome all the disadvantages listed before. there probably will be some features common to all views for the same type of document, so it is a good idea to have a direct cview descendant that implement all the functionality common to all view types. the views used by the document shocould be descendants of this class
Some people often ask this question in forums, so today I have sorted out several methods to change the window title, hoping to help these friends.
I. Changes in the title of a Single-Document Interface (SDI) window
First, let's look at the structure of the title bar of the Windows SDI type window. Use the Appwizard of VC to create a single-document project named "sdititle". After the project is created, co
In the previous article I introduced the application of the Tangrammini component in the SDI program, from which I plan to write two to three articles on the use of Tangrammini components in MDI applications, in fact the application in MDI is consistent with the application creation steps in SDI. After using the Tangrammini component in an MDI application, it makes the application's framework design faster,
):
U an app (corresponding class Caapp) can contain multiple document templates (CDocTemplate), but MFC AppWizard (either SDI or MDI) only generates one by default. However, in the actual development of a document template is not enough, you need to manually add (in the following actual project examples to provide examples). This structure is implemented through the CWinApp member variable cdocmanager* M_pdocmanager in MFC, and our Caapp is inherited
AWK application-Retrieval of informationThe awk program can be used to retrieve information from the database, which is actually various types of text files. The better the structure of a text file, the easier it is to work, even though the result is simply a line of independent words.The following acronym list is a simple database.$CatAcronymsBASIC Beginner ' s AI i-purpose Symbol IC instruction codecics Customer Information Control systemcobol Commo
NET design Specifications: conventions, idioms and patterns ——— naming conventions Foreword: Recently in the ". NET design Specifications: conventions, idioms and patterns of the book, mainly speaking. NET design specifications, before this piece is not particularly concerned about, recently want to put these systems to learn, the following is basically a reading notes it. Chapter III Naming specifications 3.1 casing conventionsUse the appropriate casing to make the identifiers of types, members
; } Fieldset,img { border:0; } Address,caption,cite,code,dfn,em,strong,th,var { font-weight:normal; Font-style:normal; } Ol,ul { List-style:none; } caption,th { Text-align:left; } H1,h2,h3,h4,h5,h6 { font-weight:normal; font-size:100%; } Q:before,q:after { content:; } abbr,acronym {border:0; }
OK, I believe you have already understood the purpose of CSS reset, perhaps you can also according to their own preferences, write a CSS reset system
can be. Sometimes too much attention to MFC details will waste our energy, should be the main focus on the use of MFC to solve practical problems.
Implementation flow of SDI program in VC6 II
The following is an example of the SDI project in VC6, which can be seen in the implementation process of the MFC SDI by setting breakpoints in front of each function. Th
the workflow. Also, it is easy to send project material to Digidesign®pro tools® for audio post-processing.
Unmatched graphics and effects Avid marquee® is the industry's most complete, integrated 2D and 3D subtitle and graphics animation toolset. It features exceptionally powerful color correction tools, including a unique curve chart and a touch-only automatic correction feature, allowing you to create better graphic works faster.
Avid Mojo and Avid Mojo
There are many applications that require moving together to hide, these programs run as a background program, hope that does not affect other windows, often only in the tray display an icon. These programs are usually dialog box program, and dialog box in the process of initialization and SDI, MDI initialization is different, dialog box only need Domodule or createdialog and so on dialog function call once, SDI
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.