📄 zgraphddb.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -