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

📄 dcclient.h

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        dcclient.h// Purpose:     wxClientDC class// Author:      David Webster// Modified by:// Created:     09/12/99// RCS-ID:      $Id: dcclient.h,v 1.13 2004/05/23 20:51:38 JS Exp $// Copyright:   (c) David Webster// Licence:     wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef _WX_DCCLIENT_H_#define _WX_DCCLIENT_H_// ----------------------------------------------------------------------------// headers// ----------------------------------------------------------------------------#include "wx/dc.h"#include "wx/dynarray.h"// ----------------------------------------------------------------------------// array types// ----------------------------------------------------------------------------// this one if used by wxPaintDC onlystruct WXDLLEXPORT wxPaintDCInfo;WX_DECLARE_OBJARRAY(wxPaintDCInfo, wxArrayDCInfo);// ----------------------------------------------------------------------------// DC classes// ----------------------------------------------------------------------------class WXDLLEXPORT wxWindowDC : public wxDC{public:    wxWindowDC();    //    // Create a DC corresponding to the whole window    //    wxWindowDC(wxWindow* pWin);protected:    void InitDC(void);    //    // Override some base class virtuals    //    virtual void DoGetSize( int* pWidth                           ,int* pHeight                          ) const;private:    SIZEL                   m_PageSize;    DECLARE_DYNAMIC_CLASS(wxWindowDC)}; // end of CLASS wxWindowDCclass WXDLLEXPORT wxClientDC : public wxWindowDC{public:    wxClientDC();    virtual ~wxClientDC();    wxClientDC(wxWindow *win);protected:    void InitDC(void);    //    // Override some base class virtuals    //    virtual void DoGetSize( int* pWidth                           ,int* pHeight                          ) const;private:    DECLARE_DYNAMIC_CLASS(wxClientDC)}; // end of CLASS wxClientDCclass WXDLLEXPORT wxPaintDC : public wxClientDC{public:    wxPaintDC();    // Create a DC corresponding for painting the window in OnPaint()    wxPaintDC(wxWindow* pWin);    virtual ~wxPaintDC();    // find the entry for this DC in the cache (keyed by the window)    static WXHDC FindDCInCache(wxWindow* pWin);protected:    static wxArrayDCInfo ms_cache;    // find the entry for this DC in the cache (keyed by the window)    wxPaintDCInfo* FindInCache(size_t* pIndex = NULL) const;private:    DECLARE_DYNAMIC_CLASS(wxPaintDC)}; // end of wxPaintDC#endif    // _WX_DCCLIENT_H_

⌨️ 快捷键说明

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