gridtreecell.h

来自「是一个GridTree的控件」· C头文件 代码 · 共 53 行

H
53
字号
/*****************************************************************************
    COPYRIGHT (C) 2000, Ken Bertelson <kenbertelson@hotmail.com>


*****************************************************************************/
#if !defined(AFX_GRIDTREECELL_H__97838AF2_EBD9_11D3_B75D_00C04F6A7AE6__INCLUDED_)
#define AFX_GRIDTREECELL_H__97838AF2_EBD9_11D3_B75D_00C04F6A7AE6__INCLUDED_

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

#include "GridTreeCellBase.h"

// Place these Grid Cells in a column in a grid to
//  create a tree control
class _GTC_EXT_CLASS CGridTreeCell : public CGridTreeCellBase
{
    DECLARE_DYNCREATE(CGridTreeCell)

// Construction/Destruction
public:
    CGridTreeCell();
    virtual ~CGridTreeCell();


// base Attributes
public:
    virtual void SetText(LPCTSTR szText) { m_strText = szText; }
    virtual LPCTSTR  GetText()      { return (m_strText.IsEmpty())? _T("") : m_strText; }

    virtual void Reset();

    virtual void operator=(CGridCellBase& cell)
    {
        CGridTreeCellBase::operator=( cell);
    }


// editing cells
public:
    BOOL Edit(int nRow, int nCol, CRect rect, CPoint /* point */, UINT nID, UINT nChar);
    void EndEdit();
protected:
    void OnEndEdit();

protected:
    CString  m_strText;     // Cell text (or binary data if you wish...)
};


#endif // !defined(AFX_GRIDTREECELL_H__97838AF2_EBD9_11D3_B75D_00C04F6A7AE6__INCLUDED_)

⌨️ 快捷键说明

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