--- mstools/samples/fontview/status.c 2018/08/09 18:20:49 1.1.1.2 +++ mstools/samples/fontview/status.c 2018/08/09 18:24:02 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. +\******************************************************************************/ + #define NOMINMAX #include @@ -153,18 +164,18 @@ LONG APIENTRY StatusProc (HWND hwnd, UIN 0, 0, 0, 0, VARIABLE_PITCH | FF_SWISS, ""); - if (GetObject (hfontStatus, sizeof(LOGFONT), &lfTmp)) { - if ((lfTmp.lfPitchAndFamily & VARIABLE_PITCH) && - (lfTmp.lfPitchAndFamily & FF_SWISS)) { - } else { - MessageBox (GetFocus(), + if (GetObject (hfontStatus, sizeof(LOGFONT), &lfTmp)) { + if ((lfTmp.lfPitchAndFamily & VARIABLE_PITCH) && + (lfTmp.lfPitchAndFamily & FF_SWISS)) { + } else { + MessageBox (GetFocus(), "Unable to get an unnamed variable pitch swiss font", "Status Bar CreateFont Error", - MB_OK); - hfontStatus = CreateFont(14, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, - VARIABLE_PITCH | FF_SWISS, "Arial"); - } - } + MB_OK); + hfontStatus = CreateFont(14, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, + VARIABLE_PITCH | FF_SWISS, "Arial"); + } + } if (!hfontStatus) {