PAINT.RC
资源名称:winpaint.zip [点击查看]
上传用户:cncajx
上传日期:2007-01-03
资源大小:190k
文件大小:16k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- 1 #include "Paint.h"
- 2
- 3 Bold bitmap "Bold.bmp"
- 4 Italic bitmap "Italic.bmp"
- 5 Underline bitmap "Underl.bmp"
- 6 StrikeOut bitmap "Strike.bmp"
- 7
- 8 Paint MENU
- 9 BEGIN
- 10 POPUP "&File"
- 11 BEGIN
- 12 MENUITEM "&New" IDM_NEW
- 13 MENUITEM "&Open" IDM_OPEN
- 14 MENUITEM "&Save" IDM_SAVE
- 15 MENUITEM "Save&As" IDM_SAVEAS
- 16 MENUITEM SEPARATOR
- 17 MENUITEM "&Print" IDM_PRINT
- 18 MENUITEM SEPARATOR
- 19 MENUITEM "&Quit" IDM_QUIT
- 20 END
- 21 POPUP "&Edit"
- 22 BEGIN
- 23 MENUITEM "Undo" IDM_UNDO
- 24 MENUITEM SEPARATOR
- 25 MENUITEM "&Copy" IDM_COPY
- 26 MENUITEM "&Paste" IDM_PASTE
- 27 MENUITEM "Cu&t" IDM_CUT
- 28 END
- 29 POPUP "&Tool"
- 30 BEGIN
- 31 MENUITEM "Pencil" IDM_PENCIL
- 32 MENUITEM "Line" IDM_LINE
- 33 MENUITEM SEPARATOR
- 34 MENUITEM "Select" IDM_BLOCK
- 35 MENUITEM "Text" IDM_TEXT
- 36 MENUITEM "Erase" IDM_ERASE
- 37
- 38 MENUITEM "Rectangle" IDM_RECT,
- 39 MENUBARBREAK
- 40 MENUITEM "Ellipse" IDM_ELLIP
- 41 MENUITEM "Circle" IDM_CIRCLE,
- 42 MENUITEM "RoundRect" IDM_ROUNDRECT
- 43
- 44 MENUITEM "Rectangle-Fill" IDM_RECT_F,
- 45 MENUBARBREAK
- 46 MENUITEM "Ellipse-Fill" IDM_ELLIP_F
- 47 MENUITEM "Circle-Fill" IDM_CIRCLE_F
- 48 MENUITEM "RoundRect-Fill" IDM_ROUNDRECT_F
- 49 END
- 50 POPUP "&Pen-Brush"
- 51 BEGIN
- 52 MENUITEM "Choose &Pen" IDM_CHOOSEPEN
- 53 MENUITEM "Choose &Brush" IDM_CHOOSEBRUSH
- 54 END
- 55 POPUP "F&ont"
- 56 BEGIN
- 57 MENUITEM "Temp", IDM_FONT
- 58 END
- 59 POPUP "Font&Size"
- 60 BEGIN
- 61 MENUITEM "Temp", IDM_SIZE
- 62 END
- 63 POPUP "FontSt&yle"
- 64 BEGIN
- 65 MENUITEM "&Normal", IDM_NORM
- 66 MENUITEM SEPARATOR
- 67 END
- 68 END
- 69
- 70
- 71 BRUSHDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 72 37, 46, 240, 155
- 73 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 74 CAPTION "Choose Brush Pattern"
- 75 BEGIN
- 76 CONTROL "" DI_BC01, "Choose", WS_BORDER | WS_TABSTOP |
- 77 WS_VISIBLE, 26, 47, 27, 11
- 78 CONTROL "" DI_BC02, "Choose", WS_BORDER | WS_TABSTOP |
- 79 WS_VISIBLE, 53, 47, 27, 11
- 80 CONTROL "" DI_BC03, "Choose", WS_BORDER | WS_TABSTOP |
- 81 WS_VISIBLE, 80, 47, 27, 11
- 82 CONTROL "" DI_BC04, "Choose", WS_BORDER | WS_TABSTOP |
- 83 WS_VISIBLE, 107, 47, 27, 11
- 84 CONTROL "" DI_BC05, "Choose", WS_BORDER | WS_TABSTOP |
- 85 WS_VISIBLE, 134, 47, 27, 11
- 86 CONTROL "" DI_BC06, "Choose", WS_BORDER | WS_TABSTOP |
- 87 WS_VISIBLE, 161, 47, 27, 11
- 88 CONTROL "" DI_BC07, "Choose", WS_BORDER | WS_TABSTOP |
- 89 WS_VISIBLE, 188, 47, 27, 11
- 90 CONTROL "" DI_BC08, "Choose", WS_BORDER | WS_TABSTOP |
- 91 WS_VISIBLE, 26, 58, 27, 11
- 92 CONTROL "" DI_BC09, "Choose", WS_BORDER | WS_TABSTOP |
- 93 WS_VISIBLE, 53, 58, 27, 11
- 94 CONTROL "" DI_BC10, "Choose", WS_BORDER | WS_TABSTOP |
- 95 WS_VISIBLE, 80, 58, 27, 11
- 96 CONTROL "" DI_BC11, "Choose", WS_BORDER | WS_TABSTOP |
- 97 WS_VISIBLE, 107, 58, 27, 11
- 98 CONTROL "" DI_BC12, "Choose", WS_BORDER | WS_TABSTOP |
- 99 WS_VISIBLE, 134, 58, 27, 11
- 100 CONTROL "" DI_BC13, "Choose", WS_BORDER | WS_TABSTOP |
- 101 WS_VISIBLE, 161, 58, 27, 11
- 102 CONTROL "" DI_BC14, "Choose", WS_BORDER | WS_TABSTOP |
- 103 WS_VISIBLE, 188, 58, 27, 11
- 104 CONTROL "" DI_BC15, "Choose", WS_BORDER | WS_TABSTOP |
- 105 WS_VISIBLE, 26, 69, 27, 11
- 106 CONTROL "" DI_BC16, "Choose", WS_BORDER | WS_TABSTOP |
- 107 WS_VISIBLE, 53, 69, 27, 11
- 108 CONTROL "" DI_BC17, "Choose", WS_BORDER | WS_TABSTOP |
- 109 WS_VISIBLE, 80, 69, 27, 11
- 110 CONTROL "" DI_BC18, "Choose", WS_BORDER | WS_TABSTOP |
- 111 WS_VISIBLE, 107, 69, 27, 11
- 112 CONTROL "" DI_BC19, "Choose", WS_BORDER | WS_TABSTOP |
- 113 WS_VISIBLE, 134, 69, 27, 11
- 114 CONTROL "" DI_BC20, "Choose", WS_BORDER | WS_TABSTOP |
- 115 WS_VISIBLE, 161, 69, 27, 11
- 116 CONTROL "" DI_BC21, "Choose", WS_BORDER | WS_TABSTOP |
- 117 WS_VISIBLE, 188, 69, 27, 11
- 118 CONTROL "" DI_BC22, "Choose", WS_BORDER | WS_TABSTOP |
- 119 WS_VISIBLE, 26, 80, 27, 11
- 120 CONTROL "" DI_BC23, "Choose", WS_BORDER | WS_TABSTOP |
- 121 WS_VISIBLE, 53, 80, 27, 11
- 122 CONTROL "" DI_BC24, "Choose", WS_BORDER | WS_TABSTOP |
- 123 WS_VISIBLE, 80, 80, 27, 11
- 124 CONTROL "" DI_BC25, "Choose", WS_BORDER | WS_TABSTOP |
- 125 WS_VISIBLE, 107, 80, 27, 11
- 126 CONTROL "" DI_BC26, "Choose", WS_BORDER | WS_TABSTOP |
- 127 WS_VISIBLE, 134, 80, 27, 11
- 128 CONTROL "" DI_BC27, "Choose", WS_BORDER | WS_TABSTOP |
- 129 WS_VISIBLE, 161, 80, 27, 11
- 130 CONTROL "" DI_BC28, "Choose", WS_BORDER | WS_TABSTOP |
- 131 WS_VISIBLE, 188, 80, 27, 11
- 132
- 133 CONTROL "" DI_H01, "Choose", WS_BORDER | WS_TABSTOP |
- 134 WS_VISIBLE, 26, 102, 27, 11
- 135 CONTROL "" DI_H02, "Choose", WS_BORDER | WS_TABSTOP |
- 136 WS_VISIBLE, 53, 102, 27, 11
- 137 CONTROL "" DI_H03, "Choose", WS_BORDER | WS_TABSTOP |
- 138 WS_VISIBLE, 80, 102, 27, 11
- 139 CONTROL "" DI_H04, "Choose", WS_BORDER | WS_TABSTOP |
- 140 WS_VISIBLE, 107, 102, 27, 11
- 141 CONTROL "" DI_H05, "Choose", WS_BORDER | WS_TABSTOP |
- 142 WS_VISIBLE, 134, 102, 27, 11
- 143 CONTROL "" DI_H06, "Choose", WS_BORDER | WS_TABSTOP |
- 144 WS_VISIBLE, 161, 102, 27, 11
- 145 CONTROL "" DI_H07, "Choose", WS_BORDER | WS_TABSTOP |
- 146 WS_VISIBLE, 188, 102, 27, 11
- 147
- 148 CONTROL "OK" DI_OK, "BUTTON", WS_CHILD | WS_VISIBLE
- 149 | WS_TABSTOP | 0x1L, 42, 127, 35, 12
- 150 CONTROL "Cancel" DI_CANCEL, "BUTTON", WS_CHILD | WS_VISIBLE
- 151 | WS_TABSTOP, 164, 127, 40, 12
- 152 CONTROL "Edit Color" DI_ED, "BUTTON", WS_CHILD | WS_VISIBLE
- 153 | WS_TABSTOP, 93, 127, 56, 12
- 154 CONTROL "" DI_BGRAPH, "STATIC", WS_CHILD | WS_VISIBLE | 0xBL,
- 155 99, 6, 42, 34
- 156 END
- 157
- 158
- 159 PENDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 160 37, 46, 244, 163
- 161 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 162 CAPTION "Choose Pen Color"
- 163 BEGIN
- 164 CONTROL "" DI_PC01, "Choose", WS_BORDER | WS_TABSTOP |
- 165 WS_VISIBLE, 26, 47, 27, 11
- 166 CONTROL "" DI_PC02, "Choose", WS_BORDER | WS_TABSTOP |
- 167 WS_VISIBLE, 53, 47, 27, 11
- 168 CONTROL "" DI_PC03, "Choose", WS_BORDER | WS_TABSTOP |
- 169 WS_VISIBLE, 80, 47, 27, 11
- 170 CONTROL "" DI_PC04, "Choose", WS_BORDER | WS_TABSTOP |
- 171 WS_VISIBLE, 107, 47, 27, 11
- 172 CONTROL "" DI_PC05, "Choose", WS_BORDER | WS_TABSTOP |
- 173 WS_VISIBLE, 134, 47, 27, 11
- 174 CONTROL "" DI_PC06, "Choose", WS_BORDER | WS_TABSTOP |
- 175 WS_VISIBLE, 161, 47, 27, 11
- 176 CONTROL "" DI_PC07, "Choose", WS_BORDER | WS_TABSTOP |
- 177 WS_VISIBLE, 188, 47, 27, 11
- 178 CONTROL "" DI_PC08, "Choose", WS_BORDER | WS_TABSTOP |
- 179 WS_VISIBLE, 26, 58, 27, 11
- 180 CONTROL "" DI_PC09, "Choose", WS_BORDER | WS_TABSTOP |
- 181 WS_VISIBLE, 53, 58, 27, 11
- 182 CONTROL "" DI_PC10, "Choose", WS_BORDER | WS_TABSTOP |
- 183 WS_VISIBLE, 80, 58, 27, 11
- 184 CONTROL "" DI_PC11, "Choose", WS_BORDER | WS_TABSTOP |
- 185 WS_VISIBLE, 107, 58, 27, 11
- 186 CONTROL "" DI_PC12, "Choose", WS_BORDER | WS_TABSTOP |
- 187 WS_VISIBLE, 134, 58, 27, 11
- 188 CONTROL "" DI_PC13, "Choose", WS_BORDER | WS_TABSTOP |
- 189 WS_VISIBLE, 161, 58, 27, 11
- 190 CONTROL "" DI_PC14, "Choose", WS_BORDER | WS_TABSTOP |
- 191 WS_VISIBLE, 188, 58, 27, 11
- 192 CONTROL "" DI_PC15, "Choose", WS_BORDER | WS_TABSTOP |
- 193 WS_VISIBLE, 26, 69, 27, 11
- 194 CONTROL "" DI_PC16, "Choose", WS_BORDER | WS_TABSTOP |
- 195 WS_VISIBLE, 53, 69, 27, 11
- 196 CONTROL "" DI_PC17, "Choose", WS_BORDER | WS_TABSTOP |
- 197 WS_VISIBLE, 80, 69, 27, 11
- 198 CONTROL "" DI_PC18, "Choose", WS_BORDER | WS_TABSTOP |
- 199 WS_VISIBLE, 107, 69, 27, 11
- 200 CONTROL "" DI_PC19, "Choose", WS_BORDER | WS_TABSTOP |
- 201 WS_VISIBLE, 134, 69, 27, 11
- 202 CONTROL "" DI_PC20, "Choose", WS_BORDER | WS_TABSTOP |
- 203 WS_VISIBLE, 161, 69, 27, 11
- 204 CONTROL "" DI_PC21, "Choose", WS_BORDER | WS_TABSTOP |
- 205 WS_VISIBLE, 188, 69, 27, 11
- 206 CONTROL "" DI_PC22, "Choose", WS_BORDER | WS_TABSTOP |
- 207 WS_VISIBLE, 26, 80, 27, 11
- 208 CONTROL "" DI_PC23, "Choose", WS_BORDER | WS_TABSTOP |
- 209 WS_VISIBLE, 53, 80, 27, 11
- 210 CONTROL "" DI_PC24, "Choose", WS_BORDER | WS_TABSTOP |
- 211 WS_VISIBLE, 80, 80, 27, 11
- 212 CONTROL "" DI_PC25, "Choose", WS_BORDER | WS_TABSTOP |
- 213 WS_VISIBLE, 107, 80, 27, 11
- 214 CONTROL "" DI_PC26, "Choose", WS_BORDER | WS_TABSTOP |
- 215 WS_VISIBLE, 134, 80, 27, 11
- 216 CONTROL "" DI_PC27, "Choose", WS_BORDER | WS_TABSTOP |
- 217 WS_VISIBLE, 161, 80, 27, 11
- 218 CONTROL "" DI_PC28, "Choose", WS_BORDER | WS_TABSTOP |
- 219 WS_VISIBLE, 188, 80, 27, 11
- 220
- 221 CONTROL "" DI_WIDTH, "LineWS", WS_CHILD | WS_VISIBLE | 0x7L,
- 222 53, 99, 55, 32
- 223 CONTROL "" DI_STYLE, "LineWS", WS_CHILD | WS_VISIBLE | 0x7L,
- 224 133, 99, 55, 32
- 225
- 226 CONTROL "OK" DI_OK, "BUTTON", WS_CHILD | WS_VISIBLE
- 227 | WS_TABSTOP | 0x1L, 42, 140, 35, 12
- 228 CONTROL "Cancel" DI_CANCEL, "BUTTON", WS_CHILD | WS_VISIBLE
- 229 | WS_TABSTOP, 164, 140, 40, 12
- 230 CONTROL "Edit Color" DI_ED, "BUTTON", WS_CHILD | WS_VISIBLE
- 231 | WS_TABSTOP, 93, 140, 56, 12
- 232 CONTROL "" DI_PGRAPH, "STATIC", WS_CHILD | WS_VISIBLE | 0xBL,
- 233 99, 6, 42, 34
- 234 END
- 235
- 236
- 237 COLORDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 238 66, 51, 172, 79
- 239 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 240 CAPTION "Edit Color"
- 241 BEGIN
- 242 CONTROL "" DI_SCR1, "SCROLLBAR", WS_CHILD | WS_VISIBLE |
- 243 WS_TABSTOP | 0x2L, 23, 11, 88, 10
- 244 CONTROL "" DI_SCR2, "SCROLLBAR", WS_CHILD | WS_VISIBLE |
- 245 WS_TABSTOP | 0x2L, 23, 26, 88, 10
- 246 CONTROL "" DI_SCR3, "SCROLLBAR", WS_CHILD | WS_VISIBLE |
- 247 WS_TABSTOP | 0x2L, 23, 41, 88, 10
- 248
- 249 CONTROL "&Red" -1, "STATIC", WS_CHILD | WS_VISIBLE |
- 250 0x1L, 3, 11, 19, 9
- 251 CONTROL "&Green" -1, "STATIC", WS_CHILD | WS_VISIBLE |
- 252 0x1L, 3, 26, 19, 9
- 253 CONTROL "&Blue" -1, "STATIC", WS_CHILD | WS_VISIBLE |
- 254 0x1L, 3, 41, 19, 9
- 255
- 256 CONTROL "&OK" DI_OK, "BUTTON", WS_CHILD | WS_VISIBLE |
- 257 WS_TABSTOP | 0x1L, 18, 59, 33, 12
- 258 CONTROL "&Cancel" DI_CANCEL, "BUTTON", WS_CHILD | WS_VISIBLE
- 259 | WS_TABSTOP, 61, 59, 44, 12
- 260 CONTROL "&Reset" DI_RESET, "BUTTON", WS_CHILD | WS_VISIBLE
- 261 | WS_TABSTOP, 115, 59, 40, 12
- 262
- 263 CONTROL "0" DI_RVALUE, "EDIT", WS_CHILD | WS_VISIBLE |
- 264 WS_BORDER | WS_TABSTOP | 0x2L, 117, 10, 16, 11
- 265 CONTROL "0" DI_GVALUE, "EDIT", WS_CHILD | WS_VISIBLE |
- 266 WS_BORDER | WS_TABSTOP | 0x2L, 117, 25, 16, 11
- 267 CONTROL "0" DI_BVALUE, "EDIT", WS_CHILD | WS_VISIBLE |
- 268 WS_BORDER | WS_TABSTOP | 0x2L, 117, 40, 16, 11
- 269
- 270 CONTROL "" DI_NEWCOLOR, "STATIC", WS_CHILD | WS_VISIBLE |
- 271 0x7L, 138, 18, 26, 25
- 272 END
- 273
- 274
- 275 PRNDLG DIALOG 75, 44, 95, 59
- 276 CAPTION "Print Dialog"
- 277 STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- 278 BEGIN
- 279 LTEXT "Now Printing ...", -1, 21, 6, 56, 11,
- 280 WS_CHILD | WS_VISIBLE | WS_GROUP
- 281 CTEXT "Press [Cancel] to Terminate", -1,
- 282 17, 19, 59, 16,
- 283 WS_CHILD | WS_VISIBLE | WS_GROUP
- 284 PUSHBUTTON "Cancel", DI_CANCEL, 31, 39, 32, 14,
- 285 WS_CHILD | WS_VISIBLE | WS_TABSTOP
- 286 END
- 287
- 288
- 289 OPENDLG DIALOG 37, 38, 173, 127
- 290 STYLE WS_POPUP | WS_CAPTION | DS_MODALFRAME
- 291 CAPTION "Open File"
- 292 BEGIN
- 293 LTEXT "File&name:" -1, 8, 10, 35, 11
- 294 EDITTEXT DI_NAME, 45, 8, 60, 12,
- 295 ES_AUTOHSCROLL
- 296
- 297 LTEXT "Directory:" -1, 8, 25, 35, 11
- 298 LTEXT "c:\windows" DI_PATH, 45, 25, 126, 11
- 299
- 300 LTEXT "&Files:" -1, 6, 38, 35, 8
- 301 LISTBOX DI_FILES, 5, 49, 76, 75,
- 302 WS_TABSTOP | WS_VSCROLL | LBS_SORT
- 303
- 304 LTEXT "&Directories:" -1, 90, 38, 45, 8
- 305 LISTBOX DI_DIRS, 89, 49, 70, 75,
- 306 WS_TABSTOP | WS_VSCROLL | LBS_SORT
- 307
- 308 PUSHBUTTON "Open" DI_OPEN, 110, 8, 28, 12,
- 309 WS_GROUP
- 310 PUSHBUTTON "Cancel" DI_CANCEL, 142, 8, 28, 12,
- 311 WS_GROUP
- 312 END
- 313
- 314
- 315 SAVEASDLG DIALOG 37, 38, 173, 127
- 316 STYLE WS_POPUP | WS_CAPTION | DS_MODALFRAME
- 317 CAPTION "Save File As"
- 318 BEGIN
- 319 LTEXT "File&name:" -1, 8, 10, 35, 11
- 320 EDITTEXT DI_NAME2, 45, 8, 60, 12,
- 321 ES_AUTOHSCROLL
- 322
- 323 LTEXT "Directory:" -1, 8, 25, 35, 11
- 324 LTEXT "c:\windows" DI_PATH2, 45, 25, 126, 11
- 325
- 326 LTEXT "&Files:" -1, 6, 38, 35, 8
- 327 LISTBOX DI_FILES2, 5, 49, 76, 75,
- 328 WS_TABSTOP | WS_VSCROLL | LBS_SORT
- 329
- 330 LTEXT "&Directories:" -1, 90, 38, 45, 8
- 331 LISTBOX DI_DIRS2, 89, 49, 70, 75,
- 332 WS_TABSTOP | WS_VSCROLL | LBS_SORT
- 333
- 334 PUSHBUTTON "Save" DI_SAVE, 110, 8, 28, 12,
- 335 WS_GROUP
- 336 PUSHBUTTON "Cancel" DI_CANCEL, 142, 8, 28, 12,
- 337 WS_GROUP
- 338 END