windows-nt/Source/XPSP1/NT/sdktools/unicows/samples/ctrltest/old/ctrltest.rc
2020-09-26 16:20:57 +08:00

302 lines
9.6 KiB
Plaintext

//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
#include "res\otherids.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_enu)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
AFX_IDI_STD_FRAME ICON DISCARDABLE "RES\\CTRLTEST.ICO"
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
AFX_IDI_STD_FRAME MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", ID_APP_EXIT
END
POPUP "&Simple"
BEGIN
MENUITEM "Test &C++ Derived class...", IDM_TEST_DERIVED_EDIT
MENUITEM "Test &WNDCLASS Registered...", IDM_TEST_WNDCLASS_EDIT
MENUITEM "Test &Dynamic Subclassed...", IDM_TEST_SUB_EDIT
END
POPUP "&Custom"
BEGIN
MENUITEM "&Bitmap Button 1...", IDM_TEST_BITMAP_BUTTON1
MENUITEM "Bitmap Button &2...", IDM_TEST_BITMAP_BUTTON2
MENUITEM "Bitmap Button &3...", IDM_TEST_BITMAP_BUTTON3
MENUITEM SEPARATOR
MENUITEM "Custom &Menu", IDM_TEST_CUSTOM_MENU
MENUITEM "Custom &Listbox...", IDM_TEST_CUSTOM_LIST
MENUITEM SEPARATOR
MENUITEM "&Spin Control...", IDM_TEST_SPIN_EDIT
END
POPUP "&Help"
BEGIN
MENUITEM "&About ...", ID_APP_ABOUT
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
ABOUTBOX DIALOG DISCARDABLE 34, 22, 144, 75
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About CtrlTest"
FONT 8, "MS Sans Serif"
BEGIN
CTEXT "Microsoft Windows",IDC_STATIC,0,5,144,8
CTEXT "Microsoft Foundation Classes",IDC_STATIC,0,14,144,8
CTEXT "Control Test Application",IDC_STATIC,0,23,144,8
CTEXT "Version 1.1 (MFC V4.0)",IDC_STATIC,0,36,144,8
DEFPUSHBUTTON "OK",IDOK,56,53,32,14,WS_GROUP
END
IDD_DERIVED_EDIT DIALOG DISCARDABLE 16, 16, 214, 199
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Using C++ Derived Class"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "Done",IDOK,167,7,37,14
END
IDD_SUB_EDIT DIALOG DISCARDABLE 16, 16, 195, 98
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Using Dynamic Subclassed edit controls"
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "Letters:",IDC_STATIC,8,9,44,8
EDITTEXT IDC_EDIT1,61,7,79,12
LTEXT "Numbers:",IDC_STATIC,8,29,44,8
EDITTEXT IDC_EDIT2,61,28,79,12
LTEXT "Either:",IDC_STATIC,8,49,44,8
EDITTEXT IDC_EDIT3,61,47,79,12
LTEXT "Anything:",IDC_STATIC,8,69,44,8
EDITTEXT IDC_EDIT4,61,68,79,12
DEFPUSHBUTTON "Done",IDOK,151,7,37,14
END
IDD_SUB_PENEDIT DIALOG DISCARDABLE 16, 16, 195, 98
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Using template Pen Edit controls"
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "Letters:",IDC_STATIC,8,9,43,8
CONTROL "ALC<3>",IDC_EDIT1,"hedit",WS_BORDER | WS_TABSTOP,61,7,
79,12
LTEXT "Numbers:",IDC_STATIC,8,29,43,8
CONTROL "ALC<4>",IDC_EDIT2,"hedit",WS_BORDER | WS_TABSTOP,61,27,
79,12
LTEXT "Letters:",IDC_STATIC,10,50,43,8
CONTROL "ALC<3>",IDC_EDIT3,"bedit",WS_BORDER | WS_TABSTOP,57,42,
86,19
LTEXT "Numbers:",IDC_STATIC,10,72,43,8
CONTROL "ALC<4>",IDC_EDIT4,"bedit",WS_BORDER | WS_TABSTOP,57,64,
86,19
DEFPUSHBUTTON "Done",IDOK,151,6,39,14
END
IDM_TEST_BITMAP_BUTTON1 DIALOG DISCARDABLE 55, 38, 142, 74
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "OwnerBtn Test1"
FONT 8, "MS Sans Serif"
BEGIN
CTEXT "Example Dialog with",IDC_STATIC,7,4,135,8
CTEXT "self-drawing bitmap buttons",IDC_STATIC,7,16,135,8
CONTROL "",IDOK,"button",BS_OWNERDRAW | WS_TABSTOP,23,38,40,30
CONTROL "",IDCANCEL,"button",BS_OWNERDRAW | WS_TABSTOP,79,38,40,
30
END
IDM_TEST_BITMAP_BUTTON2 DIALOG DISCARDABLE 55, 38, 217, 74
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "OwnerBtn Test2"
FONT 8, "MS Sans Serif"
BEGIN
CTEXT "Example Dialog with",IDC_STATIC,9,4,200,8
CTEXT "auto-load self-drawing bitmap buttons",IDC_STATIC,9,12,
200,8
CTEXT "(the easy way to do Basic Custom Controls)",IDC_STATIC,
9,20,200,8
CONTROL "OK",IDOK,"button",BS_OWNERDRAW | WS_TABSTOP,54,39,40,30
CONTROL "CANCEL",IDCANCEL,"button",BS_OWNERDRAW | WS_TABSTOP,110,
39,40,30
END
IDM_TEST_BITMAP_BUTTON3 DIALOG DISCARDABLE 55, 38, 150, 57
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "OwnerBtn Test3"
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "prev",ID_PREV,"button",BS_OWNERDRAW | WS_TABSTOP,5,15,
20,20
CTEXT "?",IDC_NUMBEROUT,32,20,10,8
CONTROL "next",ID_NEXT,"button",BS_OWNERDRAW | WS_TABSTOP,49,14,
20,30
CONTROL "OK",IDOK,"button",BS_OWNERDRAW | WS_TABSTOP,93,14,40,30
END
IDD_CUSTOM_LIST DIALOG DISCARDABLE 16, 16, 173, 87
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Sample Dialog with custom listbox"
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "Please Pick a &Color:",IDC_STATIC,8,9,104,8
LISTBOX IDC_LISTBOX1,10,25,103,52,LBS_SORT |
LBS_OWNERDRAWVARIABLE | WS_VSCROLL | WS_TABSTOP
DEFPUSHBUTTON "OK",IDOK,134,6,33,14
PUSHBUTTON "Cancel",IDCANCEL,134,23,33,14
END
IDD_WNDCLASS_EDIT DIALOG DISCARDABLE 0, 0, 202, 93
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Using wndclass registered controls"
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "Letters:",IDC_STATIC,7,14,43,8
LTEXT "Numbers:",IDC_STATIC,8,32,43,8
LTEXT "Either:",IDC_STATIC,8,50,43,8
LTEXT "Anything:",IDC_STATIC,8,68,43,8
DEFPUSHBUTTON "Done",IDOK,151,7,41,14
CONTROL "",IDC_EDIT1,"paredit",WS_BORDER | WS_TABSTOP | 0x2,55,8,
79,14
CONTROL "",IDC_EDIT2,"paredit",WS_BORDER | WS_TABSTOP | 0x1,55,
26,79,14
CONTROL "",IDC_EDIT3,"paredit",WS_BORDER | WS_TABSTOP | 0x3,55,
44,79,14
CONTROL "",IDC_EDIT4,"paredit",WS_BORDER | WS_TABSTOP | 0xffff,
55,62,80,14
END
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IMAGE1UP BITMAP MOVEABLE PURE "RES\\IMAGE1U.BMP"
IMAGE1DOWN BITMAP MOVEABLE PURE "RES\\IMAGE1D.BMP"
IMAGE1FOCUS BITMAP MOVEABLE PURE "RES\\IMAGE1F.BMP"
IMAGE2UP BITMAP MOVEABLE PURE "RES\\IMAGE2U.BMP"
IMAGE2DOWN BITMAP MOVEABLE PURE "RES\\IMAGE2D.BMP"
IMAGE2FOCUS BITMAP MOVEABLE PURE "RES\\IMAGE2F.BMP"
OKU BITMAP MOVEABLE PURE "RES\\OKU.BMP"
OKD BITMAP MOVEABLE PURE "RES\\OKD.BMP"
OKF BITMAP MOVEABLE PURE "RES\\OKF.BMP"
CANCELU BITMAP MOVEABLE PURE "RES\\CANCELU.BMP"
CANCELD BITMAP MOVEABLE PURE "RES\\CANCELD.BMP"
CANCELF BITMAP MOVEABLE PURE "RES\\CANCELF.BMP"
NEXTU BITMAP MOVEABLE PURE "RES\\NEXTU.BMP"
NEXTD BITMAP MOVEABLE PURE "RES\\NEXTD.BMP"
NEXTF BITMAP MOVEABLE PURE "RES\\NEXTF.BMP"
NEXTX BITMAP MOVEABLE PURE "RES\\NEXTX.BMP"
PREVU BITMAP MOVEABLE PURE "RES\\PREVU.BMP"
PREVD BITMAP MOVEABLE PURE "RES\\PREVD.BMP"
PREVF BITMAP MOVEABLE PURE "RES\\PREVF.BMP"
PREVX BITMAP MOVEABLE PURE "RES\\PREVX.BMP"
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"#include ""res\\otherids.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""res\\ctrltest.rc2""\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
IDS_YOU_CHOSE "You chose %d"
IDS_PLEASE_SELECT_COLOR "Please select a color"
END
STRINGTABLE DISCARDABLE
BEGIN
AFX_IDS_DESKACCESSORY "Opens the selected item"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_COLOR_NAME_FIRST "black"
IDS_COLOR_NAME_BLUE "blue"
IDS_COLOR_NAME_GREEN "green"
IDS_COLOR_NAME_CYAN "cyan"
IDS_COLOR_NAME_RED "red"
IDS_COLOR_NAME_MAGENTA "magenta"
IDS_COLOR_NAME_YELLOW "yellow"
IDS_COLOR_NAME_WHITE "white"
IDS_YOU_PICKED_COLOR "You picked %s"
IDS_MENU_TEST "Menu Test"
IDS_ILLEGAL_VALUE "illegal value"
IDS_MUSCRL32_DLL_REQUIRED "MUSCRL32.DLL is required to run this test"
IDS_WNDCLASS_NOT_REGISTERED
"Failed to registered WNDCLASS for parsed control"
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#include "res\ctrltest.rc2"
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED