--- q_a/samples/paths/paths.c 2018/08/09 18:29:19 1.1 +++ q_a/samples/paths/paths.c 2018/08/09 18:29:44 1.1.1.2 @@ -1,12 +1,16 @@ + +/******************************************************************************\ +* 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. +\******************************************************************************/ + /**************************************************************************\ * paths.c -- sample program demonstrating paths. -* -* written Feb 92 by Steve Firebaugh -* -* As of 2/14/92 the SelectClipPath() API is not working. -* Instead use: -* -* SelectClipRgn (hdc, PathToRegion(hdc)); \**************************************************************************/ @@ -22,7 +26,7 @@ * input parameters: c.f. generic sample * \**************************************************************************/ -int APIENTRY WinMain(HANDLE hInstance, HANDLE hPrevInstance, +int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HANDLE hInst; @@ -74,7 +78,7 @@ int APIENTRY WinMain(HANDLE hInstance, H /* Loop getting messages and dispatching them. */ - while (GetMessage(&msg,NULL, NULL, NULL)) { + while (GetMessage(&msg,NULL, 0,0)) { TranslateMessage(&msg); DispatchMessage(&msg); } @@ -210,13 +214,11 @@ static HANDLE hPenFill, hPenPath; EndPaint (hwnd, &ps); - } return FALSE; + } return 0; - default: - return (DefWindowProc(hwnd, message, wParam, lParam)); - } - return (NULL); + } /* end switch */ + return (DefWindowProc(hwnd, message, wParam, lParam)); }