PlanetSquires Forums

Support Forums => José Roca Software => Topic started by: Paul Squires on March 04, 2019, 07:28:00 PM

Title: StatusBar_SetFont (in AfxCtl.inc)
Post by: Paul Squires on March 04, 2019, 07:28:00 PM
The incoming hFont parameter is defined as a DWORD when it probably should be HFONT. It results in the calling program to have to do an unnecessary cast.

' ========================================================================================
'  Sets the font that the status bar is to use when drawing text.
' ========================================================================================
PRIVATE SUB StatusBar_SetFont (BYVAL hStatusBar AS HWND, BYVAL hFont AS DWORD, BYVAL fRedraw AS LONG = FALSE)
   SendMessageW(hStatusBar, WM_SETFONT, cast(WPARAM, hFont), cast(LPARAM, fRedraw))
END SUB
Title: Re: StatusBar_SetFont (in AfxCtl.inc)
Post by: José Roca on March 04, 2019, 07:37:09 PM
Modified.