⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myctrlbar.h

📁 动态图形显示程序源码
💻 H
字号:
// myCtrlBar.h: interface for the CmyCtrlBar class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYCTRLBAR_H__51661A81_6BBB_11D5_9715_DBE2372AE153__INCLUDED_)
#define AFX_MYCTRLBAR_H__51661A81_6BBB_11D5_9715_DBE2372AE153__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DspCtlDoc.h"
#define WM_MYMESSAGE WM_USER+10

#include "AnimateBtn.h"

class  CMyCtrlBar : public CControlBar
{
	DECLARE_DYNAMIC(CMyCtrlBar)

// Construction
public:
	CMyCtrlBar();

// Attributes
protected:
	BOOL		 m_bInRecalcNC;
    BOOL         m_bTracking;
    UINT         m_cxEdge;
    UINT         m_nDockBarID;
    CSize        m_sizeMin;
    CSize        m_sizeHorz;
    CSize        m_sizeVert;
    CSize        m_sizeFloat;
    CRect        m_rectBorder;
    CRect        m_rectTracker;
    CPoint       m_ptOld;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyCtrlBar)
	public:
	virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);
	virtual BOOL Create(CWnd* pParentWnd, UINT nID, LPCTSTR lpszWindowName , CSize sizeDefault , DWORD dwStyle);
    virtual CSize CalcFixedLayout( BOOL bStretch, BOOL bHorz );
    virtual CSize CalcDynamicLayout( int nLength, DWORD dwMode );
	virtual BOOL IsFloating();
	//}}AFX_VIRTUAL

// Implementation
public:
	void FormatList(CString * csText);
	void BuildColum(int nCols, int * nWidth, int * iCol);
	void ReDrawTree(CDspCtlDoc *pDoc);
	LRESULT CMyCtrlBar::OnDeal(CDspCtlDoc* pDoc,LPARAM lparam);

//	TVITEM tvitem;
//	CMyTreeCtrl *treectrl;
//	CEdit * ed;
	CAnimateBtn * btn;
	CListCtrl * lstctrl;

	BOOL IsHorzDocked() const;
	BOOL IsVertDocked() const;
	
	void OnInvertTracker(const CRect& rect);
	void StopTracking(BOOL bAccept);
	void StartTracking();
	CPoint& ClientToWnd(CPoint& point);
	virtual ~CMyCtrlBar();

// Generated message map functions
protected:
	//{{AFX_MSG(CMyCtrlBar)
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
	afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
	afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
	afx_msg void OnNcPaint();
	afx_msg UINT OnNcHitTest(CPoint point);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:



};

#endif // !defined(AFX_MYCTRLBAR_H__51661A81_6BBB_11D5_9715_DBE2372AE153__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -