You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Points to a null-teminated string that specifies the name of a section in the initialization file or a key in the Windows registry where state information is stored.
Points to a null-teminated string that specifies the name of a section in the initialization file or a key in the Windows registry where state information is stored.
Copy file name to clipboardExpand all lines: docs/mfc/reference/cdocobjectserver-class.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ void ActivateDocObject();
74
74
```
75
75
76
76
### Remarks
77
-
`ActivateDocObject` calls `IOleDocumentSite`'s **ActivateMe** method, but does not show the view because it waits for specific instructions on how to set up and display the view, given in the call to [CDocObjectServer::OnActivateView](#onactivateview).
77
+
`ActivateDocObject` calls `IOleDocumentSite`'s `ActivateMe` method, but does not show the view because it waits for specific instructions on how to set up and display the view, given in the call to [CDocObjectServer::OnActivateView](#onactivateview).
78
78
79
79
Together, `ActivateDocObject` and `OnActivateView` activate and display the DocObject view. DocObject activation differs from other kinds of OLE in-place activation. DocObject activation bypasses displaying in-place hatch borders and object adornments (such as sizing handles), ignores object extent functions, and draws scroll bars within the view rectangle as opposed to drawing them outside that rectangle (as in normal in-place activation).
80
80
@@ -91,7 +91,7 @@ explicit CDocObjectServer(
91
91
*pOwner*
92
92
A pointer to the client site document that is the client for the DocObject server.
93
93
94
-
`pDocSite`
94
+
*pDocSite*
95
95
A pointer to the `IOleDocumentSite` interface implemented by the container.
A pointer to the document that will contain the new DocObject item.
76
76
77
-
`bAutoDelete`
77
+
*bAutoDelete*
78
78
Indicates whether the object can be deleted when a link to it is released. Set the argument to **FALSE** if the `CDocObjectServerItem` object is an integral part of your document's data. Set it to **TRUE** if the object is a secondary structure used to identify a range in your document's data that can be deleted by the framework.
Copy file name to clipboardExpand all lines: docs/mfc/reference/cdoctemplate-class.md
+44-44Lines changed: 44 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ class CDocTemplate : public CCmdTarget
56
56
## Remarks
57
57
You usually create one or more document templates in the implementation of your application's `InitInstance` function. A document template defines the relationships among three types of classes:
58
58
59
-
- A document class, which you derive from **CDocument**.
59
+
- A document class, which you derive from `CDocument`.
60
60
61
61
- A view class, which displays data from the document class listed above. You can derive this class from `CView`, `CScrollView`, `CFormView`, or `CEditView`. (You can also use `CEditView` directly.)
Specifies the ID of the resources used with the document type. This may include menu, icon, accelerator table, and string resources.
117
117
118
118
The string resource consists of up to seven substrings separated by the '\n' character (the '\n' character is needed as a place holder if a substring is not included; however, trailing '\n' characters are not necessary); these substrings describe the document type. For information on the substrings, see [GetDocString](#getdocstring). This string resource is found in the application's resource file. For example:
@@ -129,13 +129,13 @@ CDocTemplate (
129
129
130
130
Note that the string begins with a '\n' character; this is because the first substring is not used for MDI applications and so is not included. You can edit this string using the string editor; the entire string appears as a single entry in the String Editor, not as seven separate entries.
131
131
132
-
`pDocClass`
133
-
Points to the `CRuntimeClass` object of the document class. This class is a **CDocument**-derived class you define to represent your documents.
132
+
*pDocClass*
133
+
Points to the `CRuntimeClass` object of the document class. This class is a `CDocument`-derived class you define to represent your documents.
134
134
135
-
`pFrameClass`
135
+
*pFrameClass*
136
136
Points to the `CRuntimeClass` object of the frame window class. This class can be a `CFrameWnd`-derived class, or it can be `CFrameWnd` itself if you want default behavior for your main frame window.
137
137
138
-
`pViewClass`
138
+
*pViewClass*
139
139
Points to the `CRuntimeClass` object of the view class. This class is a `CView`-derived class you define to display your documents.
The document to which the new frame window should refer. Can be **NULL**.
182
182
183
-
`pOther`
183
+
*pOther*
184
184
The frame window on which the new frame window is to be based. Can be **NULL**.
185
185
186
186
### Return Value
187
187
A pointer to the newly created frame window, or **NULL** if an error occurs.
188
188
189
189
### Remarks
190
-
`CreateNewFrame` uses the `CRuntimeClass` objects passed to the constructor to create a new frame window with a view and document attached. If the `pDoc` parameter is **NULL**, the framework outputs a TRACE message.
190
+
`CreateNewFrame` uses the `CRuntimeClass` objects passed to the constructor to create a new frame window with a view and document attached. If the *pDoc* parameter is **NULL**, the framework outputs a TRACE message.
191
191
192
-
The `pOther` parameter is used to implement the Window New command. It provides a frame window on which to model the new frame window. The new frame window is usually created invisible. Call this function to create frame windows outside the standard framework implementation of File New and File Open.
192
+
The *pOther* parameter is used to implement the Window New command. It provides a frame window on which to model the new frame window. The new frame window is usually created invisible. Call this function to create frame windows outside the standard framework implementation of File New and File Open.
Retrieves a string associated with the document type.
@@ -227,7 +227,7 @@ virtual BOOL GetDocString(
227
227
```
228
228
229
229
### Parameters
230
-
`rString`
230
+
*rString*
231
231
A reference to a `CString` object that will contain the string when the function returns.
232
232
233
233
*index*
@@ -271,7 +271,7 @@ virtual POSITION GetFirstDocPosition() const = 0;
271
271
[CSingleDocTemplate](../../mfc/reference/csingledoctemplate-class.md) and [CMultiDocTemplate](../../mfc/reference/cmultidoctemplate-class.md) both override this pure virtual function. Any class you derive from `CDocTemplate` must also override this function.
The document to which the frame is associated. Can be **NULL**.
310
310
311
-
`bMakeVisible`
311
+
*bMakeVisible*
312
312
Indicates whether the frame should become visible and active.
313
313
314
314
### Remarks
315
-
Call **IntitialUpdateFrame** after creating a new frame with `CreateNewFrame`. Calling this function causes the views in that frame window to receive their `OnInitialUpdate` calls. Also, if there was not previously an active view, the primary view of the frame window is made active; the primary view is a view with a child ID of **AFX_IDW_PANE_FIRST**. Finally, the frame window is made visible if `bMakeVisible` is non-zero. If `bMakeVisible` is zero, the current focus and visible state of the frame window will remain unchanged.
315
+
Call **IntitialUpdateFrame** after creating a new frame with `CreateNewFrame`. Calling this function causes the views in that frame window to receive their `OnInitialUpdate` calls. Also, if there was not previously an active view, the primary view of the frame window is made active; the primary view is a view with a child ID of **AFX_IDW_PANE_FIRST**. Finally, the frame window is made visible if `bMakeVisible` is non-zero. If *bMakeVisible* is zero, the current focus and visible state of the frame window will remain unchanged.
316
316
317
317
It is not necessary to call this function when using the framework's implementation of File New and File Open.
Pathname of the file whose type is to be determined.
341
341
342
-
`rpDocMatch`
343
-
Pointer to a document that is assigned the matching document, if the file specified by `lpszPathName` is already open.
342
+
*rpDocMatch*
343
+
Pointer to a document that is assigned the matching document, if the file specified by *lpszPathName* is already open.
344
344
345
345
### Return Value
346
346
A value from the **Confidence** enumeration, which is defined as follows:
@@ -360,9 +360,9 @@ enum Confidence
360
360
### Remarks
361
361
Use this function to determine the type of document template to use for opening a file. If your application supports multiple file types, for example, you can use this function to determine which of the available document templates is appropriate for a given file by calling `MatchDocType` for each template in turn, and choosing a template according to the confidence value returned.
362
362
363
-
If the file specified by `lpszPathName` is already open, this function returns **CDocTemplate::yesAlreadyOpen** and copies the file's **CDocument** object into the object at `rpDocMatch`.
363
+
If the file specified by *lpszPathName* is already open, this function returns **CDocTemplate::yesAlreadyOpen** and copies the file's **CDocument** object into the object at *rpDocMatch*.
364
364
365
-
If the file is not open but the extension in `lpszPathName` matches the extension specified by **CDocTemplate::filterExt**, this function returns **CDocTemplate::yesAttemptNative** and sets `rpDocMatch` to **NULL**. For more information on **CDocTemplate::filterExt**, see [CDocTemplate::GetDocString](#getdocstring).
365
+
If the file is not open but the extension in *lpszPathName* matches the extension specified by **CDocTemplate::filterExt**, this function returns **CDocTemplate::yesAttemptNative** and sets *rpDocMatch* to **NULL**. For more information on **CDocTemplate::filterExt**, see [CDocTemplate::GetDocString](#getdocstring).
366
366
367
367
If neither case is true, the function returns **CDocTemplate::yesAttemptForeign**.
Pointer to the path of the file that contains the document to be opened.
385
385
386
-
[in]`bAddToMRU`
386
+
[in]*bAddToMRU*
387
387
`TRUE` indicates the document is one of the most recent files; `FALSE` indicates the document is not one of the most recent files.
388
388
389
389
### Return Value
390
-
A pointer to the document whose file is named by `lpszPathName`; `NULL` if unsuccessful.
390
+
A pointer to the document whose file is named by *lpszPathName*; `NULL` if unsuccessful.
391
391
392
392
### Remarks
393
-
Opens the file whose path is specified by `lpszPathName`. If `lpszPathName` is `NULL`, a new file that contains a document of the type associated with this template is created.
393
+
Opens the file whose path is specified by *lpszPathName*. If *lpszPathName* is `NULL`, a new file that contains a document of the type associated with this template is created.
The ID of the resources used when an embedded object is activated.
429
429
430
430
### Remarks
431
431
Call this function to set the resources to be used when an OLE object is in-place activated. These resources may include menus and accelerator tables. This function is usually called in the [CWinApp::InitInstance](../../mfc/reference/cwinapp-class.md#initinstance) function of your application.
432
432
433
-
The menu associated with `nIDOleInPlaceContainer` contains separators that allow the menu of the activated in-place item to merge with the menu of the container application. For more information about merging server and container menus, see the article [Menus and Resources (OLE)](../../mfc/menus-and-resources-ole.md).
433
+
The menu associated with *nIDOleInPlaceContainer* contains separators that allow the menu of the activated in-place item to merge with the menu of the container application. For more information about merging server and container menus, see the article [Menus and Resources (OLE)](../../mfc/menus-and-resources-ole.md).
Call this function to load the document's default title and display it in the document's title bar.
@@ -461,7 +461,7 @@ void SetServerInfo(
461
461
*nIDOleEmbedding*
462
462
The ID of the resources used when an embedded object is opened in a separate window.
463
463
464
-
`nIDOleInPlaceServer`
464
+
*nIDOleInPlaceServer*
465
465
The ID of the resources used when an embedded object is activated in-place.
466
466
467
467
*pOleFrameClass*
@@ -473,7 +473,7 @@ void SetServerInfo(
473
473
### Remarks
474
474
Call this member function to identify resources that will be used by the server application when the user requests activation of an embedded object. These resources consist of menus and accelerator tables. This function is usually called in the `InitInstance` of your application.
475
475
476
-
The menu associated with `nIDOleInPlaceServer` contains separators that allow the server menu to merge with the menu of the container. For more information about merging server and container menus, see the article [Menus and Resources (OLE)](../../mfc/menus-and-resources-ole.md).
476
+
The menu associated with *nIDOleInPlaceServer* contains separators that allow the server menu to merge with the menu of the container. For more information about merging server and container menus, see the article [Menus and Resources (OLE)](../../mfc/menus-and-resources-ole.md).
0 commit comments