]> git.saurik.com Git - wxWidgets.git/commitdiff
Font correction
authorJulian Smart <julian@anthemion.co.uk>
Wed, 23 Jun 2004 08:22:10 +0000 (08:22 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 23 Jun 2004 08:22:10 +0000 (08:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/spinctrl.cpp

index 312867d1a4f8626506d2596eac6dcbc772f135a1..a302bc53bfcfb9f7ae8cdd79faf26cf786461d6b 100644 (file)
@@ -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 )