From: Julian Smart Date: Wed, 23 Jun 2004 08:22:10 +0000 (+0000) Subject: Font correction X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af905c94b5ff79a63656e0e9ee6dbf0d3b0a758d Font correction git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index 312867d1a4..a302bc53bf 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -373,6 +373,9 @@ bool wxSpinCtrl::Create(wxWindow *parent, // should have the same font as the other controls SetFont(GetParent()->GetFont()); + WXHANDLE hFont = GetFont().GetResourceHandle(); + (void)::SendMessage(GetBuddyHwnd(), WM_SETFONT, (WPARAM)hFont, TRUE); + // set the size of the text window - can do it only now, because we // couldn't call DoGetBestSize() before as font wasn't set if ( sizeText.y <= 0 )