用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
676 B

5 months ago
#pragma once
namespace SOUI
{
class SOUI_EXP SMemDC
{
public:
SMemDC();
SMemDC(HDC hdc, const CRect & rc);
SMemDC(HDC hdc, HBITMAP hBmp);
~SMemDC(void);
HBITMAP SelectBitmap(HBITMAP hBmp);
BOOL HasBitmap()
{
return m_bHasBitmap;
}
void SetBitmapOwner(BOOL bOwner)
{
m_bBmpOwner=bOwner;
}
BOOL IsBitmapOwner(){return m_bBmpOwner;}
void DeleteDC();
BOOL InitDC(HDC hdc,const CRect &rc);
operator HDC() const
{
return m_hDC;
}
protected:
HDC m_hDC;
HBITMAP m_hOldBmp;
BOOL m_bBmpOwner;
BOOL m_bHasBitmap;
};
}//namespace SOUI