| 1 | /* $Id: Win32kCC.rc,v 1.6 2001-02-17 20:25:44 bird Exp $
|
|---|
| 2 | *
|
|---|
| 3 | * Resource File for Win32k Control Center.
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
|
|---|
| 6 | *
|
|---|
| 7 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 | #define INCL_WINSTDBOOK
|
|---|
| 11 | #include <os2.h>
|
|---|
| 12 | #include "Win32kCC.h"
|
|---|
| 13 |
|
|---|
| 14 | ICON 1 "Win32kCC.ico"
|
|---|
| 15 | ICON DL_WIN32KCC "Win32kCC.ico"
|
|---|
| 16 |
|
|---|
| 17 | STRINGTABLE
|
|---|
| 18 | BEGIN
|
|---|
| 19 | /*
|
|---|
| 20 | * Error strings (input for sprintf!).
|
|---|
| 21 | */
|
|---|
| 22 | IDS_ERR_DIALOGLOAD, "Failed to load dialog.\rdialogid = %d\rlasterr = 0x%x\rmsg = %s"
|
|---|
| 23 | IDS_ERR_MALLOC_FAILED, "Malloc failed. (file %s; line %d; function %s)"
|
|---|
| 24 | IDS_ERR_SET_INSTANCEDATA, "Call to WinSetWindowPtr failed.\rlasterror = %d\rmsg = %s"
|
|---|
| 25 | IDS_ERR_ADD_NTBK_PAGE_LOAD, "Error! Failed to Load page dialog, id = %d.\rlasterror = %d\rmsg = %s"
|
|---|
| 26 | IDS_ERR_ADD_NTBK_PAGE_INSERT,"Error! Failed to insert page notebook page, id = %d.\rlasterror = %d\rmsg = %s"
|
|---|
| 27 | IDS_ERR_ADD_NTBK_PAGE_SET, "Error! Failed to set page hwnd, id = %d.\rlasterror = %d\rmsg = %s"
|
|---|
| 28 | IDS_ERR_WIN32K_NOT_LOADED, "Win32k.sys is not loaded.\rTo fix it you'll have to add it to your config.sys. (see the Odin32 readme.txt for more details.)"
|
|---|
| 29 | IDS_ERR_WIN32K_OPEN_FAILED, "Failed to open Win32k.sys. (rc=0x%x)"
|
|---|
| 30 | IDS_ERR_QUERYOPTIONSTATUS, "Failed to get option and status data from Win32k.sys. (rc=0x%x)"
|
|---|
| 31 | IDS_ERR_NO_COM_RADIOBUTTON, "Internal error. No COM port is selected!"
|
|---|
| 32 | IDS_ERR_NO_PE_RADIOBUTTON, "Internal error. No PE Loader mode is selected!"
|
|---|
| 33 | IDS_ERR_NO_PE_ONEOBJECT, "Internal error. Invalid All-In-One-Object state!"
|
|---|
| 34 | IDS_ERR_INVALID_INFOLEVEL, "Invalid infolevel."
|
|---|
| 35 | IDS_ERR_INVALID_MAXHEAPSIZE,"Invalid heapsize."
|
|---|
| 36 | IDS_ERR_SETPOPTIONS, "Error occured in win32k while changing the options. (rc=0x%x)"
|
|---|
| 37 | IDS_ERR_FOPEN_FAILED, "Failed to open file %s."
|
|---|
| 38 | IDS_FSIZE_FAILED, "Failed to determin size of file %s."
|
|---|
| 39 | IDS_MALLOC_FAILED, "Error! malloc or calloc failed to allocate %d bytes of memory."
|
|---|
| 40 | IDS_FWRITE_FAILED, "Error! failed to write to file %s."
|
|---|
| 41 | IDS_ERR_FAILED_TO_LOAD_DLGT,"Error! Failed to load dialog template id=%d, rc=%d"
|
|---|
| 42 | IDS_ERR_FAILED_NTBK_BUTTONS, "Error! Failed to add notebook buttons.\rlasterr = %d\rmsg = %s"
|
|---|
| 43 | IDS_ERR_ASSERT, "Assertion Failed. %s(%d), %s"
|
|---|
| 44 | IDS_ERR_TIMER_START, "Failed to start mem info refresh timer.\rlasserror =%d\rmsg = %s"
|
|---|
| 45 | END
|
|---|
| 46 |
|
|---|
| 47 | MESSAGETABLE
|
|---|
| 48 | BEGIN
|
|---|
| 49 | /*
|
|---|
| 50 | * Messages.
|
|---|
| 51 | */
|
|---|
| 52 | IDM_INFO_DIRTY, "You have changed the settings but not applied them. Sure you wan't to exit?"
|
|---|
| 53 | IDM_CONFIGSYS_UPDATED, "Config.sys was successfully updated."
|
|---|
| 54 | END
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | /*
|
|---|
| 58 | * Put these here as DlgEdit messes up the flags.
|
|---|
| 59 | */
|
|---|
| 60 | DLGTEMPLATE DL_WIN32KCC
|
|---|
| 61 | BEGIN
|
|---|
| 62 | DIALOG "Win32k Control Center", DL_WIN32KCC, 40, 30, 322, 220, WS_VISIBLE,
|
|---|
| 63 | FCF_SYSMENU | FCF_TITLEBAR | FCF_TASKLIST | FCF_HIDEBUTTON | FCF_CLOSEBUTTON
|
|---|
| 64 | BEGIN
|
|---|
| 65 | NOTEBOOK DL_WIN32KCC_NTBK, 6, 24, 310, 196,
|
|---|
| 66 | BKS_BACKPAGESTR |
|
|---|
| 67 | BKS_TABTEXTCENTER |
|
|---|
| 68 | BKS_TABBEDDIALOG |
|
|---|
| 69 | WS_GROUP
|
|---|
| 70 | DEFPUSHBUTTON "~Refresh", PB_REFRESH, 6, 4, 40, 14
|
|---|
| 71 | PUSHBUTTON "~Apply", PB_APPLY, 49, 4, 40, 14
|
|---|
| 72 | PUSHBUTTON "Update Config.sys", PB_UPD_CONFIGSYS, 92, 4, 100,
|
|---|
| 73 | 14
|
|---|
| 74 | PUSHBUTTON "~Close", DID_OK, 195, 4, 40, 14
|
|---|
| 75 | END
|
|---|
| 76 | END
|
|---|
| 77 |
|
|---|
| 78 | DLGTEMPLATE DL_WIN32KCC_OLD
|
|---|
| 79 | BEGIN
|
|---|
| 80 | DIALOG "Win32k Control Center", DL_WIN32KCC_OLD, 40, 30, 322, 220, WS_VISIBLE,
|
|---|
| 81 | FCF_SYSMENU | FCF_TITLEBAR | FCF_TASKLIST | FCF_HIDEBUTTON | FCF_CLOSEBUTTON
|
|---|
| 82 | BEGIN
|
|---|
| 83 | NOTEBOOK DL_WIN32KCC_NTBK, 6, 24, 310, 196, BKS_BACKPAGESTR |
|
|---|
| 84 | BKS_TABTEXTCENTER | BKS_SOLIDBIND |
|
|---|
| 85 | WS_GROUP
|
|---|
| 86 | DEFPUSHBUTTON "~Refresh", PB_REFRESH, 6, 4, 40, 14
|
|---|
| 87 | PUSHBUTTON "~Apply", PB_APPLY, 49, 4, 40, 14
|
|---|
| 88 | PUSHBUTTON "Update Config.sys", PB_UPD_CONFIGSYS, 92, 4, 100,
|
|---|
| 89 | 14
|
|---|
| 90 | PUSHBUTTON "~Close", DID_OK, 195, 4, 40, 14
|
|---|
| 91 | END
|
|---|
| 92 | END
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 | /*
|
|---|
| 96 | * Accelerator table.
|
|---|
| 97 | */
|
|---|
| 98 | ACCELTABLE DL_WIN32KCC
|
|---|
| 99 | BEGIN
|
|---|
| 100 | "a", PB_APPLY, ALT
|
|---|
| 101 | "A", PB_APPLY, ALT
|
|---|
| 102 | "c", DID_OK, ALT
|
|---|
| 103 | "C", DID_OK, ALT
|
|---|
| 104 | "r", PB_REFRESH, ALT
|
|---|
| 105 | "R", PB_REFRESH, ALT
|
|---|
| 106 | END
|
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 | /*
|
|---|
| 110 | * Redefine ID to prevent duplicate IDs.
|
|---|
| 111 | */
|
|---|
| 112 | #undef DL_WIN32KCC
|
|---|
| 113 | #undef DL_WIN32KCC_OLD
|
|---|
| 114 | #define DL_WIN32KCC 61010
|
|---|
| 115 | #define DL_WIN32KCC_OLD 61011
|
|---|
| 116 |
|
|---|
| 117 | RCINCLUDE "Win32kCC.dlg"
|
|---|
| 118 |
|
|---|