2 out of 6 rated this helpful - Rate this topic

Resource Types

Applies to: desktop apps only

The following are the predefined resource types.

Constant/valueDescription
RT_ACCELERATOR
MAKEINTRESOURCE(9)

Accelerator table.

RT_ANICURSOR
MAKEINTRESOURCE(21)

Animated cursor.

RT_ANIICON
MAKEINTRESOURCE(22)

Animated icon.

RT_BITMAP
MAKEINTRESOURCE(2)

Bitmap resource.

RT_CURSOR
MAKEINTRESOURCE(1)

Hardware-dependent cursor resource.

RT_DIALOG
MAKEINTRESOURCE(5)

Dialog box.

RT_DLGINCLUDE
MAKEINTRESOURCE(17)

Allows a resource editing tool to associate a string with an .rc file. Typically, the string is the name of the header file that provides symbolic names. The resource compiler parses the string but otherwise ignores the value. For example,

1 DLGINCLUDE "MyFile.h"

RT_FONT
MAKEINTRESOURCE(8)

Font resource.

RT_FONTDIR
MAKEINTRESOURCE(7)

Font directory resource.

RT_GROUP_CURSOR
MAKEINTRESOURCE((ULONG_PTR)(RT_CURSOR) + 11)

Hardware-independent cursor resource.

RT_GROUP_ICON
MAKEINTRESOURCE((ULONG_PTR)(RT_ICON) + 11)

Hardware-independent icon resource.

RT_HTML
MAKEINTRESOURCE(23)

HTML resource.

RT_ICON
MAKEINTRESOURCE(3)

Hardware-dependent icon resource.

RT_MANIFEST
MAKEINTRESOURCE(24)

Side-by-Side Assembly Manifest.

RT_MENU
MAKEINTRESOURCE(4)

Menu resource.

RT_MESSAGETABLE
MAKEINTRESOURCE(11)

Message-table entry.

RT_PLUGPLAY
MAKEINTRESOURCE(19)

Plug and Play resource.

RT_RCDATA
MAKEINTRESOURCE(10)

Application-defined resource (raw data).

RT_STRING
MAKEINTRESOURCE(6)

String-table entry.

RT_VERSION
MAKEINTRESOURCE(16)

Version resource.

RT_VXD
MAKEINTRESOURCE(20)

VXD.

Requirements

Header

Winuser.h

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Missing Constants from MFC that RC.EXE recognizes
#define RT_DLGINIT MAKEINTRESOURCE(240);
#define RT_TOOLBAR MAKEINTRESOURCE(241);

// View MFC Tech Note TN0024 and http://support.microsoft.com/kb/231591 for details on the format of RT_DLGINIT
// Search on RT_TOOLBAR for various online examples of its usage
// Look at the code for CDialog and CToolBar in the MFC sources, if you have them, for how they are handled once the resource is locked
Resource Type Constants
From winuser.h:

#define MAKEINTRESOURCEA(i) (LPSTR)((DWORD)((WORD)(i)))
#define MAKEINTRESOURCEW(i) (LPWSTR)((DWORD)((WORD)(i)))
#ifndef XFree86Server
# define RT_CURSOR MAKEINTRESOURCE(1)
# define RT_FONT MAKEINTRESOURCE(8)
#endif /* ndef XFree86Server */
#define RT_BITMAP MAKEINTRESOURCE(2)
#define RT_ICON MAKEINTRESOURCE(3)
#define RT_MENU MAKEINTRESOURCE(4)
#define RT_DIALOG MAKEINTRESOURCE(5)
#define RT_STRING MAKEINTRESOURCE(6)
#define RT_FONTDIR MAKEINTRESOURCE(7)
#define RT_ACCELERATOR MAKEINTRESOURCE(9)
#define RT_RCDATA MAKEINTRESOURCE(10)
#define RT_MESSAGETABLE MAKEINTRESOURCE(11)
#define DIFFERENCE 11
#define RT_GROUP_CURSOR MAKEINTRESOURCE((DWORD)RT_CURSOR+DIFFERENCE)
#define RT_GROUP_ICON MAKEINTRESOURCE((DWORD)RT_ICON+DIFFERENCE)
#define RT_VERSION MAKEINTRESOURCE(16)
#define RT_DLGINCLUDE MAKEINTRESOURCE(17)
#define RT_PLUGPLAY MAKEINTRESOURCE(19)
#define RT_VXD MAKEINTRESOURCE(20)
#define RT_ANICURSOR MAKEINTRESOURCE(21)
#define RT_ANIICON MAKEINTRESOURCE(22)
#define RT_HTML MAKEINTRESOURCE(23)
#ifndef RC_INVOKED
#define RT_MANIFEST MAKEINTRESOURCE(24)
#define CREATEPROCESS_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(1)
#define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2)
#define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
#else
#define RT_MANIFEST 24
#define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
#define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
#define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
#endif