home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
c
/
coolcolr.zip
/
COOLCOLR.RC
< prev
next >
Wrap
Text File
|
1992-11-17
|
7KB
|
165 lines
//****************************************************************************
// File: COOLCOLR.RC
//
// Purpose: Contains the resources for the Control Panel Extension
//
// Development Team:
//
// Greg Keyser
//
// Written by Microsoft Product Support Services, Windows Developer Support
// Copyright (c) 1992 Microsoft Corporation. All rights reserved.
//****************************************************************************
#include "windows.h"
#include "colordlg.h"
#include "dlgs.h"
#include "global.h"
PaintCan CURSOR paintcan.cur
COOLCOLR_ICON ICON PRELOAD MOVEABLE DISCARDABLE COOLCOLR.ICO
SpecialArea ICON PRELOAD MOVEABLE DISCARDABLE SPECIAL.ICO
// The CPLINFO.idName string can have an accelerator character that will
// appear as an underline character in the control panel. The first character
// will be used by default.
STRINGTABLE PRELOAD MOVEABLE DISCARDABLE
BEGIN
IDS_NAME, "S&ystem Color Dropper"
IDS_INFO, "Set your system colors the cool way!"
IDS_MAINMENUNAME, "MainMenu" // Main menu name (in RC)
IDS_MAINCLASSNAME, "CommonWClass" // Main wnd class name
IDS_DIALOGFAILURE, "Creation of CD failed on call to DialogBox()"
IDS_STRUCTSIZE, "Invalid structure size passed to CD"
IDS_INITIALIZATION, "Failure initializing CD. Possibly\n\r do to insufficient memory."
IDS_NOTEMPLATE, "Failure finding custom template for CD"
IDS_NOHINSTANCE, "Instance handle not passed to CD"
IDS_LOADSTRFAILURE, "Failure loading specified string"
IDS_FINDRESFAILURE, "Failure finding specified resource"
IDS_LOADRESFAILURE, "Failure loading specified resource"
IDS_LOCKRESFAILURE, "Failure locking specified resource"
IDS_MEMALLOCFAILURE, "Failure allocating memory for internal CD structure"
IDS_MEMLOCKFAILURE, "Failure locking memory for internal CD structure"
IDS_NOHOOK, "No hook function passed to CD but ENABLEHOOK\n\r was passed as a flag"
IDS_SETUPFAILURE, "Failure setting up resources for CD"
IDS_SUBCLASSFAILURE, "Failure subclassing during initialization of CD"
IDS_BUFFERTOOSMALL, "Buffer passed to CD too small to accomodate string"
IDS_COLOR_MENUTEXT, "Menu Text"
IDS_COLOR_MENU, "Menu"
IDS_COLOR_CAPTIONTEXT, "Active Caption Text"
IDS_COLOR_ACTIVECAPTION, "Active Caption"
IDS_COLOR_INACTIVECAPTIONTEXT, "Inactive Caption Text"
IDS_COLOR_INACTIVECAPTION, "Inactive Caption"
IDS_COLOR_WINDOWFRAME, "Window Frame"
IDS_COLOR_INACTIVEBORDER, "Sizable Inactive Border"
IDS_COLOR_SCROLLBAR, "Scrollbar"
IDS_COLOR_WINDOWTEXT, "Window Text"
IDS_COLOR_WINDOW, "Window Background"
IDS_COLOR_BACKGROUND, "DeskTop"
IDS_COLOR_APPWORKSPACE, "Application Workspace"
IDS_COLOR_ACTIVEBORDER, "Sizable Active Border"
IDS_COLOR_GRAYTEXT, "Disabled Text"
IDS_COLOR_HIGHLIGHT, "Highlight"
IDS_COLOR_HIGHLIGHTTEXT, "Highlight Text"
IDS_COLOR_BTNHIGHLIGHT, "Button Highlight"
IDS_COLOR_BTNSHADOW, "Button Shadow"
IDS_COLOR_BTNTEXT, "Button Text"
IDS_COLOR_BTNFACE, "Button Face"
IDS_NOTHING, "Nothing"
IDS_SYSTEMCOLORDROPPER, "System Color Dropper"
END
// A generic dialog box.
ABOUT DIALOG 132, 70, 175, 122
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "System Color Dropper"
BEGIN
ICON COOLCOLR_ICON, 101, 9, 9, 16, 16
LTEXT "This sample demonstrates how to add an applet to the control panel.",
-1, 38, 9, 126, 18, NOT WS_GROUP
LTEXT "To set your system colors, click with the left mouse button on a Basic Color. Drag the selected color to",
-1, 3, 38, 169, 18, NOT WS_GROUP
LTEXT "a system area (Menu, for example) and drop it. The system color will update immediately. Use Cancel",
-1, 3, 55, 169, 18, NOT WS_GROUP
LTEXT "to restore your original color settings. Select OK to save changes to WIN.INI.",
-1, 3, 72, 169, 18, NOT WS_GROUP
PUSHBUTTON "OK", IDOK, 63, 102, 48, 14
END
//****************************************************************************
// ChooseColor Template
//****************************************************************************
ChooseColor DIALOG LOADONCALL MOVEABLE DISCARDABLE 2, 0, 298, 184
CAPTION "Color"
STYLE WS_BORDER | DS_MODALFRAME | WS_CAPTION | WS_POPUP | WS_SYSMENU
FONT 8 "Helv"
BEGIN
LTEXT "&Basic Colors:", -1, 4, 20, 110, 9
CONTROL "", COLOR_BOX1, "static", SS_SIMPLE | WS_CHILD | WS_TABSTOP | WS_GROUP, 4, 30, 140, 86
LTEXT "&Custom Colors:", -1, 4, 122, 110, 9
CONTROL "", COLOR_CUSTOM1, "static", SS_SIMPLE | WS_CHILD | WS_TABSTOP | WS_GROUP, 4, 132, 140, 28
PUSHBUTTON "&Define Custom Colors..." COLOR_MIX, 1000, 1000, 140, 14, WS_TABSTOP | WS_GROUP
DEFPUSHBUTTON "OK", IDOK, 4, 166, 44, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON "Cancel", IDCANCEL, 52, 166, 44, 14, WS_GROUP | WS_TABSTOP
PUSHBUTTON "&Help", pshHelp, 100, 166, 44, 14, WS_GROUP | WS_TABSTOP
CONTROL "", COLOR_RAINBOW, "static", SS_BLACKFRAME | WS_CHILD, 152, 4, 118, 116
CONTROL "", COLOR_LUMSCROLL, "static", SS_SIMPLE | WS_CHILD, 280, 4, 8, 116
CONTROL "", COLOR_CURRENT, "static", SS_BLACKFRAME | WS_CHILD, 152, 124, 40, 26
RTEXT "Color|", -1, 152, 151, 20, 9
LTEXT "S&olid", -1, 172, 151, 20, 9
PUSHBUTTON "&o", COLOR_SOLID, 300, 200, 4, 14, WS_GROUP
RTEXT "&Hue:", COLOR_HUEACCEL, 194, 126, 20, 9
EDITTEXT, COLOR_HUE, 216, 124, 18, 12, WS_GROUP | WS_TABSTOP
RTEXT "&Sat:", COLOR_SATACCEL, 194, 140, 20, 9
EDITTEXT, COLOR_SAT, 216, 138, 18, 12, WS_GROUP | WS_TABSTOP
RTEXT "&Lum:", COLOR_LUMACCEL, 194, 154, 20, 9
EDITTEXT, COLOR_LUM, 216, 152, 18, 12, WS_GROUP | WS_TABSTOP
RTEXT "&Red:", COLOR_REDACCEL, 243, 126, 24, 9
EDITTEXT, COLOR_RED, 269, 124, 18, 12, WS_GROUP | WS_TABSTOP
RTEXT "&Green:", COLOR_GREENACCEL, 243, 140, 24, 9
EDITTEXT, COLOR_GREEN, 269, 138, 18, 12, WS_GROUP | WS_TABSTOP
RTEXT "Bl&ue:", COLOR_BLUEACCEL, 243, 154, 24, 9
EDITTEXT, COLOR_BLUE, 269, 152, 18, 12, WS_GROUP | WS_TABSTOP
PUSHBUTTON "&Add to Custom Colors", COLOR_ADD, 152, 166, 142, 14, WS_GROUP | WS_TABSTOP
LTEXT "Set:", stc1, 4, 4, 13, 9
LTEXT "", stc2, 18, 4, 85, 9
ICON "SpecialArea", stc10, 117, 4, 16, 16
END