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 50bd733
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -13,44 +13,6 @@ The **Dialog Editor** tab appears in the [Toolbox window](/visualstudio/ide/refe
13
13
14
14
You can use the shortcut menu in the **Dialog** editor to quickly add registered ActiveX controls to a dialog box, and you can add ActiveX controls to the **Toolbox** for quick access.
15
15
16
-
The standard controls available in the **Toolbox** with default events are:
|[Scroll bar control](../mfc/reference/cscrollbar-class.md)|NM_THEMECHANGED|
31
-
32
-
For more information on using the **RichEdit 1.0** control with MFC, see [Using the RichEdit 1.0 Control with MFC](../windows/using-the-richedit-1-0-control-with-mfc.md) and [Rich Edit Control Examples](../mfc/rich-edit-control-examples.md).
33
-
34
-
The [Windows Common Controls](../mfc/controls-mfc.md) available in the **Toolbox** provide increased functionality in your application. They include:
For more information, see [Control Classes](../mfc/control-classes.md), [Dialog Box Classes](../mfc/dialog-box-classes.md), and [Scroll-Bar Styles](../mfc/reference/styles-used-by-mfc.md#scroll-bar-styles).
53
-
54
16
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
55
17
56
18
## To add a control
@@ -200,14 +162,53 @@ On the **Edit** menu, select **Delete**.
200
162
> [!TIP]
201
163
> While using the **Dialog** editor, in many instances, you can click the right mouse button to display a shortcut menu of frequently used commands.
202
164
165
+
## Known issue
166
+
167
+
After adding a common control or rich edit control to a dialog box, it won't appear when you test the dialog box or the dialog itself won't appear.
168
+
169
+
To see an example of the problem:
170
+
171
+
1. Create a Win32 project, modifying the application settings so you create a Windows application (not a console app).
172
+
173
+
1. In [Resource View](../windows/resource-view-window.md), double-click on the .rc file.
174
+
175
+
1. Under the dialog option, double-click the **About** box.
176
+
177
+
1. Add an **IP Address Control** to the dialog box.
178
+
179
+
1. Save and **Rebuild all**.
180
+
181
+
1. Execute the program.
182
+
183
+
1. On the dialog box's **Help** menu, click the **About** command; no dialog box is displayed.
184
+
185
+
Currently, the **Dialog** editor doesn't automatically add code to your project when you drag and drop the following common controls or rich edit controls onto a dialog box. Nor does Visual Studio provide an error or warning when this problem occurs. To fix, add the code for the control manually.
To use common controls on a dialog box, you need to call [InitCommonControlsEx](/windows/desktop/api/commctrl/nf-commctrl-initcommoncontrolsex) or `AFXInitCommonControls` before you create the dialog box.
196
+
197
+
To use RichEdit controls, you must call `LoadLibrary`. For more information, see [About Rich Edit Controls](/windows/desktop/Controls/about-rich-edit-controls) in the Windows SDK and [Overview of the Rich Edit Control](../mfc/overview-of-the-rich-edit-control.md).
198
+
199
+
> [!NOTE]
200
+
> To use a RichEdit control with MFC, you must first call [AfxInitRichEdit2](../mfc/reference/application-information-and-management.md#afxinitrichedit2) to load the RichEdit 2.0 Control (RICHED20.DLL), or call [AfxInitRichEdit](../mfc/reference/application-information-and-management.md#afxinitrichedit) to load the older RichEdit 1.0 Control (RICHED32.DLL).
201
+
>
202
+
> You may use the current [CRichEditCtrl](../mfc/reference/cricheditctrl-class.md) class with the older RichEdit 1.0 control, but `CRichEditCtrl` is only designed to support the RichEdit 2.0 control. Because RichEdit 1.0 and RichEdit 2.0 are similar, most methods will work. However, note there are some differences between the 1.0 and 2.0 controls, so some methods might work incorrectly or not work at all.
203
+
203
204
## Requirements
204
205
205
206
Win32
206
207
207
208
## See also
208
209
210
+
[Dialog Editor](../windows/dialog-editor.md)<br/>
209
211
[Controls in Dialog Boxes](controls-in-dialog-boxes.md)<br/>
210
-
[Dialog Box Controls and Variable Types](../ide/dialog-box-controls-and-variable-types.md)<br/>
0 commit comments