forked from soui-demo/SouiEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SDesignerRoot.cpp
55 lines (39 loc) · 1.01 KB
/
SDesignerRoot.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include "stdafx.h"
#include "SDesignerRoot.h"
long g_nUIElmIndex = 0;
namespace SOUI{
SUIWindow::SUIWindow(void)
{
}
/*SWindow * SUIWindow::CreateChild(LPCWSTR classname)
{
SStringT wndClassname = classname;
if (wndClassname.CompareNoCase(_T("realwnd")) == 0)
wndClassname = _T("ui_window");
SWindow *pChild = SApplication::getSingleton().CreateWindowByName(wndClassname);
if (!pChild)
{
pChild = SApplication::getSingleton().CreateWindowByName(_T("ui_window"));
}
if (pChild)
{
pChild->SetUserData((ULONG_PTR)(GetUIElmIndex()));
}
return pChild;
}*/
//////////////////////////////////////////////////////////////////////////
SDesignerRoot::SDesignerRoot(void)
{
}
SDesignerRoot::~SDesignerRoot(void)
{
}
void SDesignerRoot::BeforePaint(IRenderTarget *pRT, SPainter &painter)
{
pRT->SelectObject(m_defFont,(IRenderObj**)&painter.oldFont);
}
void SDesignerRoot::AfterPaint(IRenderTarget *pRT, SPainter &painter)
{
pRT->SelectObject(painter.oldFont);
}
}