-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathSpecialGUIItems.cpp
More file actions
32 lines (24 loc) · 821 Bytes
/
SpecialGUIItems.cpp
File metadata and controls
32 lines (24 loc) · 821 Bytes
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
#include "SpecialGUIItems.h"
ClickThroughButton::ClickThroughButton( CWBItem* Parent, const CRect& Pos, const TCHAR* txt /*= _T( "" ) */ ) : CWBButton( Parent, Pos, txt )
{
}
ClickThroughButton::~ClickThroughButton()
{
}
TBOOL ClickThroughButton::Initialize( CWBItem* Parent, const CRect& Position, const TCHAR* txt /*= _T( "" ) */ )
{
return CWBButton::Initialize( Parent, Position, txt );
}
CWBItem* ClickThroughButton::Factory( CWBItem* Root, CXMLNode& node, CRect& Pos )
{
ClickThroughButton* button = new ClickThroughButton( Root, Pos );
if ( node.HasAttribute( _T( "text" ) ) )
button->SetText( node.GetAttribute( _T( "text" ) ) );
if ( node.HasAttribute( _T( "hidden" ) ) )
{
TS32 x = 0;
node.GetAttributeAsInteger( _T( "hidden" ), &x );
button->Hide( x );
}
return button;
}