DEMO5_5.RC
资源名称:winpaint.zip [点击查看]
上传用户:cncajx
上传日期:2007-01-03
资源大小:190k
文件大小:12k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- 1 #include "demo5_5.h"
- 2
- 3 Demo5_5 MENU
- 4 BEGIN
- 5 POPUP "&Command"
- 6 BEGIN
- 7 MENUITEM "&Clear" IDM_CLEAR
- 8 MENUITEM "&Undo" IDM_UNDO
- 9 MENUITEM "&Quit" IDM_QUIT
- 10 END
- 11 POPUP "&Tool"
- 12 BEGIN
- 13 MENUITEM "Pencil" IDM_PENCIL
- 14 MENUITEM "Line" IDM_LINE
- 15 MENUITEM "Rectangle-Fill" IDM_RECT_F
- 16 MENUITEM "Rectangle" IDM_RECT
- 17 MENUITEM "Ellipse-Fill" IDM_ELLIP_F
- 18 MENUITEM "Ellipse" IDM_ELLIP
- 19 MENUITEM "Circle-Fill" IDM_CIRCLE_F
- 20 MENUITEM "Circle" IDM_CIRCLE
- 21 MENUITEM "RoundRect-Fill" IDM_ROUNDRECT_F
- 22 MENUITEM "RoundRect" IDM_ROUNDRECT
- 23 END
- 24 POPUP "&Pen-Brush"
- 25 BEGIN
- 26 MENUITEM "Choose &Pen" IDM_CHOOSEPEN
- 27 MENUITEM "Choose &Brush" IDM_CHOOSEBRUSH
- 28 END
- 29 END
- 30
- 31
- 32 BRUSHDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 33 37, 46, 240, 155
- 34 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 35 CAPTION "Choose Brush Pattern"
- 36 BEGIN
- 37 CONTROL "" DI_BC01, "Choose", WS_BORDER | WS_TABSTOP |
- 38 WS_VISIBLE, 26, 47, 27, 11
- 39 CONTROL "" DI_BC02, "Choose", WS_BORDER | WS_TABSTOP |
- 40 WS_VISIBLE, 53, 47, 27, 11
- 41 CONTROL "" DI_BC03, "Choose", WS_BORDER | WS_TABSTOP |
- 42 WS_VISIBLE, 80, 47, 27, 11
- 43 CONTROL "" DI_BC04, "Choose", WS_BORDER | WS_TABSTOP |
- 44 WS_VISIBLE, 107, 47, 27, 11
- 45 CONTROL "" DI_BC05, "Choose", WS_BORDER | WS_TABSTOP |
- 46 WS_VISIBLE, 134, 47, 27, 11
- 47 CONTROL "" DI_BC06, "Choose", WS_BORDER | WS_TABSTOP |
- 48 WS_VISIBLE, 161, 47, 27, 11
- 49 CONTROL "" DI_BC07, "Choose", WS_BORDER | WS_TABSTOP |
- 50 WS_VISIBLE, 188, 47, 27, 11
- 51 CONTROL "" DI_BC08, "Choose", WS_BORDER | WS_TABSTOP |
- 52 WS_VISIBLE, 26, 58, 27, 11
- 53 CONTROL "" DI_BC09, "Choose", WS_BORDER | WS_TABSTOP |
- 54 WS_VISIBLE, 53, 58, 27, 11
- 55 CONTROL "" DI_BC10, "Choose", WS_BORDER | WS_TABSTOP |
- 56 WS_VISIBLE, 80, 58, 27, 11
- 57 CONTROL "" DI_BC11, "Choose", WS_BORDER | WS_TABSTOP |
- 58 WS_VISIBLE, 107, 58, 27, 11
- 59 CONTROL "" DI_BC12, "Choose", WS_BORDER | WS_TABSTOP |
- 60 WS_VISIBLE, 134, 58, 27, 11
- 61 CONTROL "" DI_BC13, "Choose", WS_BORDER | WS_TABSTOP |
- 62 WS_VISIBLE, 161, 58, 27, 11
- 63 CONTROL "" DI_BC14, "Choose", WS_BORDER | WS_TABSTOP |
- 64 WS_VISIBLE, 188, 58, 27, 11
- 65 CONTROL "" DI_BC15, "Choose", WS_BORDER | WS_TABSTOP |
- 66 WS_VISIBLE, 26, 69, 27, 11
- 67 CONTROL "" DI_BC16, "Choose", WS_BORDER | WS_TABSTOP |
- 68 WS_VISIBLE, 53, 69, 27, 11
- 69 CONTROL "" DI_BC17, "Choose", WS_BORDER | WS_TABSTOP |
- 70 WS_VISIBLE, 80, 69, 27, 11
- 71 CONTROL "" DI_BC18, "Choose", WS_BORDER | WS_TABSTOP |
- 72 WS_VISIBLE, 107, 69, 27, 11
- 73 CONTROL "" DI_BC19, "Choose", WS_BORDER | WS_TABSTOP |
- 74 WS_VISIBLE, 134, 69, 27, 11
- 75 CONTROL "" DI_BC20, "Choose", WS_BORDER | WS_TABSTOP |
- 76 WS_VISIBLE, 161, 69, 27, 11
- 77 CONTROL "" DI_BC21, "Choose", WS_BORDER | WS_TABSTOP |
- 78 WS_VISIBLE, 188, 69, 27, 11
- 79 CONTROL "" DI_BC22, "Choose", WS_BORDER | WS_TABSTOP |
- 80 WS_VISIBLE, 26, 80, 27, 11
- 81 CONTROL "" DI_BC23, "Choose", WS_BORDER | WS_TABSTOP |
- 82 WS_VISIBLE, 53, 80, 27, 11
- 83 CONTROL "" DI_BC24, "Choose", WS_BORDER | WS_TABSTOP |
- 84 WS_VISIBLE, 80, 80, 27, 11
- 85 CONTROL "" DI_BC25, "Choose", WS_BORDER | WS_TABSTOP |
- 86 WS_VISIBLE, 107, 80, 27, 11
- 87 CONTROL "" DI_BC26, "Choose", WS_BORDER | WS_TABSTOP |
- 88 WS_VISIBLE, 134, 80, 27, 11
- 89 CONTROL "" DI_BC27, "Choose", WS_BORDER | WS_TABSTOP |
- 90 WS_VISIBLE, 161, 80, 27, 11
- 91 CONTROL "" DI_BC28, "Choose", WS_BORDER | WS_TABSTOP |
- 92 WS_VISIBLE, 188, 80, 27, 11
- 93
- 94 CONTROL "" DI_H01, "Choose", WS_BORDER | WS_TABSTOP |
- 95 WS_VISIBLE, 26, 102, 27, 11
- 96 CONTROL "" DI_H02, "Choose", WS_BORDER | WS_TABSTOP |
- 97 WS_VISIBLE, 53, 102, 27, 11
- 98 CONTROL "" DI_H03, "Choose", WS_BORDER | WS_TABSTOP |
- 99 WS_VISIBLE, 80, 102, 27, 11
- 100 CONTROL "" DI_H04, "Choose", WS_BORDER | WS_TABSTOP |
- 101 WS_VISIBLE, 107, 102, 27, 11
- 102 CONTROL "" DI_H05, "Choose", WS_BORDER | WS_TABSTOP |
- 103 WS_VISIBLE, 134, 102, 27, 11
- 104 CONTROL "" DI_H06, "Choose", WS_BORDER | WS_TABSTOP |
- 105 WS_VISIBLE, 161, 102, 27, 11
- 106 CONTROL "" DI_H07, "Choose", WS_BORDER | WS_TABSTOP |
- 107 WS_VISIBLE, 188, 102, 27, 11
- 108
- 109 CONTROL "OK" DI_OK, "BUTTON", WS_CHILD | WS_VISIBLE
- 110 | WS_TABSTOP | 0x1L, 42, 127, 35, 12
- 111 CONTROL "Cancel" DI_CANCEL, "BUTTON", WS_CHILD | WS_VISIBLE
- 112 | WS_TABSTOP, 164, 127, 40, 12
- 113 CONTROL "Edit Color" DI_ED, "BUTTON", WS_CHILD | WS_VISIBLE
- 114 | WS_TABSTOP, 93, 127, 56, 12
- 115 CONTROL "" DI_BGRAPH, "STATIC", WS_CHILD | WS_VISIBLE | 0xBL,
- 116 99, 6, 42, 34
- 117 END
- 118
- 119
- 120 PENDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 121 37, 46, 244, 163
- 122 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 123 CAPTION "Choose Pen Color"
- 124 BEGIN
- 125 CONTROL "" DI_PC01, "Choose", WS_BORDER | WS_TABSTOP |
- 126 WS_VISIBLE, 26, 47, 27, 11
- 127 CONTROL "" DI_PC02, "Choose", WS_BORDER | WS_TABSTOP |
- 128 WS_VISIBLE, 53, 47, 27, 11
- 129 CONTROL "" DI_PC03, "Choose", WS_BORDER | WS_TABSTOP |
- 130 WS_VISIBLE, 80, 47, 27, 11
- 131 CONTROL "" DI_PC04, "Choose", WS_BORDER | WS_TABSTOP |
- 132 WS_VISIBLE, 107, 47, 27, 11
- 133 CONTROL "" DI_PC05, "Choose", WS_BORDER | WS_TABSTOP |
- 134 WS_VISIBLE, 134, 47, 27, 11
- 135 CONTROL "" DI_PC06, "Choose", WS_BORDER | WS_TABSTOP |
- 136 WS_VISIBLE, 161, 47, 27, 11
- 137 CONTROL "" DI_PC07, "Choose", WS_BORDER | WS_TABSTOP |
- 138 WS_VISIBLE, 188, 47, 27, 11
- 139 CONTROL "" DI_PC08, "Choose", WS_BORDER | WS_TABSTOP |
- 140 WS_VISIBLE, 26, 58, 27, 11
- 141 CONTROL "" DI_PC09, "Choose", WS_BORDER | WS_TABSTOP |
- 142 WS_VISIBLE, 53, 58, 27, 11
- 143 CONTROL "" DI_PC10, "Choose", WS_BORDER | WS_TABSTOP |
- 144 WS_VISIBLE, 80, 58, 27, 11
- 145 CONTROL "" DI_PC11, "Choose", WS_BORDER | WS_TABSTOP |
- 146 WS_VISIBLE, 107, 58, 27, 11
- 147 CONTROL "" DI_PC12, "Choose", WS_BORDER | WS_TABSTOP |
- 148 WS_VISIBLE, 134, 58, 27, 11
- 149 CONTROL "" DI_PC13, "Choose", WS_BORDER | WS_TABSTOP |
- 150 WS_VISIBLE, 161, 58, 27, 11
- 151 CONTROL "" DI_PC14, "Choose", WS_BORDER | WS_TABSTOP |
- 152 WS_VISIBLE, 188, 58, 27, 11
- 153 CONTROL "" DI_PC15, "Choose", WS_BORDER | WS_TABSTOP |
- 154 WS_VISIBLE, 26, 69, 27, 11
- 155 CONTROL "" DI_PC16, "Choose", WS_BORDER | WS_TABSTOP |
- 156 WS_VISIBLE, 53, 69, 27, 11
- 157 CONTROL "" DI_PC17, "Choose", WS_BORDER | WS_TABSTOP |
- 158 WS_VISIBLE, 80, 69, 27, 11
- 159 CONTROL "" DI_PC18, "Choose", WS_BORDER | WS_TABSTOP |
- 160 WS_VISIBLE, 107, 69, 27, 11
- 161 CONTROL "" DI_PC19, "Choose", WS_BORDER | WS_TABSTOP |
- 162 WS_VISIBLE, 134, 69, 27, 11
- 163 CONTROL "" DI_PC20, "Choose", WS_BORDER | WS_TABSTOP |
- 164 WS_VISIBLE, 161, 69, 27, 11
- 165 CONTROL "" DI_PC21, "Choose", WS_BORDER | WS_TABSTOP |
- 166 WS_VISIBLE, 188, 69, 27, 11
- 167 CONTROL "" DI_PC22, "Choose", WS_BORDER | WS_TABSTOP |
- 168 WS_VISIBLE, 26, 80, 27, 11
- 169 CONTROL "" DI_PC23, "Choose", WS_BORDER | WS_TABSTOP |
- 170 WS_VISIBLE, 53, 80, 27, 11
- 171 CONTROL "" DI_PC24, "Choose", WS_BORDER | WS_TABSTOP |
- 172 WS_VISIBLE, 80, 80, 27, 11
- 173 CONTROL "" DI_PC25, "Choose", WS_BORDER | WS_TABSTOP |
- 174 WS_VISIBLE, 107, 80, 27, 11
- 175 CONTROL "" DI_PC26, "Choose", WS_BORDER | WS_TABSTOP |
- 176 WS_VISIBLE, 134, 80, 27, 11
- 177 CONTROL "" DI_PC27, "Choose", WS_BORDER | WS_TABSTOP |
- 178 WS_VISIBLE, 161, 80, 27, 11
- 179 CONTROL "" DI_PC28, "Choose", WS_BORDER | WS_TABSTOP |
- 180 WS_VISIBLE, 188, 80, 27, 11
- 181
- 182 CONTROL "" DI_WIDTH, "LineWS", WS_CHILD | WS_VISIBLE | 0x7L,
- 183 53, 99, 55, 32
- 184 CONTROL "" DI_STYLE, "LineWS", WS_CHILD | WS_VISIBLE | 0x7L,
- 185 133, 99, 55, 32
- 186
- 187 CONTROL "OK" DI_OK, "BUTTON", WS_CHILD | WS_VISIBLE
- 188 | WS_TABSTOP | 0x1L, 42, 140, 35, 12
- 189 CONTROL "Cancel" DI_CANCEL, "BUTTON", WS_CHILD | WS_VISIBLE
- 190 | WS_TABSTOP, 164, 140, 40, 12
- 191 CONTROL "Edit Color" DI_ED, "BUTTON", WS_CHILD | WS_VISIBLE
- 192 | WS_TABSTOP, 93, 140, 56, 12
- 193 CONTROL "" DI_PGRAPH, "STATIC", WS_CHILD | WS_VISIBLE | 0xBL,
- 194 99, 6, 42, 34
- 195 END
- 196
- 197 COLORDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 198 66, 51, 172, 79
- 199 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 200 CAPTION "Edit Color"
- 201 BEGIN
- 202 CONTROL "" DI_SCR1, "SCROLLBAR", WS_CHILD | WS_VISIBLE |
- 203 WS_TABSTOP | 0x2L, 23, 11, 88, 10
- 204 CONTROL "" DI_SCR2, "SCROLLBAR", WS_CHILD | WS_VISIBLE |
- 205 WS_TABSTOP | 0x2L, 23, 26, 88, 10
- 206 CONTROL "" DI_SCR3, "SCROLLBAR", WS_CHILD | WS_VISIBLE |
- 207 WS_TABSTOP | 0x2L, 23, 41, 88, 10
- 208
- 209 CONTROL "&Red" -1, "STATIC", WS_CHILD | WS_VISIBLE |
- 210 0x1L, 3, 11, 19, 9
- 211 CONTROL "&Green" -1, "STATIC", WS_CHILD | WS_VISIBLE |
- 212 0x1L, 3, 26, 19, 9
- 213 CONTROL "&Blue" -1, "STATIC", WS_CHILD | WS_VISIBLE |
- 214 0x1L, 3, 41, 19, 9
- 215
- 216 CONTROL "&OK" DI_OK, "BUTTON", WS_CHILD | WS_VISIBLE |
- 217 WS_TABSTOP | 0x1L, 18, 59, 33, 12
- 218 CONTROL "&Cancel" DI_CANCEL, "BUTTON", WS_CHILD | WS_VISIBLE
- 219 | WS_TABSTOP, 61, 59, 44, 12
- 220 CONTROL "&Reset" DI_RESET, "BUTTON", WS_CHILD | WS_VISIBLE
- 221 | WS_TABSTOP, 115, 59, 40, 12
- 222
- 223 CONTROL "0" DI_RVALUE, "EDIT", WS_CHILD | WS_VISIBLE |
- 224 WS_BORDER | WS_TABSTOP | 0x2L, 117, 10, 16, 11
- 225 CONTROL "0" DI_GVALUE, "EDIT", WS_CHILD | WS_VISIBLE |
- 226 WS_BORDER | WS_TABSTOP | 0x2L, 117, 25, 16, 11
- 227 CONTROL "0" DI_BVALUE, "EDIT", WS_CHILD | WS_VISIBLE |
- 228 WS_BORDER | WS_TABSTOP | 0x2L, 117, 40, 16, 11
- 229
- 230 CONTROL "" DI_NEWCOLOR, "STATIC", WS_CHILD | WS_VISIBLE |
- 231 0x7L, 138, 18, 26, 25
- 232 END