--- q_a/samples/setinfo/setinfo.c 2018/08/09 18:29:35 1.1.1.2 +++ q_a/samples/setinfo/setinfo.c 2018/08/09 18:30:01 1.1.1.3 @@ -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. +\******************************************************************************/ + /*************************************************************************\ * PROGRAM: setinfo.c * @@ -121,7 +132,7 @@ int APIENTRY WinMain (HANDLE hInstance, hInst = hInstance; - wc.style = NULL; // Replaces CS_SIZEREDRAW. + wc.style = 0; // Replaces CS_SIZEREDRAW. wc.lpfnWndProc = (WNDPROC)MainWndProc; // The client window procedure. wc.cbClsExtra = 0; // No room reserved for extra data. wc.cbWndExtra = 0; @@ -155,7 +166,7 @@ int APIENTRY WinMain (HANDLE hInstance, ShowWindow (hWndFileDlg, SW_SHOW); ShowWindow (hWnd, nCmdShow); - while (GetMessage (&msg, NULL, NULL, NULL)) + while (GetMessage (&msg, NULL, 0, 0)) if (!IsDialogMessage (hWndDlg, &msg) && !IsDialogMessage (hWndFileDlg, &msg)) { @@ -202,8 +213,8 @@ LONG APIENTRY MainWndProc (HWND hwnd, { case WM_SIZE : - SetWindowPos (hWndDlg, NULL, 0,0, LOWORD(lParam), DIALOGHEIGHT, NULL); - SetWindowPos (hWndFileDlg, NULL, 0,DIALOGHEIGHT, LOWORD(lParam), HIWORD(lParam), NULL); + SetWindowPos (hWndDlg, NULL, 0,0, LOWORD(lParam), DIALOGHEIGHT, 0); + SetWindowPos (hWndFileDlg, NULL, 0,DIALOGHEIGHT, LOWORD(lParam), HIWORD(lParam), 0); return (0); case WM_DESTROY :