Annotation of mstools/ole20/samples/gizmobar/gizmoint.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * GIZMOINT.H
        !             3:  * GizmoBar Version 1.00, March 1993
        !             4:  *
        !             5:  * Internal definitions for the GizmoBar DLL
        !             6:  *
        !             7:  * Copyright (c)1992 Microsoft Corporation, All Rights Reserved
        !             8:  *
        !             9:  * Kraig Brockschmidt, Software Design Engineer
        !            10:  * Microsoft Systems Developer Relations
        !            11:  *
        !            12:  * Internet  :  [email protected]
        !            13:  * Compuserve:  >INTERNET:[email protected]
        !            14:  */
        !            15: 
        !            16: 
        !            17: #ifndef _GIZMOINT_H_
        !            18: #define _GIZMOINT_H_
        !            19: 
        !            20: #include <bttncur.h>
        !            21: #include "win1632.h"
        !            22: #include "gizmo.h"
        !            23: #include "gizmobar.h"
        !            24: 
        !            25: #ifdef __cplusplus
        !            26: extern "C"
        !            27:     {
        !            28: #endif
        !            29: 
        !            30: 
        !            31: /*
        !            32:  * The main gizmobar structure itself.  There's only one of these,
        !            33:  * but it references the first GIZMO in the list.
        !            34:  */
        !            35: 
        !            36: typedef struct tagGIZMOBAR
        !            37:     {
        !            38:     PGIZMO      pGizmos;            //List of gizmos we own.
        !            39:     HWND        hWnd;               //Window handle of ourselves.
        !            40:     HINSTANCE   hInst;
        !            41:     HWND        hWndAssociate;      //Associate window handle who gets messages.
        !            42:     DWORD       dwStyle;            //Copy of GetWindowLong(hWnd, GWL_STYLE)
        !            43:     UINT        uState;             //State flags
        !            44: 
        !            45:     HBRUSH      hBrFace;            //Static control background color
        !            46:     COLORREF    crFace;             //Color of hBrFace
        !            47:     HFONT       hFont;              //Font in use, defaults to system, WM_SETFONT
        !            48:     BOOL        fEnabled;           //Are we enabled?
        !            49: 
        !            50:     PGIZMO      pGizmoTrack;        //Current pressed button.
        !            51:     BOOL        fTracking;
        !            52:     BOOL        fMouseOut;
        !            53:     } GIZMOBAR, FAR *PGIZMOBAR;
        !            54: 
        !            55: #define CBGIZMOBAR sizeof(GIZMOBAR)
        !            56: 
        !            57: 
        !            58: //Extra bytes for the window if the size of a local handle.
        !            59: #define CBWINDOWEXTRA       sizeof(PGIZMOBAR)
        !            60: 
        !            61: #define GBWL_STRUCTURE      0
        !            62: 
        !            63: 
        !            64: //Structure for passing paint information to a gizmo enumeration callback.
        !            65: typedef struct
        !            66:     {
        !            67:     HDC     hDC;
        !            68:     BOOL    fPaint;
        !            69:     } PAINTGIZMO, FAR * PPAINTGIZMO;
        !            70: 
        !            71: 
        !            72: 
        !            73: //Private functions specific to the control.
        !            74: 
        !            75: //INIT.C
        !            76: //HANDLE FAR PASCAL LibMain(HINSTANCE, WORD, WORD, LPSTR);
        !            77: BOOL              FRegisterControl(HINSTANCE);
        !            78: PGIZMOBAR         GizmoBarPAllocate(LPINT, HWND, HINSTANCE, HWND, DWORD, UINT);
        !            79: PGIZMOBAR         GizmoBarPFree(PGIZMOBAR);
        !            80: 
        !            81: 
        !            82: //PAINT.C
        !            83: void              GizmoBarPaint(HWND, PGIZMOBAR);
        !            84: BOOL FAR PASCAL   FEnumPaintGizmos(PGIZMO, UINT, DWORD);
        !            85: 
        !            86: 
        !            87: //GIZMOBAR.C
        !            88: LRESULT FAR PASCAL GizmoBarWndProc(HWND, UINT, WPARAM, LPARAM);
        !            89: BOOL    FAR PASCAL FEnumChangeFont(PGIZMO, UINT, DWORD);
        !            90: BOOL    FAR PASCAL FEnumEnable(PGIZMO, UINT, DWORD);
        !            91: BOOL    FAR PASCAL FEnumHitTest(PGIZMO, UINT, DWORD);
        !            92: 
        !            93: 
        !            94: //API.C  Also see GIZMOBAR.H for others
        !            95: LRESULT    GBMessageHandler(HWND, UINT, WPARAM, LPARAM, PGIZMOBAR);
        !            96: PGIZMO     PGizmoFromHwndID(HWND, UINT);
        !            97: 
        !            98: 
        !            99: #endif //_GIZMOINT_H_

unix.superglobalmegacorp.com

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