📄 paramwnd.h
字号:
#if !defined(AFX_PARAMWND_H__0060EE72_395C_4564_B1F2_CD35ED5CCAFA__INCLUDED_)
#define AFX_PARAMWND_H__0060EE72_395C_4564_B1F2_CD35ED5CCAFA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ParamWnd.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CParamWnd window
#define EDIT_INSERTTEXT 0
#define EDIT_DELETETEXT 1
#define EDIT_BACKSPACE 2
#define EDIT_PASTE 3
#define ARROW_DOWN 4
#define ARROW_LEFT 5
#define ARROW_UP 6
#define ARROW_RIGHT 7
#define DELIMITER 8
#include "Popup.h"
class CParamWnd : public CStatic
{
LPCTSTR m_szpData;
CFont* m_pCurFont;
CBrush m_brBackground;
struct ParamBlock{int x,y,cx,cy;};
struct Func{CString strName;CArray<CString,CString>arParams;};
CArray<ParamBlock*,ParamBlock*> arParams;
CArray<Func*,Func*> arFuncs;
ParamBlock *m_pCurParam;
int m_nParamCount,m_nDelimiterCount;
// Construction
public:
CParamWnd();
void OnEdit(UINT nOpCode,CPoint pCursorPos,CString strText = _T(""));
void OnArrowMove(UINT nOpCode,CPoint pCursorPos);
ParamBlock* GetParam(CPoint pt);
// Attributes
public:
// Operations
public:
class XPopupCtrlEvent : public IPopupCtrlEvent
{
public:
virtual bool OnInit ();
virtual void OnShow ();
virtual void OnHide (bool bAbort);
virtual int OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags);
virtual int OnLButtonDown (UINT nFlags, CPoint point);
virtual int OnLButtonDblClk(UINT nFlags,CPoint point);
virtual int OnLButtonUp (UINT nFlags, CPoint point);
virtual IPopupCtrlEvent* GetInterfaceOf (HWND hWnd);
} m_xPopupCtrlEvent;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CParamWnd)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CParamWnd();
// Generated message map functions
protected:
//{{AFX_MSG(CParamWnd)
afx_msg void OnPaint();
afx_msg void OnNcPaint();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PARAMWND_H__0060EE72_395C_4564_B1F2_CD35ED5CCAFA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -