File:  [WindowsNT SDKs] / q_a / samples / subclass / subclass.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:29:43 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993


/******************************************************************************\
*       This is a part of the Microsoft Source Code Samples. 
*       Copyright (C) 1993 Microsoft Corporation.
*       All rights reserved. 
*       This source code is only intended as a supplement to 
*       Microsoft Development Tools and/or WinHelp documentation.
*       See these sources for detailed information regarding the 
*       Microsoft samples programs.
\******************************************************************************/


#define   IDM_BUTTON        101
#define   IDM_EDIT          102
#define   IDM_LIST          103
#define   IDM_TEST          110



/* function prototypes for the window procedures. */
long FAR PASCAL MainWndProc(HWND, UINT, UINT, LONG);
long FAR PASCAL SubclassWndProc(HWND, UINT, UINT, LONG);

VOID QueryWindowPos (HWND, LPRECT);
VOID PaintRect (HWND, LPRECT);
VOID SubclassWindow (HWND, WNDPROC);
DWORD ToggleMenu (HMENU, UINT);
LONG ShiftlParam(HWND, HWND, LONG);



#define WM_SC_CREATE  WM_USER+1



/* Different "Tracking actions." */
#define ACTIONNONE    0x0000
#define ACTIONMOVE    0x0001
#define ACTIONSIZEX   0x0002
#define ACTIONSIZEY   0x0004
#define ACTIONSIZEXY  0x0006


/* misc. defines for drawing and formating */
#define INC   5
#define EPSILON  (float) 0.0001
#define MAXCHARS 32
#define MINSIZE 5


/* Global variables. */
HWND   hwndMain;
HANDLE hInst;
BOOL   fTestMode;


/* structure pointed at by the extra user bytes. */
typedef struct tagExtraBytes{
    WNDPROC    pfnOldProc;
    RECT       rect;
    int        Action;   /* ACTIONSIZEXY, ACTIONMOVE, ... */
} ExtraBytes, *PExtraBytes;

unix.superglobalmegacorp.com

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