PlanetSquires Forums

Support Forums => WinFBX - Windows Framework for FreeBASIC => Topic started by: Paul Squires on March 04, 2019, 06:58:00 PM

Title: StatusBar_SetFont (in AfxCtl.inc)
Post by: Paul Squires on March 04, 2019, 06:58: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:07:09 PM
Modified.