+class wxSTCCallTip : public wxWindow {
+public:
+ wxSTCCallTip(wxWindow* parent, int ID, CallTip* ct)
+ : wxWindow(parent, ID)
+ {
+ m_ct = ct;
+ }
+
+ void OnPaint(wxPaintEvent& evt) {
+ wxPaintDC dc(this);
+ Surface surfaceWindow;
+ surfaceWindow.Init(&dc);
+ m_ct->PaintCT(&surfaceWindow);
+ surfaceWindow.Release();
+ }
+
+ CallTip* m_ct;
+ DECLARE_EVENT_TABLE()
+};
+
+BEGIN_EVENT_TABLE(wxSTCCallTip, wxWindow)
+ EVT_PAINT(wxSTCCallTip::OnPaint)
+END_EVENT_TABLE()