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
Pointer to the name of the embedded OLE item requested.
103
103
104
104
### Return Value
105
-
A pointer to the specified item; **NULL** if the item is not found.
105
+
A pointer to the specified item; NULL if the item is not found.
106
106
107
107
### Remarks
108
108
The default implementation searches the list of embedded items for an item with the specified name (the name comparison is case sensitive). Override this function if you have your own method of storing or naming embedded OLE items.
Pointer to the name of the linked OLE item requested.
120
120
121
121
### Return Value
122
-
A pointer to the specified item; **NULL** if the item is not found.
122
+
A pointer to the specified item; NULL if the item is not found.
123
123
124
124
### Remarks
125
-
The default `COleLinkingDoc` implementation always returns **NULL**. This function is overriden in the derived class `COleServerDoc` to search the list of OLE server items for a linked item with the specified name (the name comparison is case sensitive). Override this function if you have implemented your own method of storing or retrieving linked server items.
125
+
The default `COleLinkingDoc` implementation always returns NULL. This function is overriden in the derived class `COleServerDoc` to search the list of OLE server items for a linked item with the specified name (the name comparison is case sensitive). Override this function if you have implemented your own method of storing or retrieving linked server items.
Copy file name to clipboardexpand all lines: docs/mfc/reference/colelinksdialog-class.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -39,10 +39,10 @@ class COleLinksDialog : public COleDialog
39
39
40
40
|Name|Description|
41
41
|----------|-----------------|
42
-
|[COleLinksDialog::m_el](#m_el)|A structure of type **OLEUIEDITLINKS** that controls the behavior of the dialog box.|
42
+
|[COleLinksDialog::m_el](#m_el)|A structure of type OLEUIEDITLINKS that controls the behavior of the dialog box.|
43
43
44
44
## Remarks
45
-
Create an object of class `COleLinksDialog` when you want to call this dialog box. After a `COleLinksDialog` object has been constructed, you can use the [m_el](#m_el) structure to initialize the values or states of controls in the dialog box. The `m_el` structure is of type **OLEUIEDITLINKS**. For more information about using this dialog class, see the [DoModal](#domodal) member function.
45
+
Create an object of class `COleLinksDialog` when you want to call this dialog box. After a `COleLinksDialog` object has been constructed, you can use the [m_el](#m_el) structure to initialize the values or states of controls in the dialog box. The `m_el` structure is of type OLEUIEDITLINKS. For more information about using this dialog class, see the [DoModal](#domodal) member function.
46
46
47
47
> [!NOTE]
48
48
> Application Wizard-generated container code uses this class.
@@ -79,11 +79,11 @@ virtual INT_PTR DoModal();
79
79
### Return Value
80
80
Completion status for the dialog box. One of the following values:
81
81
82
-
-**IDOK** if the dialog box was successfully displayed.
82
+
- IDOK if the dialog box was successfully displayed.
83
83
84
-
-**IDCANCEL** if the user canceled the dialog box.
84
+
- IDCANCEL if the user canceled the dialog box.
85
85
86
-
-**IDABORT** if an error occurred. If **IDABORT** is returned, call the `COleDialog::GetLastError` member function to get more information about the type of error that occurred. For a listing of possible errors, see the [OleUIEditLinks](http://msdn.microsoft.com/library/windows/desktop/ms679703) function in the Windows SDK.
86
+
- IDABORT if an error occurred. If IDABORT is returned, call the `COleDialog::GetLastError` member function to get more information about the type of error that occurred. For a listing of possible errors, see the [OleUIEditLinks](http://msdn.microsoft.com/library/windows/desktop/ms679703) function in the Windows SDK.
87
87
88
88
### Remarks
89
89
If you want to initialize the various dialog box controls by setting members of the [m_el](#m_el) structure, you should do it before calling `DoModal`, but after the dialog object is constructed.
@@ -107,16 +107,16 @@ COleLinksDialog (
107
107
Points to the current view on *pDoc*.
108
108
109
109
*dwFlags*
110
-
Creation flag, which contains either 0 or **ELF_SHOWHELP** to specify whether the Help button will be displayed when the dialog box is displayed.
110
+
Creation flag, which contains either 0 or ELF_SHOWHELP to specify whether the Help button will be displayed when the dialog box is displayed.
111
111
112
112
*pParentWnd*
113
-
Points to the parent or owner window object (of type `CWnd`) to which the dialog object belongs. If it is **NULL**, the parent window of the dialog box is set to the main application window.
113
+
Points to the parent or owner window object (of type `CWnd`) to which the dialog object belongs. If it is NULL, the parent window of the dialog box is set to the main application window.
114
114
115
115
### Remarks
116
116
This function constructs only a `COleLinksDialog` object. To display the dialog box, call the [DoModal](#domodal) function.
117
117
118
118
## <aname="m_el"></a> COleLinksDialog::m_el
119
-
Structure of type **OLEUIEDITLINKS** used to control the behavior of the Edit Links dialog box.
119
+
Structure of type OLEUIEDITLINKS used to control the behavior of the Edit Links dialog box.
A value from the `SERVERCALL` enumeration, which is defined in COMPOBJ.H. It can have any one of the following values:
181
181
182
-
-**SERVERCALL_ISHANDLED** The application can accept calls but may fail in processing a particular call.
182
+
- SERVERCALL_ISHANDLED The application can accept calls but may fail in processing a particular call.
183
183
184
-
-**SERVERCALL_REJECTED** The application probably will never be able to process a call.
184
+
- SERVERCALL_REJECTED The application probably will never be able to process a call.
185
185
186
-
-**SERVERCALL_RETRYLATER** The application is temporarily in a state in which it cannot process a call.
186
+
- SERVERCALL_RETRYLATER The application is temporarily in a state in which it cannot process a call.
187
187
188
188
### Remarks
189
189
The [BeginBusyState](#beginbusystate) and [EndBusyState](#endbusystate) functions control the application's busy state.
190
190
191
191
When an application has been made busy with a call to `BeginBusyState`, it responds to calls from the OLE system DLLs with a value determined by the last setting of `SetBusyReply`. The calling application uses this busy reply to determine what action to take.
192
192
193
-
By default, the busy reply is **SERVERCALL_RETRYLATER**. This reply causes the calling application to retry the call as soon as possible.
193
+
By default, the busy reply is SERVERCALL_RETRYLATER. This reply causes the calling application to retry the call as soon as possible.
Copy file name to clipboardexpand all lines: docs/mfc/reference/coleobjectfactory-class.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -103,18 +103,18 @@ COleObjectFactory(
103
103
Pointer to the run-time class of the C++ objects this factory can create.
104
104
105
105
*bMultiInstance*
106
-
Indicates whether a single instance of the application can support multiple instantiations. If **TRUE**, multiple instances of the application are launched for each request to create an object.
106
+
Indicates whether a single instance of the application can support multiple instantiations. If TRUE, multiple instances of the application are launched for each request to create an object.
107
107
108
108
*nFlags*
109
109
Contains one or more of the following flags:
110
110
111
-
-**afxRegDefault** Sets the threading model to ThreadingModel=Apartment.
111
+
-`afxRegDefault` Sets the threading model to ThreadingModel=Apartment.
112
112
113
-
-**afxRegInsertable** Allows the control to appear in the **Insert Object** dialog box for OLE objects.
113
+
-`afxRegInsertable` Allows the control to appear in the **Insert Object** dialog box for OLE objects.
114
114
115
-
-**afxRegApartmentThreading** Sets the threading model in the registry to ThreadingModel=Apartment.
115
+
-`afxRegApartmentThreading` Sets the threading model in the registry to ThreadingModel=Apartment.
116
116
117
-
-**afxRegFreeThreading** Sets the threading model in the registry to ThreadingModel=Free.
117
+
-`afxRegFreeThreading` Sets the threading model in the registry to ThreadingModel=Free.
118
118
119
119
You can combine the two flags `afxRegApartmentThreading` and `afxRegFreeThreading` to set ThreadingModel=Both. See [InprocServer32](http://msdn.microsoft.com/library/windows/desktop/ms682390) in the Windows SDK for more information on threading model registration.
120
120
@@ -140,7 +140,7 @@ REFCLSID GetClassID() const;
140
140
For more information, see [CLSID Key](http://msdn.microsoft.com/library/windows/desktop/ms691424) in the Windows SDK.
Requests a unique license key from the control's DLL and stores it in the `BSTR` pointed to by *pbstrKey*.
143
+
Requests a unique license key from the control's DLL and stores it in the BSTR pointed to by *pbstrKey*.
144
144
145
145
```
146
146
virtual BOOL GetLicenseKey(
@@ -153,13 +153,13 @@ virtual BOOL GetLicenseKey(
153
153
Reserved for future use.
154
154
155
155
*pbstrKey*
156
-
Pointer to a `BSTR` that will store the license key.
156
+
Pointer to a BSTR that will store the license key.
157
157
158
158
### Return Value
159
-
Nonzero if the license-key string is not **NULL**; otherwise 0.
159
+
Nonzero if the license-key string is not NULL; otherwise 0.
160
160
161
161
### Remarks
162
-
The default implementation of this function returns 0 and stores nothing in the `BSTR`. If you use MFC ActiveX ControlWizard to create your project, ControlWizard supplies an override that retrieves the control's license key.
162
+
The default implementation of this function returns 0 and stores nothing in the BSTR. If you use MFC ActiveX ControlWizard to create your project, ControlWizard supplies an override that retrieves the control's license key.
-**UpdateRegistry(**`lpszProgID`**)** Registers this object factory with the OLE system registry. This function is usually called by [CWinApp::InitInstance](../../mfc/reference/cwinapp-class.md#initinstance) when the application is launched.
272
272
273
-
-**UpdateRegistry(**`bRegister`**)** This form of the function is overridable. If *bRegister* is **TRUE**, this function registers the control class with the system registry. Otherwise, it unregisters the class.
273
+
-**UpdateRegistry(**`bRegister`**)** This form of the function is overridable. If *bRegister* is TRUE, this function registers the control class with the system registry. Otherwise, it unregisters the class.
274
274
275
275
If you use MFC ActiveX ControlWizard to create your project, ControlWizard supplies an override to this pure virtual function.
0 commit comments