--- mstools/mfc/samples/showfont/drawing.cpp 2018/08/09 18:21:00 1.1.1.1 +++ mstools/mfc/samples/showfont/drawing.cpp 2018/08/09 18:22:20 1.1.1.2 @@ -30,7 +30,7 @@ void CMainWindow::InitDC(CDC& dc) // GetStringExtent: // A helper function which calculates the extent of a string in a given font. // -static short GetStringExtent(CDC& dc, PSTR pString, CFont* font) +static int GetStringExtent(CDC& dc, PSTR pString, CFont* font) { CFont* oldFont = dc.SelectObject(font); if (oldFont == NULL) @@ -46,7 +46,7 @@ static short GetStringExtent(CDC& dc, PS // StringOut: // Helper routine for font-specific text out. // -static short StringOut(CDC& dc, short x, short y, PSTR pString, CFont* newFont) +static int StringOut(CDC& dc, short x, short y, PSTR pString, CFont* newFont) { CFont* oldFont = dc.SelectObject(newFont); if (oldFont == NULL)