📄 unidialog.h
字号:
#if !defined(AFX_BASEDIALOG_H__D7969408_B0EF_4D5C_9730_72418D45BA57__INCLUDED_)
#define AFX_BASEDIALOG_H__D7969408_B0EF_4D5C_9730_72418D45BA57__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// UniDialog.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CUniDialog window
//add by guanxin
class CVPFUIDlg;
//add end
class CUniDialog : public CDialog
{
// Construction
public:
//add by guanxin
// void SetCallKB( CVPFUIDlg *pKB );
//add end
CUniDialog(CWnd* pParent = NULL);
CUniDialog(UINT nIDTemplate, CWnd* pParentWnd = NULL);
virtual ~CUniDialog();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUniDialog)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
public:
int GetHeight();
int GetWidth();
void GetWinSize( int *picx, int *picy );
void MoveWindowToStick();
BOOL GetStickStatus();
void SetStickRect( CRect stStickRect );
BOOL EnableStick( BOOL bEnable = TRUE);
void GetRealWinRect( CRect *pRect);
void Exit();
void SetShowStatus( UINT nShowStatus );
UINT GetShowStatus();
void SetBkBitmapID( UINT nIDBkBitmap);
void SetDlgRgn( CRgn *pRgn);
void SetWinSize( int cx, int cy);
// Generated message map functions
protected:
//{{AFX_MSG(CUniDialog)
virtual BOOL OnInitDialog();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Attributes
private:
CRect m_OldMovingBorder;
CRect m_NullRect;
CRect m_StickRect;
BOOL m_bEnableStick;
BOOL m_Sticked;
BOOL m_ShowStatus;
CRgn * m_pRgn;
long m_WinWidth;
long m_WinHeight;
CRect m_OldRect;
BOOL m_isMouseMoving;
CPoint m_OldTmpPosition;
CPoint m_OldPosition; // Cursor Position When R Button Down
BOOL m_isLButtonDown;
CBrush m_BkBrush;
CBitmap m_BkBitmap;
// Implementation
private:
void DrawMovingRect( HDC hDC, LPRECT lprc);
//add by guanxin
// CVPFUIDlg * m_CallKB;
//add end
public:
BOOL IsNearStickArea(CRect stNewPos);
void GetStickRect( CRect *pRect);
static HWND m_hWndAccExtForm;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BASEDIALOG_H__D7969408_B0EF_4D5C_9730_72418D45BA57__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -