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