GridDefaultCell.h
资源名称:MyStock.rar [点击查看]
上传用户:wenjimin
上传日期:2014-08-12
资源大小:111k
文件大小:1k
源码类别:
金融证券系统
开发平台:
Visual C++
- // GridDefaultCell.h: interface for the CGridDefaultCell class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GRIDDEFAULTCELL_H__768A7057_3D28_11D8_B617_A69FB0BE0671__INCLUDED_)
- #define AFX_GRIDDEFAULTCELL_H__768A7057_3D28_11D8_B617_A69FB0BE0671__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "GridCell.h"
- class CGridDefaultCell : public CGridCell
- {
- DECLARE_DYNCREATE(CGridDefaultCell)
- public:
- CGridDefaultCell();
- virtual ~CGridDefaultCell();
- public:
- virtual int GetWidth() const { return m_Size.cx; }
- virtual int GetHeight() const { return m_Size.cy; }
- virtual void SetWidth(int nWidth) { m_Size.cx = nWidth; }
- virtual void SetHeight(int nHeight) { m_Size.cy = nHeight; }
- virtual void SetFont(const LOGFONT* /*plf*/);
- virtual LOGFONT* GetFont() const;
- protected:
- CSize m_Size; // Default Size
- CFont m_Font; // Cached font
- DWORD m_dwStyle; // Cell Style - unused
- };
- #endif // !defined(AFX_GRIDDEFAULTCELL_H__768A7057_3D28_11D8_B617_A69FB0BE0671__INCLUDED_)