#ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/utils.h"
+#include "wx/scrolwin.h"
#endif
#include "wx/os2/private.h"
if (m_windowStyle & wxCLIP_SIBLINGS)
lMsStyle |= WS_CLIPSIBLINGS;
-
-
m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle
,WC_ENTRYFIELD // Window class
,(PSZ)NULL // Initial Text
::WinQueryWindowPos(m_hWnd, &vSwp);
SetXComp(vSwp.x);
SetYComp(vSwp.y);
- SetFont(pParent->GetFont());
+ wxFont* pTextFont = new wxFont( 10
+ ,wxMODERN
+ ,wxNORMAL
+ ,wxNORMAL
+ );
+ SetFont(*pTextFont);
if (nWidth == -1L)
nWidth = 50L;
if (nHeight == -1L)
,nHeight
);
::WinShowWindow((HWND)GetHWND(), TRUE);
+ delete pTextFont;
return TRUE;
} // end of wxGauge::Create