在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
/*************************************************************** * Name: CaculatorMain.h * Purpose: Defines Application Frame * Author: zhangaihua ([email protected]) * Created: 2013-12-25 * Copyright: zhangaihua (http://blog.csdn.net/u012388338) * License: **************************************************************/ #ifndef CACULATORMAIN_H #define CACULATORMAIN_H
#include "CaculatorApp.h" #include "GUIFrame.h" class CaculatorFrame: public GUIFrame { public: CaculatorFrame(wxWindow *parent); ~CaculatorFrame(); private: void OnChar(wxKeyEvent& event); void OnText(wxCommandEvent& event); void OnCls(wxCommandEvent& event); void OnBck(wxCommandEvent& event); void OnAdd(wxCommandEvent& event); void OnNum(wxCommandEvent& event); void OnSub(wxCommandEvent& event); void OnMul(wxCommandEvent& event); void OnDot(wxCommandEvent& event); void OnEql(wxCommandEvent& event); void OnDiv(wxCommandEvent& event); void OnSqrt(wxCommandEvent& event); void OnSquare(wxCommandEvent& event); void OnCos(wxCommandEvent& event); void OnSin(wxCommandEvent& event); void Calculate(); void Display1(); void Display2(); enum { idNum0=wxID_HIGHEST+314, idNum1,idNum2,idNum3, idNum4,idNum5,idNum6, idNum7,idNum8,idNum9 }; double result;//当前计算的结果 char op;//操作符 wxString msg; }; #endif // CACULATORMAIN_H |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论