|
|
1.1.1.3 ! root 1: ! 2: //----------------------------------------------------------------------------- ! 3: // This is a part of the Microsoft Source Code Samples. ! 4: // Copyright (C) 1993 Microsoft Corporation. ! 5: // All rights reserved. ! 6: // ! 7: // This source code is only intended as a supplement to ! 8: // Microsoft Development Tools and/or WinHelp documentation. ! 9: // See these sources for detailed information regarding the ! 10: // Microsoft samples programs. ! 11: //----------------------------------------------------------------------------- ! 12: 1.1 root 13: #include <windows.h> 14: #include "regions.h" 15: 16: Menu MENU 17: BEGIN 18: POPUP "&Options" 19: BEGIN 20: MENUITEM "&Erase", IDM_ERASE 21: MENUITEM SEPARATOR 22: MENUITEM "&OffsetRgn", IDM_OFFSETRGN 23: MENUITEM "&InvertRgn", IDM_INVERTRGN 24: MENUITEM "&FrameRgn", IDM_FRAMERGN 25: MENUITEM "&PtInRgn", IDM_PTINRGN 26: MENUITEM "&RectInRgn", IDM_RECTINRGN 27: MENUITEM "&SetRectRgn", IDM_SETRECTRGN 28: MENUITEM "&GetRgnBox...", IDM_GETRGNBOX 29: MENUITEM SEPARATOR 30: MENUITEM "&About...", IDM_ABOUT 31: END 32: POPUP "&Create" 33: BEGIN 34: MENUITEM "&EllipticRgn", IDM_ELLIPSE 35: MENUITEM "&PolyPolygonRgn", IDM_POLYPOLYGON 36: MENUITEM "&RectRgn", IDM_RECT 37: END 38: POPUP "Co&mbine" 39: BEGIN 40: MENUITEM "RGN_AND", IDM_AND 41: MENUITEM "RGN_COPY", IDM_COPY 42: MENUITEM "RGN_DIFF", IDM_DIFF 43: MENUITEM "RGN_OR", IDM_OR 44: MENUITEM "RGN_XOR", IDM_XOR 45: END 46: END 47: 1.1.1.2 root 48: About DIALOG 30, 14, 136, 90 49: LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL 50: STYLE DS_MODALFRAME | | WS_POPUP | | WS_VISIBLE | | WS_CAPTION | | WS_SYSMENU 1.1 root 51: CAPTION "About Regions" 1.1.1.2 root 52: FONT 8, "MS Sans Serif" 1.1 root 53: BEGIN 1.1.1.2 root 54: CTEXT "Microsoft Developer Support", 104, 0, 63, 136, 8 1.1.1.3 ! root 55: CTEXT "Copyright \251 1992-1993 Microsoft Corporation", 105, 0, 74, 1.1.1.2 root 56: 136, 8 57: LTEXT "Regions Win32 SDK sample ", 103, 40, 25, 95, 8 58: LTEXT "version 1.0", 106, 40, 35, 95, 8 59: DEFPUSHBUTTON "OK", IDOK, 95, 6, 40, 14 60: CONTROL "", 108, "Static", SS_BLACKRECT, 0, 53, 136, 2 1.1 root 61: END 62: 63: 64: RgnBox DIALOG 21, 28, 87, 116 65: STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU 66: FONT 8, "Helv" 67: BEGIN 68: LTEXT "GetRgnBox returned:", 101, 10, 6, 77, 8 69: LTEXT "Text", 102, 10, 21, 68, 8 70: LTEXT "rect.left:", 103, 10, 37, 40, 8 71: LTEXT "rect.top:", 104, 10, 53, 42, 8 72: LTEXT "rect.right:", 105, 10, 69, 41, 8 73: LTEXT "rect.bottom:", 106, 10, 85, 43, 8 74: LTEXT "left", 107, 55, 37, 30, 8 75: LTEXT "top", 108, 55, 53, 30, 8 76: LTEXT "right", 109, 55, 69, 30, 8 77: LTEXT "bottom", 110, 55, 85, 30, 8 78: DEFPUSHBUTTON "OK", IDOK, 10, 101, 68, 14, WS_GROUP 79: END
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.