terminal/src/propsheet/dialogs.h

173 lines
5.9 KiB
C
Raw Permalink Normal View History

/*++
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
Module Name:
dialogs.h
Abstract:
This module contains the definitions for the console dialog boxes
Author:
Therese Stowell (thereses) Feb-3-1992 (swiped from Win3.1)
Revision History:
--*/
#pragma once
// clang-format off
#define DID_SETTINGS 100
// unused 101
// unused 102
#define IDD_QUICKEDIT 103
#define IDD_INSERT 104
Give cursor radio buttons their own sequential IDs in propsheet (#6231) For a radio button group to work properly, they need sequential IDs. This moves the cursor radio buttons on the `conhost` property sheet to be sequential. ## References - Introduced with #2663 - Found while investigating #4186 ## PR Checklist * [x] Closes unfiled issue found while investigating #4186 * [x] I work here. * [x] Manual test. * [x] No documentation required. * [x] Am core contributor. ## Detailed Description of the Pull Request / Additional comments - `CheckRadioButton` takes a contiguous group of IDs. It will set one item in the list and then uncheck the rest. When a new one was added to the group, it was added to the end of the segment in the IDs file, but not immediately after the existing radio buttons. This means it accidentally turned off all the other buttons in the middle. - To resolve this, I moved all the cursor buttons into their own sequential group number and I deprecated the old values. ## Validation Steps Performed - [x] Ensured that the "Discard Old Duplicates" value was set in the registry, walked through debugger as `conhost` packed the `TRUE` value into the property sheet blob, walked through the property sheet `console.dll` as it unpacked the `TRUE`, then observed that the checkbox was actually set instead of getting unset by the `CheckRadioButton` call that went from 107 to 119 and accidentally unchecked number 112, `IDD_HISTORY_NODUP` even though I swear it was just set.
2020-05-28 23:16:10 +02:00
// unused 105, moved to 150
// unused 106, moved to 151
// unused 107, moved to 152
#define IDD_HISTORY_SIZE 108
#define IDD_HISTORY_SIZESCROLL 109
#define IDD_HISTORY_NUM 110
#define IDD_HISTORY_NUMSCROLL 111
#define IDD_HISTORY_NODUP 112
#define IDD_LANGUAGELIST 113
// v-HirShi Nov.2.1996
#define DID_SETTINGS2 114
#define IDD_LANGUAGE 115
#define IDD_LANGUAGE_GROUPBOX 116
#define DID_SETTINGS_COMCTL5 117
#define DID_SETTINGS2_COMCTL5 118
Give cursor radio buttons their own sequential IDs in propsheet (#6231) For a radio button group to work properly, they need sequential IDs. This moves the cursor radio buttons on the `conhost` property sheet to be sequential. ## References - Introduced with #2663 - Found while investigating #4186 ## PR Checklist * [x] Closes unfiled issue found while investigating #4186 * [x] I work here. * [x] Manual test. * [x] No documentation required. * [x] Am core contributor. ## Detailed Description of the Pull Request / Additional comments - `CheckRadioButton` takes a contiguous group of IDs. It will set one item in the list and then uncheck the rest. When a new one was added to the group, it was added to the end of the segment in the IDs file, but not immediately after the existing radio buttons. This means it accidentally turned off all the other buttons in the middle. - To resolve this, I moved all the cursor buttons into their own sequential group number and I deprecated the old values. ## Validation Steps Performed - [x] Ensured that the "Discard Old Duplicates" value was set in the registry, walked through debugger as `conhost` packed the `TRUE` value into the property sheet blob, walked through the property sheet `console.dll` as it unpacked the `TRUE`, then observed that the checkbox was actually set instead of getting unset by the `CheckRadioButton` call that went from 107 to 119 and accidentally unchecked number 112, `IDD_HISTORY_NODUP` even though I swear it was just set.
2020-05-28 23:16:10 +02:00
// unused 119, moved to 153
#define IDD_CURSOR_SMALL 150
#define IDD_CURSOR_MEDIUM 151
#define IDD_CURSOR_LARGE 152
#define IDD_CURSOR_ADVANCED 153
#define DID_FONTDLG 200
#define IDD_STATIC 201
#define IDD_FACENAME 202
#define IDD_BOLDFONT 203
#define IDD_STATIC2 204
#define IDD_PREVIEWLABEL 206
#define IDD_GROUP 207
#define IDD_STATIC3 208
#define IDD_STATIC4 209
#define IDD_FONTWIDTH 210
#define IDD_FONTHEIGHT 211
#define IDD_FONTSIZE 212
#define IDD_POINTSLIST 213
#define IDD_PIXELSLIST 214
#define IDD_PREVIEWWINDOW 215
#define IDD_FONTWINDOW 216
#define DID_SCRBUFSIZE 300
#define IDD_SCRBUF_WIDTH 301
#define IDD_SCRBUF_WIDTHSCROLL 302
#define IDD_SCRBUF_HEIGHT 303
#define IDD_SCRBUF_HEIGHTSCROLL 304
#define IDD_WINDOW_WIDTH 305
#define IDD_WINDOW_WIDTHSCROLL 306
#define IDD_WINDOW_HEIGHT 307
#define IDD_WINDOW_HEIGHTSCROLL 308
#define IDD_WINDOW_POSX 309
#define IDD_WINDOW_POSXSCROLL 310
#define IDD_WINDOW_POSY 311
#define IDD_WINDOW_POSYSCROLL 312
#define IDD_AUTO_POSITION 313
#define DID_COLOR 400
#define IDD_COLOR_SCREEN_TEXT 401
#define IDD_COLOR_SCREEN_BKGND 402
#define IDD_COLOR_POPUP_TEXT 403
#define IDD_COLOR_POPUP_BKGND 404
#define IDD_COLOR_1 405
#define IDD_COLOR_2 406
#define IDD_COLOR_3 407
#define IDD_COLOR_4 408
#define IDD_COLOR_5 409
#define IDD_COLOR_6 410
#define IDD_COLOR_7 411
#define IDD_COLOR_8 412
#define IDD_COLOR_9 413
#define IDD_COLOR_10 414
#define IDD_COLOR_11 415
#define IDD_COLOR_12 416
#define IDD_COLOR_13 417
#define IDD_COLOR_14 418
#define IDD_COLOR_15 419
#define IDD_COLOR_16 420
#define IDD_COLOR_SCREEN_COLORS 421
#define IDD_COLOR_POPUP_COLORS 422
#define IDD_COLOR_RED 423
#define IDD_COLOR_REDSCROLL 424
#define IDD_COLOR_GREEN 425
#define IDD_COLOR_GREENSCROLL 426
#define IDD_COLOR_BLUE 427
#define IDD_COLOR_BLUESCROLL 428
// unused 500
#define IDD_FORCEV2 501
#define IDD_LINE_SELECTION 502
#define IDD_FILTER_ON_PASTE 503
#define IDD_LINE_WRAP 504
#define IDD_CTRL_KEYS_ENABLED 505
#define IDD_TRANSPARENCY 506
#define IDD_EDIT_KEYS 507
// unused 508
// unused 509
#define IDD_OPACITY_GROUPBOX 510
#define IDD_OPACITY_LOW_LABEL 511
#define IDD_OPACITY_HIGH_LABEL 512
#define IDD_HELP_SYSLINK 513
#define IDD_OPACITY_VALUE 514
#define IDD_INTERCEPT_COPY_PASTE 515
#define IDD_HELP_LEGACY_LINK 516
#define DID_TERMINAL 600
#define IDD_USE_TERMINAL_FG 601
#define IDD_TERMINAL_FG_REDSCROLL 602
#define IDD_TERMINAL_FG_GREENSCROLL 603
#define IDD_TERMINAL_FG_BLUESCROLL 604
#define IDD_USE_TERMINAL_BG 605
#define IDD_TERMINAL_BG_REDSCROLL 606
#define IDD_TERMINAL_BG_GREENSCROLL 607
#define IDD_TERMINAL_BG_BLUESCROLL 608
#define IDD_TERMINAL_FGCOLOR 609
#define IDD_TERMINAL_BGCOLOR 610
#define IDD_TERMINAL_INVERSE_CURSOR 611
#define IDD_TERMINAL_CURSOR_USECOLOR 612
#define IDD_TERMINAL_CURSOR_COLOR 613
#define IDD_TERMINAL_CURSOR_REDSCROLL 614
#define IDD_TERMINAL_CURSOR_GREENSCROLL 615
#define IDD_TERMINAL_CURSOR_BLUESCROLL 616
#define IDD_TERMINAL_LEGACY_CURSOR 617
#define IDD_TERMINAL_VERTBAR 618
#define IDD_TERMINAL_UNDERSCORE 619
#define IDD_TERMINAL_EMPTYBOX 620
#define IDD_TERMINAL_SOLIDBOX 621
#define IDD_DISABLE_SCROLLFORWARD 622
#define IDD_TERMINAL_FG_RED 623
#define IDD_TERMINAL_FG_GREEN 624
#define IDD_TERMINAL_FG_BLUE 625
#define IDD_TERMINAL_BG_RED 626
#define IDD_TERMINAL_BG_GREEN 627
#define IDD_TERMINAL_BG_BLUE 628
#define IDD_TERMINAL_CURSOR_RED 629
#define IDD_TERMINAL_CURSOR_GREEN 630
#define IDD_TERMINAL_CURSOR_BLUE 631
#define IDD_HELP_TERMINAL 632
#define DID_TERMINAL_WITH_DEFTERM 640
#define IDD_TERMINAL_COMBO_DEFTERM 641
#define BM_TRUETYPE_ICON 1000
// clang-format on