Annotation of q_a/samples/subclass/subclass.h, revision 1.1.1.2

1.1       root        1: 
1.1.1.2 ! root        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: 
        !            12: 
1.1       root       13: #define   IDM_BUTTON        101
                     14: #define   IDM_EDIT          102
                     15: #define   IDM_LIST          103
                     16: #define   IDM_TEST          110
                     17: 
                     18: 
                     19: 
                     20: /* function prototypes for the window procedures. */
                     21: long FAR PASCAL MainWndProc(HWND, UINT, UINT, LONG);
                     22: long FAR PASCAL SubclassWndProc(HWND, UINT, UINT, LONG);
                     23: 
                     24: VOID QueryWindowPos (HWND, LPRECT);
                     25: VOID PaintRect (HWND, LPRECT);
                     26: VOID SubclassWindow (HWND, WNDPROC);
                     27: DWORD ToggleMenu (HMENU, UINT);
                     28: LONG ShiftlParam(HWND, HWND, LONG);
                     29: 
                     30: 
                     31: 
                     32: #define WM_SC_CREATE  WM_USER+1
                     33: 
                     34: 
                     35: 
                     36: /* Different "Tracking actions." */
                     37: #define ACTIONNONE    0x0000
                     38: #define ACTIONMOVE    0x0001
                     39: #define ACTIONSIZEX   0x0002
                     40: #define ACTIONSIZEY   0x0004
                     41: #define ACTIONSIZEXY  0x0006
                     42: 
                     43: 
                     44: /* misc. defines for drawing and formating */
                     45: #define INC   5
                     46: #define EPSILON  (float) 0.0001
                     47: #define MAXCHARS 32
                     48: #define MINSIZE 5
                     49: 
                     50: 
                     51: /* Global variables. */
                     52: HWND   hwndMain;
                     53: HANDLE hInst;
                     54: BOOL   fTestMode;
                     55: 
                     56: 
                     57: /* structure pointed at by the extra user bytes. */
                     58: typedef struct tagExtraBytes{
                     59:     WNDPROC    pfnOldProc;
                     60:     RECT       rect;
                     61:     int        Action;   /* ACTIONSIZEXY, ACTIONMOVE, ... */
                     62: } ExtraBytes, *PExtraBytes;

unix.superglobalmegacorp.com

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