DECLARE_DYNAMIC_CLASS(wxWindowCocoa)
DECLARE_NO_COPY_CLASS(wxWindowCocoa)
DECLARE_EVENT_TABLE()
+ friend wxWindow *wxWindowBase::GetCapture();
// ------------------------------------------------------------------------
// initialization
// ------------------------------------------------------------------------
WX_NSView m_cocoaNSView;
WX_NSView m_dummyNSView;
bool m_isInPaint;
+ static wxWindow *sm_capturedWindow;
// ------------------------------------------------------------------------
// Implementation
// ------------------------------------------------------------------------
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()