release
This commit is contained in:
16
ultimateteknotool.v2/HFont_Wrapper.h
Normal file
16
ultimateteknotool.v2/HFont_Wrapper.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <windows.h>
|
||||
class HFont_Wrapper
|
||||
{
|
||||
private:
|
||||
HFONT font;
|
||||
public:
|
||||
HFont_Wrapper() { font = 0; }
|
||||
void HFONT_Wrap(HFONT vfont) { font = vfont; }
|
||||
const HFONT& GetFont() { return this->font; }
|
||||
~HFont_Wrapper()
|
||||
{
|
||||
::DeleteObject(this->font);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user