- this->Connect(id, wxEVT_MOTION,
- wxMouseEventHandler(wxPropertyGrid::OnMouseMoveChild));
- this->Connect(id, wxEVT_LEFT_UP,
- wxMouseEventHandler(wxPropertyGrid::OnMouseUpChild));
- this->Connect(id, wxEVT_LEFT_DOWN,
- wxMouseEventHandler(wxPropertyGrid::OnMouseClickChild));
- this->Connect(id, wxEVT_RIGHT_UP,
- wxMouseEventHandler(wxPropertyGrid::OnMouseRightClickChild));
- this->Connect(id, wxEVT_ENTER_WINDOW,
- wxMouseEventHandler(wxPropertyGrid::OnMouseEntry));
- this->Connect(id, wxEVT_LEAVE_WINDOW,
- wxMouseEventHandler(wxPropertyGrid::OnMouseEntry));
+ argWnd->Connect(id, wxEVT_MOTION,
+ wxMouseEventHandler(wxPropertyGrid::OnMouseMoveChild),
+ NULL, this);
+ argWnd->Connect(id, wxEVT_LEFT_UP,
+ wxMouseEventHandler(wxPropertyGrid::OnMouseUpChild),
+ NULL, this);
+ argWnd->Connect(id, wxEVT_LEFT_DOWN,
+ wxMouseEventHandler(wxPropertyGrid::OnMouseClickChild),
+ NULL, this);
+ argWnd->Connect(id, wxEVT_RIGHT_UP,
+ wxMouseEventHandler(wxPropertyGrid::OnMouseRightClickChild),
+ NULL, this);
+ argWnd->Connect(id, wxEVT_ENTER_WINDOW,
+ wxMouseEventHandler(wxPropertyGrid::OnMouseEntry),
+ NULL, this);
+ argWnd->Connect(id, wxEVT_LEAVE_WINDOW,
+ wxMouseEventHandler(wxPropertyGrid::OnMouseEntry),
+ NULL, this);