mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
24 lines
552 B
C++
24 lines
552 B
C++
|
#include "stdafx.h"
|
||
|
#include "UIXGroupBox.h"
|
||
|
#include "UIXTheme.h"
|
||
|
|
||
|
namespace UIX
|
||
|
{
|
||
|
UIXGroupBox::UIXGroupBox()
|
||
|
: GroupBox()
|
||
|
{
|
||
|
this->SetStyle(ControlStyles::AllPaintingInWmPaint | ControlStyles::UserPaint | ControlStyles::DoubleBuffer, true);
|
||
|
}
|
||
|
|
||
|
void UIXGroupBox::OnPaint(const std::unique_ptr<PaintEventArgs>& EventArgs)
|
||
|
{
|
||
|
auto State = UIX::UIXRenderState::Default;
|
||
|
auto Renderer = UIXTheme::GetRenderer();
|
||
|
|
||
|
if (!this->Enabled())
|
||
|
State = UIX::UIXRenderState::Disabled;
|
||
|
|
||
|
Renderer->RenderControlGroupBox(EventArgs, this, State);
|
||
|
}
|
||
|
}
|