Annotation of mstools/samples/gdidemo/draw.h, revision 1.1.1.2

1.1.1.2 ! 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: *       This source code is only intended as a supplement to 
        !             7: *       Microsoft Development Tools and/or WinHelp documentation.
        !             8: *       See these sources for detailed information regarding the 
        !             9: *       Microsoft samples programs.
        !            10: \******************************************************************************/
        !            11: 
1.1       root       12: 
                     13: #ifdef WIN16
                     14: #define APIENTRY FAR PASCAL
                     15: typedef WORD WPARAM;
                     16: //#else
                     17: //typedef DWORD WPARAM;
                     18: #endif
                     19: 
                     20: #define DRAWCLASS  "DRAWDEMO"
                     21: #define DRAWTITLE  "Random Objects Demo"
                     22: 
                     23: 
                     24: #define OBJ_RECTANGLE       0
                     25: #define OBJ_ELLIPSE         1
                     26: #define OBJ_ROUNDRECT       2
                     27: #define OBJ_CHORD           3
                     28: #define OBJ_PIE             4
                     29: 
                     30: 
                     31: typedef struct _DRAWDATA
                     32: {
                     33:     int    nObject;
                     34: } DRAWDATA;
                     35: typedef DRAWDATA      *PDRAWDATA;
                     36: typedef DRAWDATA NEAR *NPDRAWDATA;
                     37: typedef DRAWDATA FAR  *LPDRAWDATA;
                     38: 
                     39: 
                     40: /*
                     41: ** DRAW WINDOW ROUTINES (draw.c)
                     42: */
                     43: HWND  FAR      CreateDrawWindow(HWND,int);
                     44: LONG  APIENTRY DrawProc(HWND,UINT,WPARAM,LONG);
                     45: BOOL           DrawCreateProc(HWND);
                     46: VOID           DrawDestroyProc(HWND);
                     47: BOOL           DrawCommandProc(HWND,WPARAM,LONG);
                     48: VOID           DrawPaintProc(HWND);
                     49: 
                     50: 
                     51: VOID           DrawObject(HWND);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.