hdc = new wxMemoryDC();
hdcOwned = true;
#else
- // On Mac and GTK(?) the DC is not really valid until it has a bitmap
+ // On Mac and GTK the DC is not really valid until it has a bitmap
// selected into it. So instead of just creating the DC with no bitmap,
// go ahead and give it one.
InitPixMap(1,1,NULL);
cursorId = wxCURSOR_ARROW;
break;
}
-
- GETWIN(id)->SetCursor(wxCursor(cursorId));
+#ifdef __WXMOTIF__
+ wxCursor wc = wxStockCursor(cursorId) ;
+#else
+ wxCursor wc = wxCursor(cursorId) ;
+#endif
+ GETWIN(id)->SetCursor(wc);
}
// Helper classes for ListBox
-#if defined(__WXMAC__)
+#if 1 // defined(__WXMAC__)
class wxSTCListBoxWin : public wxListBox {
public:
wxSTCListBoxWin(wxWindow* parent, wxWindowID id)
return stc->SendMsg(msg, wParam, lParam);
}
+long Platform::SendScintillaPointer(WindowID w,
+ unsigned int msg,
+ unsigned long wParam,
+ void *lParam) {
+
+ wxStyledTextCtrl* stc = (wxStyledTextCtrl*)w;
+ return stc->SendMsg(msg, wParam, (long)lParam);
+}
+
// These are utility functions not really tied to a platform