--- mstools/samples/gdidemo/xform.c 2018/08/09 18:20:01 1.1 +++ mstools/samples/gdidemo/xform.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. +\******************************************************************************/ + /*-------------------------------------------------------------------------*\ | XFORM MODULE -| -| segment: _TEXT (DOS16) -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ #include @@ -17,10 +23,6 @@ VOID DrawXForm(HWND); /*---------------------------------------------------------------------------*\ | CREATE XFORM WINDOW PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ HWND FAR CreateXFormWindow(HWND hWndClient, int nItem) { @@ -36,24 +38,20 @@ HWND FAR CreateXFormWindow(HWND hWndClie */ mcs.szClass = XFORMCLASS; mcs.szTitle = XFORMTITLE; - 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)); } /*---------------------------------------------------------------------------*\ | XFORM WINDOW PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ LONG APIENTRY XFormProc(HWND hWnd, UINT wMsg, WPARAM wParam, LONG lParam) { @@ -98,10 +96,6 @@ LONG APIENTRY XFormProc(HWND hWnd, UINT /*---------------------------------------------------------------------------*\ | XFORM CREATE PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ BOOL XFormCreateProc(HWND hWnd) { @@ -159,10 +153,6 @@ BOOL XFormCreateProc(HWND hWnd) /*---------------------------------------------------------------------------*\ | XFORM COMMAND PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ BOOL XFormCommandProc(HWND hWnd, WPARAM wParam, LONG lParam) { @@ -176,10 +166,6 @@ BOOL XFormCommandProc(HWND hWnd, WPARAM /*---------------------------------------------------------------------------*\ | XFORM PAINT PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ VOID XFormPaintProc(HWND hWnd) { @@ -198,10 +184,6 @@ VOID XFormPaintProc(HWND hWnd) /*---------------------------------------------------------------------------*\ | XFORM DESTROY PROCEDURE -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| \*---------------------------------------------------------------------------*/ VOID XFormDestroyProc(HWND hWnd) {