scbarg.h

来自「用bcg库编写的java IDE 源码」· C头文件 代码 · 共 119 行

H
119
字号
/////////////////////////////////////////////////////////////////////////
//
// CSizingControlBarG           Version 2.43
//
// Created: Jan 24, 1998        Last Modified: August 03, 2000
//
// See the official site at www.datamekanix.com for documentation and
// the latest news.
//
/////////////////////////////////////////////////////////////////////////
// Copyright (C) 1998-2000 by Cristi Posea. All rights reserved.
//
// This code is free for personal and commercial use, providing this 
// notice remains intact in the source files and all eventual changes are
// clearly marked with comments.
//
// You must obtain the author's consent before you can include this code
// in a software library.
//
// No warrantee of any kind, express or implied, is included with this
// software; use at your own risk, responsibility for damages (if any) to
// anyone resulting from the use of this software rests entirely with the
// user.
//
// Send bug reports, bug fixes, enhancements, requests, flames, etc. to
// cristi@datamekanix.com or post them at the message board at the site.
/////////////////////////////////////////////////////////////////////////

#if !defined(__SCBARG_H__)
#define __SCBARG_H__

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

/////////////////////////////////////////////////////////////////////////
// CSCBButton (button info) helper class
/*
class CSCBButton
{
public:
    CSCBButton();

    void Move(CPoint ptTo,BOOL bH) {ptOrg = ptTo;bHoriz = bH; };
    CRect GetRect() { return CRect(ptOrg, CSize(10, 10)); };
	CRect GetRrect(){return CRect(CPoint(ptOrg.x-15,ptOrg.y),CSize(10,10));
	}
    void Paint(CDC* pDC);
    void DrawBtnUp(CDC* pDC);
	void DrawBtnDown(CDC* pDC);
	void DrawRBtn(CDC* pDC);
    BOOL    bPushed;
    BOOL    bRaised;
	BOOL    bRPushed;
	BOOL    bHoriz;

protected:
    CPoint  ptOrg;
};
*/
/////////////////////////////////////////////////////////////////////////
// CSizingControlBar control bar
#include "BCGSizingControlBar.h"
#ifndef baseCSizingControlBarG
#define baseCSizingControlBarG CBCGSizingControlBar
#endif

class CSizingControlBarG : public baseCSizingControlBarG
{
    DECLARE_DYNAMIC(CSizingControlBarG);

// Construction
public:
    CSizingControlBarG();

// Attributes
public:
    virtual BOOL HasGripper() const;

// Operations
public:

// Overridables
    virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);

// Overrides
public:
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CSizingControlBarG)
    //}}AFX_VIRTUAL

// Implementation
public:
    virtual ~CSizingControlBarG();
    afx_msg LRESULT OnSetText(WPARAM wParam, LPARAM lParam);
protected:
    // implementation helpers
    virtual void NcPaintGripper(CDC* pDC, CRect rcClient);
    virtual void NcCalcClient(LPRECT pRc, UINT nDockBarID);

protected:
    int     m_cyGripper;

    //CSCBButton m_biHide;
	//CSCBButton m_biRoll;

// Generated message map functions
protected:
    //{{AFX_MSG(CSizingControlBarG)
    afx_msg UINT OnNcHitTest(CPoint point);
    afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
    //}}AFX_MSG
    
    DECLARE_MESSAGE_MAP()
};

#endif // !defined(__SCBARG_H__)

⌨️ 快捷键说明

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