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
{{ message }}
Repository navigation
Commit d4ff28a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/mfc/reference/coledatasource-class.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ void CacheData(
79
79
The Clipboard format in which the data is to be offered. This parameter can be one of the predefined Clipboard formats or the value returned by the native Windows [RegisterClipboardFormat](/windows/win32/api/winuser/nf-winuser-registerclipboardformatw) function.
80
80
81
81
*lpStgMedium*<br/>
82
-
Points to a [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium~r1) structure containing the data in the format specified.
82
+
Points to a [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium-r1) structure containing the data in the format specified.
83
83
84
84
*lpFormatEtc*<br/>
85
85
Points to a [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structure describing the format in which the data is to be offered. Provide a value for this parameter if you want to specify additional format information beyond the Clipboard format specified by *cfFormat*. If it is NULL, default values are used for the other fields in the `FORMATETC` structure.
@@ -88,13 +88,13 @@ Points to a [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structure
88
88
89
89
You must supply the data, because this function provides it by using immediate rendering. The data is cached until needed.
90
90
91
-
Supply the data using a [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium~r1) structure. You can also use the `CacheGlobalData` member function if the amount of data you are supplying is small enough to be transferred efficiently using an HGLOBAL.
91
+
Supply the data using a [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium-r1) structure. You can also use the `CacheGlobalData` member function if the amount of data you are supplying is small enough to be transferred efficiently using an HGLOBAL.
92
92
93
93
After the call to `CacheData` the `ptd` member of `lpFormatEtc` and the contents of *lpStgMedium* are owned by the data object, not by the caller.
94
94
95
95
To use delayed rendering, call the [DelayRenderData](#delayrenderdata) or [DelayRenderFileData](#delayrenderfiledata) member function. For more information on delayed rendering as handled by MFC, see the article [Data Objects and Data Sources: Manipulation](../../mfc/data-objects-and-data-sources-manipulation.md).
96
96
97
-
For more information, see the [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium~r1) and [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structures in the Windows SDK.
97
+
For more information, see the [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium-r1) and [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structures in the Windows SDK.
98
98
99
99
For more information, see [RegisterClipboardFormat](/windows/win32/api/winuser/nf-winuser-registerclipboardformatw) in the Windows SDK.
100
100
@@ -328,7 +328,7 @@ virtual BOOL OnRenderData(
328
328
Points to the [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structure specifying the format in which information is requested.
329
329
330
330
*lpStgMedium*<br/>
331
-
Points to a [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium~r1) structure in which the data is to be returned.
331
+
Points to a [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium-r1) structure in which the data is to be returned.
332
332
333
333
### Return Value
334
334
@@ -342,7 +342,7 @@ If *lpStgMedium*-> *tymed* is TYMED_NULL, the `STGMEDIUM` should be allocated an
342
342
343
343
This is an advanced overridable. Override this function to supply your data in the requested format and medium. Depending on your data, you may want to override one of the other versions of this function instead. If your data is small and fixed in size, override `OnRenderGlobalData`. If your data is in a file, or is of variable size, override `OnRenderFileData`.
344
344
345
-
For more information, see the [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium~r1) and [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structures, the [TYMED](/windows/win32/api/objidl/ne-objidl-tymed) enumeration type, and [IDataObject::GetData](/windows/win32/api/objidl/nf-objidl-idataobject-getdata) in the Windows SDK.
345
+
For more information, see the [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium-r1) and [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structures, the [TYMED](/windows/win32/api/objidl/ne-objidl-tymed) enumeration type, and [IDataObject::GetData](/windows/win32/api/objidl/nf-objidl-idataobject-getdata) in the Windows SDK.
Points to the [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structure specifying the format in which data is being replaced.
424
424
425
425
*lpStgMedium*<br/>
426
-
Points to the [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium~r1) structure containing the data that will replace the current contents of the `COleDataSource` object.
426
+
Points to the [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium-r1) structure containing the data that will replace the current contents of the `COleDataSource` object.
427
427
428
428
*bRelease*<br/>
429
429
Indicates who has ownership of the storage medium after completing the function call. The caller decides who is responsible for releasing the resources allocated on behalf of the storage medium. The caller does this by setting *bRelease*. If *bRelease* is nonzero, the data source takes ownership, freeing the medium when it has finished using it. When *bRelease* is 0, the caller retains ownership and the data source can use the storage medium only for the duration of the call.
@@ -438,7 +438,7 @@ The data source does not take ownership of the data until it has successfully ob
438
438
439
439
The default implementation does nothing. Override this function to replace the data in the specified format. This is an advanced overridable.
440
440
441
-
For more information, see the [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium~r1) and [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structures and the [ReleaseStgMedium](/windows/win32/api/ole2/nf-ole2-releasestgmedium) and [IDataObject::GetData](/windows/win32/api/objidl/nf-objidl-idataobject-getdata) functions in the Windows SDK.
441
+
For more information, see the [STGMEDIUM](/windows/win32/api/objidl/ns-objidl-ustgmedium-r1) and [FORMATETC](/windows/win32/api/objidl/ns-objidl-formatetc) structures and the [ReleaseStgMedium](/windows/win32/api/ole2/nf-ole2-releasestgmedium) and [IDataObject::GetData](/windows/win32/api/objidl/nf-objidl-idataobject-getdata) functions in the Windows SDK.
0 commit comments