BEGIN_EVENT_TABLE(wxWindowCocoa, wxWindowBase)
END_EVENT_TABLE()
+wxWindow *wxWindowCocoa::sm_capturedWindow = NULL;
+
// Constructor
void wxWindowCocoa::Init()
{
void wxWindow::DoCaptureMouse()
{
// TODO
+ sm_capturedWindow = this;
}
void wxWindow::DoReleaseMouse()
{
// TODO
+ sm_capturedWindow = NULL;
}
void wxWindow::DoScreenToClient(int *x, int *y) const
/* static */ wxWindow *wxWindowBase::GetCapture()
{
// TODO
- return NULL;
+ return wxWindowCocoa::sm_capturedWindow;
}
wxWindow *wxGetActiveWindow()
return NULL;
}
+wxPoint wxGetMousePosition()
+{
+ // TODO
+ return wxDefaultPosition;
+}
+
+wxWindow* wxFindWindowAtPointer(wxPoint& pt)
+{
+ pt = wxGetMousePosition();
+ return NULL;
+}
+