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 4cb194f
Browse filesBrowse the repository at this point in the historyBrowse files
Colin Robertson
authored
Merge pull request MicrosoftDocs#1994 from nschonni/fix--MD046/code-block-style
Copy file name to clipboardExpand all lines: docs/mfc/containers-advanced-features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The Links to Embedded Objects feature enables a user to create a document with a
52
52
53
53
- Call `COleTemplateServer::UpdateRegistry`. The only parameter to `UpdateRegistry` should be *OAT_CONTAINER* if the application is not launched with the "/Embedded" switch. This registers the application as a container that can support links to embedded objects.
54
54
55
-
If the application is launched with the "/Embedded" switch, it should not show its main window, similar to a server application.
55
+
If the application is launched with the "/Embedded" switch, it should not show its main window, similar to a server application.
56
56
57
57
The MFC OLE sample [OCLIENT](../overview/visual-cpp-samples.md) implements this feature. For an example of how this is done, see the `InitInstance` function in the *OCLIENT.CPP* file of this sample application.
Copy file name to clipboardExpand all lines: docs/mfc/data-objects-and-data-sources-manipulation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ Before an application allows the user to paste data into it, it needs to know if
48
48
49
49
- Call the data object's `IsDataAvailable` member function if there are only one or two formats you need. This will save you time in cases where the data on the Clipboard supports significantly more formats than your application.
50
50
51
-
-or-
51
+
\-or-
52
52
53
53
- Call the data object's `BeginEnumFormats` member function to start enumerating the formats available on the Clipboard. Then call `GetNextFormat` until the Clipboard returns a format your application supports or there are no more formats.
Copy file name to clipboardExpand all lines: docs/mfc/recommendations-for-handling-input-output.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,13 @@ Whether you use file-based I/O or not depends on how you respond to the question
24
24
25
25
- Yes, the data resides in an ODBC data source:
26
26
27
-
Use MFC's database support. The standard MFC implementation for this case includes a `CDatabase` object, as discussed in the article [MFC: Using Database Classes with Documents and Views](../data/mfc-using-database-classes-with-documents-and-views.md). The application might also read and write an auxiliary file — the purpose of the application wizard "both a database view and file support" option. In this case, you'd use serialization for the auxiliary file.
27
+
Use MFC's database support. The standard MFC implementation for this case includes a `CDatabase` object, as discussed in the article [MFC: Using Database Classes with Documents and Views](../data/mfc-using-database-classes-with-documents-and-views.md). The application might also read and write an auxiliary file — the purpose of the application wizard "both a database view and file support" option. In this case, you'd use serialization for the auxiliary file.
28
28
29
29
- No, the data doesn't reside in an ODBC data source.
30
30
31
-
Examples of this case: the data resides in a non-ODBC DBMS; the data is read via some other mechanism, such as OLE or DDE.
31
+
Examples of this case: the data resides in a non-ODBC DBMS; the data is read via some other mechanism, such as OLE or DDE.
32
32
33
-
In such cases, you won't use serialization, and your application won't have Open and Save menu items. You might still want to use a `CDocument` as a home base, just as an MFC ODBC application uses the document to store `CRecordset` objects. But you won't use the framework's default File Open/Save document serialization.
33
+
In such cases, you won't use serialization, and your application won't have Open and Save menu items. You might still want to use a `CDocument` as a home base, just as an MFC ODBC application uses the document to store `CRecordset` objects. But you won't use the framework's default File Open/Save document serialization.
34
34
35
35
To support the Open, Save, and Save As commands on the File menu, the framework provides document serialization. Serialization reads and writes data, including objects derived from class `CObject`, to permanent storage, normally a disk file. Serialization is easy to use and serves many of your needs, but it may be inappropriate in many data-access applications. Data-access applications typically update data on a per-transaction basis. They update the records affected by the transaction rather than reading and writing a whole data file at once.
Copy file name to clipboardExpand all lines: docs/mfc/reference/csplitterwnd-class.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -448,17 +448,17 @@ A pointer to the view from which the scrolling message originates.
448
448
*nScrollCode*<br/>
449
449
A scroll-bar code that indicates the user's scrolling request. This parameter is composed of two parts: a low-order byte, which determines the type of scrolling occurring horizontally, and a high-order byte, which determines the type of scrolling occurring vertically:
450
450
451
-
- SB_BOTTOM Scrolls to bottom.
451
+
- SB_BOTTOM Scrolls to bottom.
452
452
453
-
- SB_LINEDOWN Scrolls one line down.
453
+
- SB_LINEDOWN Scrolls one line down.
454
454
455
-
- SB_LINEUP Scrolls one line up.
455
+
- SB_LINEUP Scrolls one line up.
456
456
457
-
- SB_PAGEDOWN Scrolls one page down.
457
+
- SB_PAGEDOWN Scrolls one page down.
458
458
459
-
- SB_PAGEUP Scrolls one page up.
459
+
- SB_PAGEUP Scrolls one page up.
460
460
461
-
- SB_TOP Scrolls to top.
461
+
- SB_TOP Scrolls to top.
462
462
463
463
*bDoScroll*<br/>
464
464
Determines whether the specified scrolling action occurs. If *bDoScroll* is TRUE (that is, if a child window exists, and if the split windows have a scroll range), then the specified scrolling action can take place; if *bDoScroll* is FALSE (that is, if no child window exists, or the split views have no scroll range), then scrolling does not occur.
@@ -635,9 +635,9 @@ DWORD GetScrollStyle() const;
635
635
636
636
One or more of the following windows style flags, if successful:
637
637
638
-
- WS_HSCROLL If the splitter currently manages shared horizontal scroll bars.
638
+
- WS_HSCROLL If the splitter currently manages shared horizontal scroll bars.
639
639
640
-
- WS_VSCROLL If the splitter currently manages shared vertical scroll bars.
640
+
- WS_VSCROLL If the splitter currently manages shared vertical scroll bars.
641
641
642
642
If zero, the splitter window does not currently manage any shared scroll bars.
643
643
@@ -736,13 +736,13 @@ A pointer to the device context in which to draw. If *pDC* is NULL, then [CWnd::
736
736
*nType*<br/>
737
737
A value of the `enum ESplitType`, which can be one of the following:
738
738
739
-
- `splitBox` The splitter drag box.
739
+
-`splitBox` The splitter drag box.
740
740
741
-
- `splitBar` The bar that appears between the two split windows.
741
+
-`splitBar` The bar that appears between the two split windows.
742
742
743
-
- `splitIntersection` The intersection of the split windows. This element will not be called when running on Windows 95/98.
743
+
-`splitIntersection` The intersection of the split windows. This element will not be called when running on Windows 95/98.
744
744
745
-
- `splitBorder` The split window borders.
745
+
-`splitBorder` The split window borders.
746
746
747
747
*rect*<br/>
748
748
A reference to a [CRect](../../atl-mfc-shared/reference/crect-class.md) object specifying the size and shape of the split windows.
Copy file name to clipboardExpand all lines: docs/mfc/reference/run-time-object-model-services.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
@@ -333,11 +333,11 @@ The object name exposed to other applications (enclosed in quotation marks).
333
333
*nFlags*<br/>
334
334
Contains one or more of the following flags:
335
335
336
-
-`afxRegInsertable` Allows the control to appear in the Insert Object dialog box for OLE objects.
337
-
-`afxRegApartmentThreading` Sets the threading model in the registry to ThreadingModel=Apartment.
338
-
-`afxRegFreeThreading` Sets the threading model in the registry to ThreadingModel=Free.
336
+
-`afxRegInsertable` Allows the control to appear in the Insert Object dialog box for OLE objects.
337
+
-`afxRegApartmentThreading` Sets the threading model in the registry to ThreadingModel=Apartment.
338
+
-`afxRegFreeThreading` Sets the threading model in the registry to ThreadingModel=Free.
339
339
340
-
You can combine the two flags `afxRegApartmentThreading` and `afxRegFreeThreading` to set ThreadingModel=Both. See [InprocServer32](/windows/win32/com/inprocserver32) in the Windows SDK for more information on threading model registration.
340
+
You can combine the two flags `afxRegApartmentThreading` and `afxRegFreeThreading` to set ThreadingModel=Both. See [InprocServer32](/windows/win32/com/inprocserver32) in the Windows SDK for more information on threading model registration.
Copy file name to clipboardExpand all lines: docs/mfc/windows-sockets-using-class-casyncsocket.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,13 @@ This article covers:
40
40
41
41
- A "port": a short integer.
42
42
43
-
For a server socket, you must specify a port. For a client socket, you typically accept the default value for this parameter, which lets Windows Sockets select a port.
43
+
For a server socket, you must specify a port. For a client socket, you typically accept the default value for this parameter, which lets Windows Sockets select a port.
44
44
45
45
- A socket type: **SOCK_STREAM** (the default) or **SOCK_DGRAM**.
46
46
47
47
- A socket "address," such as "ftp.microsoft.com" or "128.56.22.8".
48
48
49
-
This is your Internet Protocol (IP) address on the network. You will probably always rely on the default value for this parameter.
49
+
This is your Internet Protocol (IP) address on the network. You will probably always rely on the default value for this parameter.
50
50
51
51
The terms "port" and "socket address" are explained in [Windows Sockets: Ports and Socket Addresses](../mfc/windows-sockets-ports-and-socket-addresses.md).
0 commit comments