📄 routerbutton.h
字号:
#pragma once
#include "ResultOfPing.h"
// CRouterButton
#include "RouoterInfoDialog.h"
class CRouterButton : public CButton
{
DECLARE_DYNAMIC(CRouterButton)
public:
CRouterButton();
virtual ~CRouterButton();
long OldPositionX,OldPositionY;
long Heigh,Width;
CToolTipCtrl Tip;
char *TipString;
CWnd *Father;
CPoint *PReferencePoint;
bool *PScrolled;
CList <ULONG> IPList;
CRouoterInfoDialog *RouterInfoDialog;
ULONG ValidIp;
char ValidCommunityName[64];
protected:
DECLARE_MESSAGE_MAP()
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
BOOL MyCreate(CPoint CreatePoint, CBitmap &RouterBmp,char * PTipString ,CWnd *Father);//,CPoint *PReferencePoint,bool *PScrolled);
private:
CPoint OldPoint;//拖动过程中的中转数据
bool Eraser;//拖动过程中的中转数据
char *NetIpToString(u_long in)
{
static char output[12][3*4+3+1];
static short which;
u_char *p;
p = (u_char *)∈
which = (which + 1 == 12 ? 0 : which + 1);
sprintf(output[which], "%d.%d.%d.%d", p[0], p[1], p[2], p[3]);
return output[which];
}
public:
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
BOOL ChangeTipText(char * PTipString);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnGetRouterParticularInformation();
afx_msg void OnPingAllHost();
afx_msg void OnChangeGroupID();
// 群ping对话框的控制变量
CResultOfPing *ResultOfPingDlg;
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -