DEMO3_3.RC
资源名称:winpaint.zip [点击查看]
上传用户:cncajx
上传日期:2007-01-03
资源大小:190k
文件大小:5k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- 1 #include "windows.h"
- 2 #include "demo3_3.h"
- 3
- 4 Demo3_3 MENU
- 5 BEGIN
- 6 POPUP "&MappingMode"
- 7 BEGIN
- 8 MENUITEM "&TEXT" IDM_TEXT
- 9 MENUITEM "&LOMETRIC" IDM_LOMET
- 10 MENUITEM "&HIMETRIC" IDM_HIMET
- 11 MENUITEM "&LOENGLISH" IDM_LOENG
- 12 MENUITEM "&HIENGLISH" IDM_HIENG
- 13 MENUITEM "&TWIPS" IDM_TWIPS
- 14 END
- 15 POPUP "&Command"
- 16 BEGIN
- 17 MENUITEM "&Draw" IDM_DRAW
- 18 MENUITEM "&Clear" IDM_CLEAR
- 19 END
- 20 POPUP "&Shape"
- 21 BEGIN
- 22 MENUITEM "&Line" IDM_LINE
- 23 MENUITEM "&Rectangle" IDM_RECT
- 24 MENUITEM "&Ellipse" IDM_ELLIP
- 25 END
- 26 END
- 27
- 28
- 29 LINEDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 30 68, 57, 140, 70
- 31 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 32 CAPTION "Line Choose"
- 33 BEGIN
- 34 CONTROL "" DI_LLEFT, "EDIT", WS_CHILD | WS_VISIBLE |
- 35 WS_BORDER | WS_TABSTOP, 27, 8, 31, 12
- 36 CONTROL "" DI_LTOP, "EDIT", WS_CHILD | WS_VISIBLE |
- 37 WS_BORDER | WS_TABSTOP, 27, 27, 31, 12
- 38 CONTROL "" DI_LRIGHT, "EDIT", WS_CHILD | WS_VISIBLE |
- 39 WS_BORDER | WS_TABSTOP, 97, 8, 31, 12
- 40 CONTROL "" DI_LBOTTOM, "EDIT", WS_CHILD | WS_VISIBLE |
- 41 WS_BORDER | WS_TABSTOP, 97, 27, 31, 12
- 42
- 43 CONTROL "Left :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 44 7, 10, 19, 9
- 45 CONTROL "Top :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 46 8, 28, 18, 9
- 47 CONTROL "Right :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 48 67, 10, 22, 9
- 49 CONTROL "Bottom :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 50 66, 28, 29, 9
- 51
- 52 CONTROL "OK" DI_LOK, "BUTTON", WS_CHILD | WS_VISIBLE |
- 53 WS_TABSTOP | 0x1L, 24, 49, 32, 12
- 54 CONTROL "Cancel" DI_LCANCEL, "BUTTON", WS_CHILD | WS_VISIBLE |
- 55 WS_TABSTOP, 74, 49, 40, 12
- 56 END
- 57
- 58
- 59 RECTDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 60 68, 57, 140, 70
- 61 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 62 CAPTION "Rectangle Choose"
- 63 BEGIN
- 64 CONTROL "" DI_RLEFT, "EDIT", WS_CHILD | WS_VISIBLE |
- 65 WS_BORDER | WS_TABSTOP, 27, 8, 31, 12
- 66 CONTROL "" DI_RTOP, "EDIT", WS_CHILD | WS_VISIBLE |
- 67 WS_BORDER | WS_TABSTOP, 27, 27, 31, 12
- 68 CONTROL "" DI_RRIGHT, "EDIT", WS_CHILD | WS_VISIBLE |
- 69 WS_BORDER | WS_TABSTOP, 97, 8, 31, 12
- 70 CONTROL "" DI_RBOTTOM, "EDIT", WS_CHILD | WS_VISIBLE |
- 71 WS_BORDER | WS_TABSTOP, 97, 27, 31, 12
- 72
- 73 CONTROL "Left :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 74 7, 10, 19, 9
- 75 CONTROL "Top :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 76 8, 28, 18, 9
- 77 CONTROL "Right :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 78 67, 10, 22, 9
- 79 CONTROL "Bottom :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 80 66, 28, 29, 9
- 81
- 82 CONTROL "OK" DI_ROK, "BUTTON", WS_CHILD | WS_VISIBLE |
- 83 WS_TABSTOP | 0x1L, 24, 49, 32, 12
- 84 CONTROL "Cancel" DI_RCANCEL, "BUTTON", WS_CHILD | WS_VISIBLE |
- 85 WS_TABSTOP, 74, 49, 40, 12
- 86 END
- 87
- 88
- 89 ELLIPDLG DIALOG DISCARDABLE LOADONCALL PURE MOVEABLE
- 90 68, 57, 140, 70
- 91 STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | 0x80L
- 92 CAPTION "Ellipse Choose"
- 93 BEGIN
- 94 CONTROL "" DI_ELEFT, "EDIT", WS_CHILD | WS_VISIBLE |
- 95 WS_BORDER | WS_TABSTOP, 27, 8, 31, 12
- 96 CONTROL "" DI_ETOP, "EDIT", WS_CHILD | WS_VISIBLE |
- 97 WS_BORDER | WS_TABSTOP, 27, 27, 31, 12
- 98 CONTROL "" DI_ERIGHT, "EDIT", WS_CHILD | WS_VISIBLE |
- 99 WS_BORDER | WS_TABSTOP, 97, 8, 31, 12
- 100 CONTROL "" DI_EBOTTOM, "EDIT", WS_CHILD | WS_VISIBLE |
- 101 WS_BORDER | WS_TABSTOP, 97, 27, 31, 12
- 102
- 103 CONTROL "Left :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 104 7, 10, 19, 9
- 105 CONTROL "Top :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 106 8, 28, 18, 9
- 107 CONTROL "Right :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 108 67, 10, 22, 9
- 109 CONTROL "Bottom :" -1, "STATIC", WS_CHILD | WS_VISIBLE,
- 110 66, 28, 29, 9
- 111
- 112 CONTROL "OK" DI_EOK, "BUTTON", WS_CHILD | WS_VISIBLE |
- 113 WS_TABSTOP | 0x1L, 24, 49, 32, 12
- 114 CONTROL "Cancel" DI_ECANCEL, "BUTTON", WS_CHILD | WS_VISIBLE |
- 115 WS_TABSTOP, 74, 49, 40, 12
- 116 END