///////////////////////////////////////////////////////////////////////////////
-// Name: msw/tooltip.h
+// Name: wx/msw/tooltip.h
// Purpose: wxToolTip class - tooltip control
// Author: Vadim Zeitlin
// Modified by:
#include "wx/object.h"
+class WXDLLIMPEXP_CORE wxWindow;
+
class WXDLLEXPORT wxToolTip : public wxObject
{
public:
/////////////////////////////////////////////////////////////////////////////
-// Name: msw/spinctrl.cpp
+// Name: src/msw/spinctrl.cpp
// Purpose: wxSpinCtrl class implementation for Win32
// Author: Vadim Zeitlin
// Modified by:
#pragma hdrstop
#endif
-#ifndef WX_PRECOMP
- #include "wx/wx.h"
-#endif
-
#if wxUSE_SPINCTRL
#include "wx/spinctrl.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/event.h"
+ #include "wx/textctrl.h"
+#endif
+
#include "wx/msw/private.h"
#include "wx/msw/wrapcctl.h"
void wxSpinCtrl::OnKillFocus(wxFocusEvent& event)
{
// ensure that the value is shown correctly
- SetValue(GetValue()) ;
+ SetValue(GetValue()) ;
event.Skip();
}
// text control is currently empty, the spin button seems to be happy
// to leave it like this, while we really want to always show the
// current value in the control, so do it manually
- ::SetWindowText(GetBuddyHwnd(), wxString::Format(_T("%ld"), val));
+ ::SetWindowText(GetBuddyHwnd(), wxString::Format(_T("%d"), val));
}
}
}
#endif // wxUSE_SPINCTRL
-
///////////////////////////////////////////////////////////////////////////////
-// Name: msw/tooltip.cpp
+// Name: src/msw/tooltip.cpp
// Purpose: wxToolTip class implementation for MSW
// Author: Vadim Zeitlin
// Modified by:
#pragma hdrstop
#endif
-#ifndef WX_PRECOMP
- #include "wx/wx.h"
-#endif
-
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+ #include "wx/control.h"
+ #include "wx/combobox.h"
+#endif
+
#include "wx/msw/private.h"
// include <commctrl.h> "properly"
wxToolTip::~wxToolTip()
{
// the tooltip has to be removed before deleting. Otherwise, if it is visible
- // while being deleted, there will be a delay before it goes away.
- Remove();
+ // while being deleted, there will be a delay before it goes away.
+ Remove();
}
// ----------------------------------------------------------------------------