?? afxcmn.h
字號(hào):
//{{AFX_MSG(CTreeCtrl)
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CSpinButtonCtrl
class CSpinButtonCtrl : public CWnd
{
DECLARE_DYNAMIC(CSpinButtonCtrl)
// Constructors
public:
CSpinButtonCtrl();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
// Attributes
BOOL SetAccel(int nAccel, UDACCEL* pAccel);
UINT GetAccel(int nAccel, UDACCEL* pAccel) const;
int SetBase(int nBase);
UINT GetBase() const;
CWnd* SetBuddy(CWnd* pWndBuddy);
CWnd* GetBuddy() const;
int SetPos(int nPos);
int GetPos() const;
void SetRange(int nLower, int nUpper);
void SetRange32(int nLower, int nUpper);
DWORD GetRange() const;
void GetRange(int &lower, int& upper) const;
void GetRange32(int &lower, int& upper) const;
// Implementation
public:
virtual ~CSpinButtonCtrl();
};
/////////////////////////////////////////////////////////////////////////////
// CSliderCtrl
class CSliderCtrl : public CWnd
{
DECLARE_DYNAMIC(CSliderCtrl)
// Constructors
public:
CSliderCtrl();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
// Attributes
int GetLineSize() const;
int SetLineSize(int nSize);
int GetPageSize() const;
int SetPageSize(int nSize);
int GetRangeMax() const;
int GetRangeMin() const;
void GetRange(int& nMin, int& nMax) const;
void SetRangeMin(int nMin, BOOL bRedraw = FALSE);
void SetRangeMax(int nMax, BOOL bRedraw = FALSE);
void SetRange(int nMin, int nMax, BOOL bRedraw = FALSE);
void GetSelection(int& nMin, int& nMax) const;
void SetSelection(int nMin, int nMax);
void GetChannelRect(LPRECT lprc) const;
void GetThumbRect(LPRECT lprc) const;
int GetPos() const;
void SetPos(int nPos);
UINT GetNumTics() const;
DWORD* GetTicArray() const;
int GetTic(int nTic) const;
int GetTicPos(int nTic) const;
BOOL SetTic(int nTic);
void SetTicFreq(int nFreq);
CWnd* GetBuddy(BOOL fLocation = TRUE) const;
CWnd* SetBuddy(CWnd* pWndBuddy, BOOL fLocation = TRUE);
CToolTipCtrl* GetToolTips() const;
void SetToolTips(CToolTipCtrl* pWndTip);
int SetTipSide(int nLocation);
// Operations
void ClearSel(BOOL bRedraw = FALSE);
void VerifyPos();
void ClearTics(BOOL bRedraw = FALSE);
// Implementation
public:
virtual ~CSliderCtrl();
};
/////////////////////////////////////////////////////////////////////////////
// CProgressCtrl
class CProgressCtrl : public CWnd
{
DECLARE_DYNAMIC(CProgressCtrl)
// Constructors
public:
CProgressCtrl();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
// Attributes
void SetRange(short nLower, short nUpper);
void SetRange32(int nLower, int nUpper);
void GetRange(int& nLower, int& nUpper);
int GetPos();
int SetPos(int nPos);
int OffsetPos(int nPos);
int SetStep(int nStep);
// Operations
int StepIt();
// Implementation
public:
virtual ~CProgressCtrl();
};
/////////////////////////////////////////////////////////////////////////////
// CComboBoxEx
class CComboBoxEx : public CComboBox
{
DECLARE_DYNAMIC(CComboBoxEx)
// Constructors
public:
CComboBoxEx();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
// Operations
int DeleteItem(int iIndex);
BOOL GetItem(COMBOBOXEXITEM* pCBItem);
int InsertItem(const COMBOBOXEXITEM* pCBItem);
BOOL SetItem(const COMBOBOXEXITEM* pCBItem);
// Attributes
BOOL HasEditChanged();
DWORD GetExtendedStyle() const;
DWORD SetExtendedStyle(DWORD dwExMask, DWORD dwExStyles);
CEdit* GetEditCtrl();
CComboBox* GetComboBoxCtrl();
CImageList* GetImageList() const;
CImageList* SetImageList(CImageList* pImageList);
// These functions are supported by the Windows ComboBox control,
// but not supported by the Windows ComboBoxEx control.
int Dir(UINT attr, LPCTSTR lpszWildCard);
int FindString(int nIndexStart, LPCTSTR lpszFind) const;
int AddString(LPCTSTR lpszString);
BOOL SetEditSel(int nStartChar, int nEndChar);
int InsertString(int nIndex, LPCTSTR lpszString);
// Implementation
public:
virtual ~CComboBoxEx();
};
/////////////////////////////////////////////////////////////////////////////
// CHeaderCtrl
class CHeaderCtrl : public CWnd
{
DECLARE_DYNAMIC(CHeaderCtrl)
// Constructors
public:
CHeaderCtrl();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
// Attributes
int GetItemCount() const;
BOOL GetItem(int nPos, HDITEM* pHeaderItem) const;
BOOL SetItem(int nPos, HDITEM* pHeaderItem);
CImageList* GetImageList() const;
CImageList* SetImageList(CImageList* pImageList);
BOOL GetItemRect(int nIndex, LPRECT lpRect) const;
BOOL GetOrderArray(LPINT piArray, int iCount = -1);
BOOL SetOrderArray(int iCount, LPINT piArray);
int OrderToIndex(int nOrder) const;
// Operations
int InsertItem(int nPos, HDITEM* phdi);
BOOL DeleteItem(int nPos);
BOOL Layout(HDLAYOUT* pHeaderLayout);
CImageList* CreateDragImage(int nIndex);
int SetHotDivider(CPoint pt);
int SetHotDivider(int nIndex);
// Overridables
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
// Implementation
public:
virtual ~CHeaderCtrl();
protected:
virtual BOOL OnChildNotify(UINT, WPARAM, LPARAM, LRESULT*);
};
/////////////////////////////////////////////////////////////////////////////
// CHotKeyCtrl
class CHotKeyCtrl : public CWnd
{
DECLARE_DYNAMIC(CHotKeyCtrl)
// Constructors
public:
CHotKeyCtrl();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
// Attributes
void SetHotKey(WORD wVirtualKeyCode, WORD wModifiers);
DWORD GetHotKey() const;
void GetHotKey(WORD &wVirtualKeyCode, WORD &wModifiers) const;
// Operations
void SetRules(WORD wInvalidComb, WORD wModifiers);
// Implementation
public:
virtual ~CHotKeyCtrl();
};
/////////////////////////////////////////////////////////////////////////////
// CToolTipCtrl
class CToolTipCtrl : public CWnd
{
DECLARE_DYNAMIC(CToolTipCtrl)
// Constructors
public:
CToolTipCtrl();
BOOL Create(CWnd* pParentWnd, DWORD dwStyle = 0);
// Attributes
void GetText(CString& str, CWnd* pWnd, UINT nIDTool = 0) const;
BOOL GetToolInfo(CToolInfo& ToolInfo, CWnd* pWnd, UINT nIDTool = 0) const;
void SetToolInfo(LPTOOLINFO lpToolInfo);
void SetToolRect(CWnd* pWnd, UINT nIDTool, LPCRECT lpRect);
int GetToolCount() const;
int GetDelayTime(DWORD dwDuration) const;
void SetDelayTime(DWORD dwDuration, int iTime);
void GetMargin(LPRECT lprc) const;
void SetMargin(LPRECT lprc);
int GetMaxTipWidth() const;
int SetMaxTipWidth(int iWidth);
COLORREF GetTipBkColor() const;
void SetTipBkColor(COLORREF clr);
COLORREF GetTipTextColor() const;
void SetTipTextColor(COLORREF clr);
// Operations
void Activate(BOOL bActivate);
BOOL AddTool(CWnd* pWnd, UINT nIDText, LPCRECT lpRectTool = NULL,
UINT nIDTool = 0);
BOOL AddTool(CWnd* pWnd, LPCTSTR lpszText = LPSTR_TEXTCALLBACK,
LPCRECT lpRectTool = NULL, UINT nIDTool = 0);
void DelTool(CWnd* pWnd, UINT nIDTool = 0);
BOOL HitTest(CWnd* pWnd, CPoint pt, LPTOOLINFO lpToolInfo) const;
void RelayEvent(LPMSG lpMsg);
void SetDelayTime(UINT nDelay);
void UpdateTipText(LPCTSTR lpszText, CWnd* pWnd, UINT nIDTool = 0);
void UpdateTipText(UINT nIDText, CWnd* pWnd, UINT nIDTool = 0);
void Update();
void Pop();
// Implementation
public:
void FillInToolInfo(TOOLINFO& ti, CWnd* pWnd, UINT nIDTool) const;
virtual ~CToolTipCtrl();
#ifndef _AFXDLL
virtual BOOL DestroyToolTipCtrl();
#else
BOOL DestroyToolTipCtrl();
#endif
protected:
//{{AFX_MSG(CToolTipCtrl)
afx_msg LRESULT OnDisableModal(WPARAM, LPARAM);
afx_msg LRESULT OnWindowFromPoint(WPARAM, LPARAM);
afx_msg LRESULT OnAddTool(WPARAM, LPARAM);
afx_msg void OnEnable(BOOL bEnable);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
CMapStringToPtr m_mapString;
friend class CWnd;
friend class CToolBar;
};
/////////////////////////////////////////////////////////////////////////////
// CTabCtrl
class CTabCtrl : public CWnd
{
DECLARE_DYNAMIC(CTabCtrl)
// Constructors
public:
CTabCtrl();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
// Attributes
CImageList* GetImageList() const;
CImageList* SetImageList(CImageList* pImageList);
int GetItemCount() const;
BOOL GetItem(int nItem, TCITEM* pTabCtrlItem) const;
BOOL SetItem(int nItem, TCITEM* pTabCtrlItem);
BOOL SetItemExtra(int nBytes);
BOOL GetItemRect(int nItem, LPRECT lpRect) const;
int GetCurSel() const;
int SetCurSel(int nItem);
void SetCurFocus(int nItem);
CSize SetItemSize(CSize size);
void SetPadding(CSize size);
int GetRowCount() const;
CToolTipCtrl* GetToolTips() const;
void SetToolTips(CToolTipCtrl* pWndTip);
int GetCurFocus() const;
int SetMinTabWidth(int cx);
DWORD GetExtendedStyle();
DWORD SetExtendedStyle(DWORD dwNewStyle, DWORD dwExMask = 0);
DWORD GetItemState(int nItem, DWORD dwMask) const;
BOOL SetItemState(int nItem, DWORD dwMask, DWORD dwState);
// Operations
BOOL InsertItem(int nItem, TCITEM* pTabCtrlItem);
BOOL InsertItem(int nItem, LPCTSTR lpszItem);
BOOL InsertItem(int nItem, LPCTSTR lpszItem, int nImage);
BOOL InsertItem(UINT nMask, int nItem, LPCTSTR lpszItem,
int nImage, LPARAM lParam);
BOOL InsertItem(UINT nMask, int nItem, LPCTSTR lpszItem,
int nImage, LPARAM lParam, DWORD dwState, DWORD dwStateMask);
BOOL DeleteItem(int nItem);
BOOL DeleteAllItems();
void AdjustRect(BOOL bLarger, LPRECT lpRect);
void RemoveImage(int nImage);
int HitTest(TCHITTESTINFO* pHitTestInfo) const;
void DeselectAll(BOOL fExcludeFocus);
BOOL HighlightItem(int idItem, BOOL fHighlight = TRUE);
// Overridables
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
// Implementation
public:
virtual ~CTabCtrl();
protected:
virtual BOOL OnChildNotify(UINT, WPARAM, LPARAM, LRESULT*);
//{{AFX_MSG(CTabCtrl)
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CAnimateCtrl
class CAnimateCtrl : public CWnd
{
DECLARE_DYNAMIC(CAnimateCtrl)
// Constructors
public:
CAnimateCtrl();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
// Operations
BOOL Open(LPCTSTR lpszFileName);
BOOL Open(UINT nID);
BOOL Play(UINT nFrom, UINT nTo, UINT nRep);
BOOL Stop();
BOOL Close();
BOOL Seek(UINT nTo);
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -