zgraphddb.h

来自「Symbian手机智能操作系统下的源码,图像查看软件,支持十几种图形格式.」· C头文件 代码 · 共 31 行

H
31
字号
#ifndef ZGRAPHDDB_H_HEADER_INCLUDED_C005A72E
#define ZGRAPHDDB_H_HEADER_INCLUDED_C005A72E

#include "windows.h"

class zGraphDDB
{
public:
    enum  { draw_normal, draw_center, draw_tile, draw_stretch, draw_stretchprop };

public:
    zGraphDDB();
    virtual ~zGraphDDB();
    bool Prepare(int &width, int &height);
    HBITMAP GetBitmap() const;
    bool CreateDDB(int width, int height, HDC hdc = NULL);
    bool Attach(HBITMAP hBmp);
    bool LoadBitmap(HINSTANCE hInst, int id);
    bool Draw(HDC hDC, int x0, int y0, int w, int h, DWORD rop, int opt = draw_normal);

    HDC		m_hMemDC;
    HBITMAP m_hBitmap;
protected:
    void ReleaseDDB();
    HBITMAP m_hOldBmp;
};



#endif /* ZGRAPHDDB_H_HEADER_INCLUDED_C005A72E */

⌨️ 快捷键说明

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