📄 floatwnd.h
字号:
#if !defined(AFX_FLOATWND_H__738946C1_9010_4FA9_8325_FC174C538357__INCLUDED_)
#define AFX_FLOATWND_H__738946C1_9010_4FA9_8325_FC174C538357__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CFloatWnd.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CFloatWnd window
class CFloatWnd : public CWnd
{
// Construction
public:
CFloatWnd();
// Attributes
public:
CWnd *m_pDlg;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFloatWnd)
public:
//}}AFX_VIRTUAL
private:
CBitmap *bitmap;
int m_iCount;
bool m_bAdd;
CToolTipCtrl ToolTipCtrl;
CPoint m_MousePos;
// CRectTracker m_tracker;
// CDC* m_pDC;
protected:
int m_winHeight;
int m_winWidth;
int m_wndHeight;
int m_wndWidth;
double m_width_ratio;
double m_height_ratio;
// Implementation
public:
CRect m_ClientRect;
CPoint m_startPoint,m_endPoint;
BOOL DrawTransparentBitmap(int x, int y, int nWidth, int nHeight, CDC *pDC, UINT IDImage);
BOOL Create(int left, int top);
CFloatWnd(double width_ratio,double height_ratio);
virtual ~CFloatWnd();
// Generated message map functions
protected:
//{{AFX_MSG(CFloatWnd)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg UINT OnNcHitTest(CPoint point);
afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FLOATWND_H__738946C1_9010_4FA9_8325_FC174C538357__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -