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

📄 util_mdc.h

📁 比较详尽的介绍了短信的发送与接收的实现模块与程序
💻 H
字号:

// util_mdc.h

#ifndef _INC_UTIL_MDC_
#define _INC_UTIL_MDC_



class GMemDC : public CDC
{
public:
   // create a memory dc
   BOOL Create(CDC *pDC,             // device from which to create compatible dc
               const RECT& rClient,  // client rectangle of window receiving paint message 
               CBrush *pBkBrush=NULL,// brush to paint background of memory DC, default is brush of 'pDC'
               const PAINTSTRUCT *pPS=NULL); // paint struct if 'pDC' is actually a CPaintDC
   
   // copy this memory dc to a dc
   BOOL Copy(CDC *pDC,              // device to copy memory dc to
             const RECT& rDraw,     // destination rectangle of 'pDC'
             const POINT *ppt=NULL);// top-left corner of mem dc
                                   
   // release the memory dc
   BOOL Release();                   

   // return the internal paint structure
   const PAINTSTRUCT *GetPaintStruct() const;

public:
   GMemDC();
   ~GMemDC();

private:
   PAINTSTRUCT m_ps;                 // copy of paint dc paint structure

   BOOL bPaintStructInitialized;     // internal paint structure is initialized 
   CBitmap *pOldBitmap;              // bitmap to restore when dc is released
   CBitmap Bitmap;                   // bitmap to select in create

   // privatize compiler gifts
   GMemDC( const GMemDC& );
   GMemDC& operator=( const GMemDC& );
};


#endif

⌨️ 快捷键说明

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