--- mstools/samples/select/select.h 2018/08/09 18:20:01 1.1.1.1 +++ mstools/samples/select/select.h 2018/08/09 18:24:06 1.1.1.2 @@ -1,3 +1,14 @@ + +/******************************************************************************\ +* 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. +\******************************************************************************/ + /* These defines determine the meaning of the fFlags variable. The low byte * is used for the various types of "boxes" to draw. The high byte is * available for special commands. @@ -13,11 +24,11 @@ // Temporary porting macros -#define INT2DWORD DWORD +#define INT2DWORD DWORD typedef POINTS MPOINT; -#define MAKEMPOINT(l) (*((MPOINT *)&(l))) -#define MPOINT2POINT(mpt, pt) ((pt).x = (mpt).x, (pt).y = (mpt).y) -#define POINT2MPOINT(pt, mpt) ((mpt).x = (SHORT)(pt).x, (mpt).y = (SHORT)(pt).y) +#define MAKEMPOINT(l) (*((MPOINT *)&(l))) +#define MPOINT2POINT(mpt, pt) ((pt).x = (mpt).x, (pt).y = (mpt).y) +#define POINT2MPOINT(pt, mpt) ((mpt).x = (SHORT)(pt).x, (mpt).y = (SHORT)(pt).y) int APIENTRY StartSelection(HWND, MPOINT, LPRECT, int);