GUIFramework
1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
INonResizableComponent.cpp
Go to the documentation of this file.
1
#include "
INonResizableComponent.h
"
2
3
#include "
Utility/Utility.h
"
4
5
#include "
Exceptions/NotImplemented.h
"
6
7
using namespace
std;
8
9
namespace
gui_framework
10
{
11
namespace
interfaces
12
{
13
INonResizableComponent::INonResizableComponent
(HWND nonResizableHandle) :
14
nonResizableHandle(nonResizableHandle)
15
{
16
utility::removeStyle
(nonResizableHandle, WS_THICKFRAME);
17
18
utility::removeStyle
(nonResizableHandle, WS_MAXIMIZEBOX);
19
}
20
21
void
INonResizableComponent::resize
(uint16_t width, uint16_t height)
22
{
23
__utility::throwNotImplementedException
(__FUNCTION__,
"INonResizableComponent"
sv);
24
}
25
}
26
}
INonResizableComponent.h
NotImplemented.h
Utility.h
gui_framework::interfaces::INonResizableComponent::INonResizableComponent
INonResizableComponent(HWND nonResizableHandle)
Definition
INonResizableComponent.cpp:13
gui_framework::interfaces::INonResizableComponent::resize
virtual void resize(uint16_t width, uint16_t height) final
Reserve resize function.
Definition
INonResizableComponent.cpp:21
gui_framework::__utility::throwNotImplementedException
void throwNotImplementedException(string_view methodName, string_view className)
Definition
Utility.cpp:186
gui_framework::utility::removeStyle
void removeStyle(HWND handle, LONG_PTR styleToRemove)
Remove WinAPI style.
Definition
Utility.cpp:31
gui_framework
Definition
BaseComponent.cpp:21
GUIFramework
src
Interfaces
Components
INonResizableComponent.cpp
Generated by
1.12.0