--- mstools/samples/gdidemo/maze.c 2018/08/09 18:20:01 1.1 +++ mstools/samples/gdidemo/maze.c 2018/08/09 18:23:50 1.1.1.2 @@ -1,10 +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. +\******************************************************************************/ + /*---------------------------------------------------------------------------*\ | MAZE MODULE -| -| segment: _TEXT (DOS16) -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ #include @@ -13,10 +19,6 @@ /*---------------------------------------------------------------------------*\ | CREATE MAZE WINDOW PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ HWND FAR CreateMazeWindow(HWND hWndClient, int nItem) { @@ -32,24 +34,20 @@ HWND FAR CreateMazeWindow(HWND hWndClien */ mcs.szClass = MAZECLASS; mcs.szTitle = MAZETITLE; - mcs.hOwner = hInstance; + mcs.hOwner = hInstance; mcs.x = CW_USEDEFAULT; mcs.y = CW_USEDEFAULT; mcs.cx = CW_USEDEFAULT; mcs.cy = CW_USEDEFAULT; - mcs.style = 0l; + mcs.style = 0l; mcs.lParam = (LONG)nItem; - return((HWND)SendMessage(hWndClient,WM_MDICREATE,NULL,(LONG)(LPMDICREATESTRUCT)&mcs)); + return((HWND)SendMessage(hWndClient,WM_MDICREATE,0,(LONG)(LPMDICREATESTRUCT)&mcs)); } /*---------------------------------------------------------------------------*\ | MAZE WINDOW PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ LONG APIENTRY MazeProc(HWND hWnd, UINT wMsg, WPARAM wParam, LONG lParam) { @@ -88,10 +86,6 @@ LONG APIENTRY MazeProc(HWND hWnd, UINT w /*---------------------------------------------------------------------------*\ | MAZE CREATE PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ BOOL MazeCreateProc(HWND hWnd) { @@ -113,10 +107,6 @@ BOOL MazeCreateProc(HWND hWnd) /*---------------------------------------------------------------------------*\ | MAZE COMMAND PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ BOOL MazeCommandProc(HWND hWnd, WPARAM wParam, LONG lParam) { @@ -130,10 +120,6 @@ BOOL MazeCommandProc(HWND hWnd, WPARAM w /*---------------------------------------------------------------------------*\ | MAZE PAINT PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ VOID MazePaintProc(HWND hWnd) { @@ -150,10 +136,6 @@ VOID MazePaintProc(HWND hWnd) /*---------------------------------------------------------------------------*\ | MAZE DESTROY PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ VOID MazeDestroyProc(HWND hWnd) {