Skip to content

Commit a74cb4a

Browse files
author
msebolt
committed
resource file consolidation pr44
1 parent a9bf636 commit a74cb4a

File tree

4 files changed

+37
-48
lines changed

4 files changed

+37
-48
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7910,6 +7910,11 @@
79107910
"redirect_url": "/cpp/windows/toolbar-editor",
79117911
"redirect_document_id": false
79127912
},
7913+
{
7914+
"source_path": "docs/windows/how-to-add-mfc-support-to-resource-script-files.md",
7915+
"redirect_url": "/cpp/windows/how-to-create-a-resource-script-file",
7916+
"redirect_document_id": false
7917+
},
79137918
{
79147919
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
79157920
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

docs/windows/TOC.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
### [Resource Files (Visual Studio)](resource-files-visual-studio.md)
1313
#### [How to: Create a Resource Script File](how-to-create-a-resource-script-file.md)
1414
#### [How to: Create a Resource](how-to-create-a-resource.md)
15-
#### [How to: Add MFC Support to Resource Script Files](how-to-add-mfc-support-to-resource-script-files.md)
1615
#### [How to: Include Resources at Compile Time](how-to-include-resources-at-compile-time.md)
1716
#### [How to: Copy Resources](how-to-copy-resources.md)
1817
#### [How to: Search for Symbols in Resources](how-to-search-for-symbols-in-resources.md)

docs/windows/how-to-add-mfc-support-to-resource-script-files.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/windows/how-to-create-a-resource-script-file.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
title: "How to: Create a Resource Script File (C++)"
33
ms.date: "11/04/2016"
4-
f1_keywords: ["vc.editors.resource"]
5-
helpviewer_keywords: ["rc files [C++], creating", ".rc files [C++], creating", "resource script files [C++], creating", "resources [C++], viewing", "rc files [C++], viewing resources", ".rc files [C++], viewing resources", "resource script files [C++], viewing resources", "resource script files [C++], opening in text format", ".rc files [C++], opening in text format", "rc files [C++], opening in text format"]
4+
f1_keywords: ["vc.editors.resource", "vc.resvw.add.MFC"]
5+
helpviewer_keywords: ["rc files [C++], creating", ".rc files [C++], creating", "resource script files [C++], creating", "resources [C++], viewing", "rc files [C++], viewing resources", ".rc files [C++], viewing resources", "resource script files [C++], viewing resources", "resource script files [C++], opening in text format", ".rc files [C++], opening in text format", "rc files [C++], opening in text format", "rc files [C++], adding MFC support", ".rc files [C++], adding MFC support", "MFC, adding support to resource scripts files", "resource script files [C++], adding MFC support"]
66
ms.assetid: 82be732a-cdcd-4a58-8de7-976d1418f86b
77
---
88
# How to: Create a Resource Script File (C++)
99

1010
> [!NOTE]
1111
> The **Resource Editor** is not available in Express editions.
1212
>
13-
> This material applies to Windows desktop applications. Projects in .NET languages do not use resource script files. For more information, see [Resource Files](../windows/resource-files-visual-studio.md), for more information.
13+
> This material applies to Windows desktop applications. Projects in .NET languages do not use resource script files. For more information, see [Resource Files](../windows/resource-files-visual-studio.md).
1414
1515
## To create a new resource script (.rc) file
1616

@@ -103,11 +103,39 @@ You can easily open the resource file in text format to view all the resources i
103103

104104
1. From the shortcut menu, choose **Open with...**, then select **Source Code (Text) Editor**.
105105

106+
## To add MFC Support to resource script files
107+
108+
Normally, when you build an MFC application for Windows using the [MFC Application Wizard](../mfc/reference/mfc-application-wizard.md), the wizard generates a basic set of files (including a resource script (.rc) file) that contains the core features of the Microsoft Foundation classes (MFC). However, if you're editing an .rc file for a Windows application that isn't based on MFC, the following features specific to the MFC framework aren't available:
109+
110+
- MFC code wizards
111+
112+
- Menu prompt strings
113+
114+
- List contents for combo box controls
115+
116+
- ActiveX control hosting
117+
118+
However, you can add MFC support to existing .rc files that don't have it.
119+
120+
> [!NOTE]
121+
> These steps requires MFC.
122+
123+
### To add MFC support to .rc files
124+
125+
1. Open the resource script file.
126+
127+
1. In [Resource View](../windows/resource-view-window.md), highlight the resources folder (for example, MFC.rc).
128+
129+
1. In the [Properties window](/visualstudio/ide/reference/properties-window), set the **MFC Mode** property to **True**.
130+
131+
> [!NOTE]
132+
> In addition to setting this flag, the .rc file must be part of an MFC project. For example, just setting **MFC Mode** to **True** on an .rc file in a Win32 project won't give you any of the MFC features.
133+
106134
## Requirements
107135

108136
Win32
109137

110-
## See Also
138+
## See also
111139

112140
[Resource Files](../windows/resource-files-visual-studio.md)<br/>
113141
[Resource Editors](../windows/resource-editors.md)

0 commit comments

Comments
 (0)