update:添加。

This commit is contained in:
taynpg 2024-12-26 10:28:02 +08:00
parent 3fbbb0fbdc
commit 75d707ba3b
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,11 @@ CMainFrame::CMainFrame(const wxString& title)
this->Bind(wxEVT_LEFT_UP, &CMainFrame::mouse_leftup, this); this->Bind(wxEVT_LEFT_UP, &CMainFrame::mouse_leftup, this);
} }
void CMainFrame::init()
{
}
void CMainFrame::mouse_down(wxMouseEvent& event) void CMainFrame::mouse_down(wxMouseEvent& event)
{ {
drag_ = true; drag_ = true;

View File

@ -6,6 +6,9 @@ class CMainFrame : public wxFrame
public: public:
explicit CMainFrame(const wxString& title); explicit CMainFrame(const wxString& title);
public:
void init();
private: private:
void mouse_down(wxMouseEvent& event); void mouse_down(wxMouseEvent& event);
void mouse_motion(wxMouseEvent& event); void mouse_motion(wxMouseEvent& event);