• Welcome to PlanetSquires Forums.
 

StatusBar_SetFont (in AfxCtl.inc)

Started by Paul Squires, March 04, 2019, 06:58:00 PM

Previous topic - Next topic

Paul Squires

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
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

José Roca