Skip to content

Commit 8ca6ab8

Browse files
committed
acrolinx
1 parent d1738e6 commit 8ca6ab8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/mfc/walkthrough-adding-a-ctaskdialog-to-an-application.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This walkthrough introduces the [`CTaskDialog` class](../mfc/reference/ctaskdial
1111
The `CTaskDialog` is a task dialog box that replaces the Windows message box in Windows Vista or later. The `CTaskDialog` improves on the original message box and adds functionality. The Windows message box is still supported in Visual Studio.
1212

1313
> [!NOTE]
14-
> Versions of Windows earlier than Windows Vista do not support the `CTaskDialog`. You must program an alternative dialog box option if you want to show a message to a user who runs your application on an earlier version of Windows. You can use the static method [CTaskDialog::IsSupported](../mfc/reference/ctaskdialog-class.md#issupported) to determine at run time whether a user's computer can display a `CTaskDialog`. In addition, the `CTaskDialog` is only available when your application is built with the Unicode library.
14+
> Versions of Windows earlier than Windows Vista don't support the `CTaskDialog`. You must program an alternative dialog box option if you want to show a message to a user who runs your application on an earlier version of Windows. You can use the static method [CTaskDialog::IsSupported](../mfc/reference/ctaskdialog-class.md#issupported) to determine at run time whether a user's computer can display a `CTaskDialog`. In addition, the `CTaskDialog` is only available when your application is built with the Unicode library.
1515
1616
The `CTaskDialog` supports several optional elements to gather and display information. For example, a `CTaskDialog` can display command links, customized buttons, customized icons, and a footer. The `CTaskDialog` also has several methods that enable you to query the state of the task dialog box to determine what optional elements the user selected.
1717

@@ -26,7 +26,7 @@ You need the following components to complete this walkthrough:
2626

2727
The following demonstrates the most basic use of the `CTaskDialog`, which is to replace the Windows message box. This example also changes the icon associated with the task dialog box. Changing the icon makes the `CTaskDialog` appear similar to the Windows message box.
2828

29-
1. Use the **MFC Application Wizard** to create an MFC application with all the default settings. See [Walkthrough: Using the New MFC Shell Controls](walkthrough-using-the-new-mfc-shell-controls.md) for instructions on how to open the wizard for your version of Visual Studio.
29+
1. Use the **MFC Application Wizard** to create a Microsoft Foundation Classes (MFC) application with all the default settings. See [Walkthrough: Using the New MFC Shell Controls](walkthrough-using-the-new-mfc-shell-controls.md) for instructions on how to open the wizard for your version of Visual Studio.
3030
1. Call it *MyProject*.
3131
1. Use the **Solution Explorer** to open `MyProject.cpp`.
3232
1. Add `#include "afxtaskdialog.h"` after the list of includes.
@@ -59,10 +59,10 @@ The following shows you how to add functionality to the `CTaskDialog` that you c
5959

6060
1. Navigate to the **Resource View** via **View** > **Other Windows** > **Resource View**.
6161
1. Expand the **Resource View** to the **String Table** folder. Expand it and double-click **String Table**.
62-
1. Scroll to the bottom of the string table and add a new entry. Change the ID to `TEMP_LINE1`. Set the caption to **Command Line 1**.
63-
1. Add another new entry. Change the ID to `TEMP_LINE2`. Set the caption to **Command Line 2**.
62+
1. Scroll to the bottom of the string table and add a new entry. Change the ID to `TEMP_LINE1`. Set the caption to `Command Line 1`.
63+
1. Add another new entry. Change the ID to `TEMP_LINE2`. Set the caption to `Command Line 2`.
6464
1. Navigate back to `MyProject.cpp`.
65-
1. In the `CMyProjectApp::InitInstance()` function, after `CString emptyString;`, add the following code:
65+
1. In the `CMyProjectApp::InitInstance()` function, after `CString emptyString;` add the following code:
6666

6767
```cpp
6868
CString expandedLabel("Hide extra information");

0 commit comments

Comments
 (0)