Click here to Skip to main content
15,881,882 members
Articles / Desktop Programming / MFC

XTrueColorToolBar - True-color toolbar with support for Office-style color button

Rate me:
Please Sign up or sign in to vote.
4.69/5 (20 votes)
10 Jan 2008CPOL5 min read 72.7K   4.2K   63  
XTrueColorToolBar is an MFC class based on CToolBar that provides support for true-color bitmaps, with optional support for an Office-style color picker button.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by WordPad.rc
//
#define IDR_SRVR_INPLACE                4
#define IDR_SRVR_EMBEDDED               5
#define IDR_CNTR_INPLACE                6
#define IDP_OLE_INIT_FAILED             100
#define IDP_FAILED_TO_CREATE            102
#define IDS_INVALID_MEASUREMENT         103
#define IDS_PLEASE_WAIT                 104
#define IDS_COMPLETE                    105
#define IDS_SAVE_UNSUPPORTED            106
#define IDS_CLOSE_TEXT                  107
#define IDS_RICHED_LOAD_FAIL            108
#define IDS_DEFAULTFONT                 109
#define IDS_TF_BUTTONS                  110
#define IDC_COMBO_ALIGNMENT             111
#define IDS_DEFAULTTEXTFONT             111
#define IDS_SAVE_FORMAT_TEXT            112
#define IDS_SAVE_FORMAT                 113
#define IDS_SAVING                      113
#define IDS_CLIP_RTF                    114
#define IDS_FORMATTING                  115
#define IDS_LEFT                        116
#define IDS_CENTER                      117
#define IDS_RIGHT                       118
#define IDS_NOWRAP                      119
#define IDS_MEASUREMENT_RANGE           119
#define IDS_WRAPTOWINDOW                120
#define IDS_INVALID_NUMBER              120
#define IDS_WRAPTORULER                 121
#define IDS_INVALID_FONTSIZE            121
#define IDS_INCHES                      122
#define IDS_CENTIMETERS                 123
#define IDS_POINTS                      124
#define IDS_PICAS                       125
#define IDS_WORD6_WARNING               126
#define IDS_WORD6_WARNING_BUTTONS       127
#define IDR_MAINFRAME                   128
#define IDS_TEXT_DOC                    129
#define IDS_RICHTEXT_DOC                130
#define IDB_BITMAP_TT                   130
#define IDS_WRITE_DOC                   131
#define IDB_RULER_BLOCK                 131
#define IDS_ALL_DOC                     132
#define IDB_RULER_BLOCKM                132
#define IDS_WINWORD6_DOC                133
#define IDB_RULER_DOWN                  133
#define IDS_WINWORD2_DOC                134
#define IDB_RULER_DOWNM                 134
#define IDB_RULER_TAB                   135
#define IDS_EXE_DOC                     135
#define IDB_RULER_TABM                  136
#define IDS_FILE_EXISTS                 136
#define IDB_RULER_UP                    137
#define IDS_MAPILOAD_FAILED             137
#define IDS_OEMTEXT_DOC                 137
#define IDB_RULER_UPM                   138
#define IDS_CLIP_TEXT                   138
#define IDB_FORMATBAR                   139
#define IDS_CLIP_FILENAME               139
#define IDR_MAINFRAME1                  140
#define IDB_FORMATBAR_BIG               141
#define IDR_COLOR_MENU                  142
#define IDR_MAINFRAME_BIG               142
#define IDD_FORMAT_PARA                 143
#define IDR_MAINFRAME1_BIG              143
#define IDR_SRVR_INPLACE_BIG            144
#define IDD_FORMAT_TAB                  145
#define IDD_LISTDIALOG                  147
#define IDD_OPTIONS                     148
#define IDS_DT1                         149
#define IDD_PAGE_SETUP_DIALOG           150
#define IDS_DT2                         150
#define IDR_MENU1                       151
#define IDS_DT3                         151
#define IDD_DATEDIALOG                  151
#define IDS_DT4                         152
#define IDR_TEXT_POPUP                  152
#define IDS_DT5                         153
#define IDS_DT6                         154
#define IDI_ICON_DOC                    154
#define IDS_DT7                         155
#define IDI_ICON_WRITE                  155
#define IDS_DT8                         156
#define IDS_DT9                         157
#define IDS_DT10                        158
#define IDD_OPTIONS_UNITS               158
#define IDS_DT11                        159
#define IDD_OPTIONS_WRAP                159
#define IDS_DT12                        160
#define IDD_OPTIONS_MARGINS             160
#define IDD_FILENEWDIALOG               160
#define IDS_DT13                        161
#define IDB_BITMAP48                    162
#define IDB_BITMAP_PRINTER              163
#define IDS_FINISHED_SEARCH             164
#define IDC_FONTNAME                    165
#define IDI_ICON_TEXT                   165
#define IDC_FONTSIZE                    166
#define IDS_TITLE_FORMATBAR             167
#define IDB_PRINTER                     167
#define IDB_FONTTYPE                    167
#define IDS_TITLE_TOOLBAR               168
#define IDS_INCH1_ABBREV                169
#define IDS_INCH2_ABBREV                170
#define IDS_INCH3_ABBREV                171
#define IDS_INCH4_ABBREV                172
#define IDS_CM_ABBREV                   173
#define IDS_POINT_ABBREV                174
#define IDS_PICA_ABBREV                 175
#define IDS_NOMORETABS                  176
#define IDS_MAPI_FAIL                   177
#define IDS_ERRSPACE                    178
#define IDS_CANT_LOAD                   179
#define IDS_TOOMANYFILES                180
#define IDS_DIRFULL                     181
#define IDS_SHAREVIOLATION              182
#define IDS_TEXT_OPTIONS                183
#define IDS_RTF_OPTIONS                 184
#define IDS_WORD6_OPTIONS               185
#define IDS_OPTIONS                     186
#define IDS_WRITE_OPTIONS               187
#define IDS_EMBEDDED_OPTIONS            188
#define IDS_TEXT_DOCUMENT               189
#define IDS_RTF_DOCUMENT                190
#define IDS_WORD6_DOCUMENT              191
#define IDS_WRITEPROTECT                192
#define IDS_MAILTO                      193
#define IDC_EDIT_LEFT                   1000
#define IDC_EDIT_RIGHT                  1001
#define IDC_EDIT_FIRST_LINE             1002
#define IDC_BUTTON_SET                  1005
#define IDC_EDIT_BM                     1005
#define IDC_BUTTON_CLEAR                1006
#define IDC_EDIT_LM                     1006
#define IDC_BUTTON_CLEARALL             1007
#define IDC_EDIT_RM                     1007
#define IDC_STATIC_HEADING              1009
#define IDC_COMBO_WRAP                  1011
#define IDC_COMBO_UNITS                 1012
#define IDC_EDIT_TM                     1016
#define IDC_TEXT_ALIGNMENT              1017
#define IDC_LISTDIALOG_LIST             1018
#define IDC_DATEDIALOG_LIST             1018
#define IDC_COMBO1                      1019
#define IDC_TEXT_WRAP                   1020
#define IDC_TEXT_UNITS                  1021
#define IDC_BOX                         1022
#define IDC_BIGICON                     1023
#define IDC_UNITS_IN                    1024
#define IDC_UNITS_CM                    1025
#define IDC_WRAP_RULER                  1025
#define IDC_UNITS_PT                    1026
#define IDC_WRAP_WINDOW                 1026
#define IDC_UNITS_PI                    1027
#define IDC_WRAP_NONE                   1027
#define IDC_CHECK_TOOLBAR               1028
#define IDC_CHECK_FORMATBAR             1029
#define IDC_WORDSEL                     1029
#define IDC_CHECK_RULERBAR              1030
#define IDC_CHECK_STATUSBAR             1031
#define IDC_BOXT                        1032
#define ID_CANCEL_EDIT_CNTR             32768
#define ID_CANCEL_EDIT_SRVR             32769
#define ID_PAGE_SETUP                   32771
#define ID_VIEW_OPTIONS                 32776
#define ID_INSERT_BULLET                32777
#define ID_INSERT_DATE_TIME             32778
#define ID_FORMAT_PARAGRAPH             32780
#define ID_FORMAT_TABS                  32781
#define ID_COLOR0                       32782
#define ID_COLOR1                       32783
#define ID_COLOR2                       32784
#define ID_COLOR3                       32785
#define ID_COLOR4                       32786
#define ID_COLOR5                       32787
#define ID_COLOR6                       32788
#define ID_COLOR7                       32789
#define ID_COLOR8                       32790
#define ID_COLOR9                       32791
#define ID_COLOR10                      32792
#define ID_COLOR11                      32793
#define ID_COLOR12                      32794
#define ID_COLOR13                      32795
#define ID_COLOR14                      32796
#define ID_COLOR15                      32797
#define ID_COLOR16                      32798
#define ID_CHAR_BOLD                    32799
#define ID_CHAR_ITALIC                  32800
#define ID_CHAR_COLOR                   32801
#define ID_CHAR_UNDERLINE               32802
#define ID_PARA_LEFT                    32803
#define ID_PARA_CENTER                  32804
#define ID_PARA_RIGHT                   32805
#define ID_PEN_PERIOD                   32807
#define ID_PEN_SPACE                    32808
#define ID_PEN_BACKSPACE                32809
#define ID_PEN_NEWLINE                  32810
#define ID_OLE_VERB_POPUP               32811
#define ID_PEN_TOGGLE                   32812
#define ID_PEN_LENS                     32813
#define ID_PEN_TAB                      32814
#define ID_VIEW_FORMATBAR               59396
#define ID_VIEW_RULER                   59397
#define ID_SET_TEXT_COLOR               59398

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS                     1
#define _APS_NEXT_RESOURCE_VALUE        173
#define _APS_NEXT_COMMAND_VALUE         32816
#define _APS_NEXT_CONTROL_VALUE         1033
#define _APS_NEXT_SYMED_VALUE           103
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Hans Dietrich Software
United States United States
I attended St. Michael's College of the University of Toronto, with the intention of becoming a priest. A friend in the University's Computer Science Department got me interested in programming, and I have been hooked ever since.

Recently, I have moved to Los Angeles where I am doing consulting and development work.

For consulting and custom software development, please see www.hdsoft.org.






Comments and Discussions