19 styles::SeparateWindowStyles(maximize, minimize),
70 SendMessageW(
handle, WM_SETICON, ICON_BIG,
reinterpret_cast<LPARAM
>(
largeIcon));
91 SendMessageW(
handle, WM_SETICON, ICON_SMALL,
reinterpret_cast<LPARAM
>(
smallIcon));
96 using json::utility::jsonObject;
const std::wstring windowName
virtual json::JSONBuilder getStructure() const override
void enableResize()
Enable resize button and window resizing.
virtual ~BaseSeparateWindow()
void disableResize()
Disable resize button and window resizing.
std::filesystem::path pathToLargeIcon
void setSmallIcon(const std::filesystem::path &pathToSmallIcon)
Set small icon(16x16) for specific window.
BaseSeparateWindow(const std::wstring &className, const std::wstring &titleName, const utility::ComponentSettings &settings, const std::string &windowFunctionName, bool maximize=false, bool minimize=false, const std::string &moduleName="", uint16_t smallIconResource=NULL, uint16_t largeIconResource=NULL)
void setLargeIcon(const std::filesystem::path &pathToLargeIcon)
Set large icon(32x32) for specific window.
std::filesystem::path pathToSmallIcon
Base class for composite windows.
virtual json::JSONBuilder getStructure() const override
Throws by asset finding methods.
std::string onCloseFunctionName
std::string onCloseFunctionModuleName
const uint16_t largeIconHeight
const uint16_t smallIconWidth
const uint16_t smallIconHeight
const uint16_t largeIconWidth
string getStringFromRawPath(const filesystem::path &pathFromRawString)
void removeStyle(HWND handle, LONG_PTR styleToRemove)
Remove WinAPI style.
void appendStyle(HWND handle, LONG_PTR newStyle)
Append WinAPI style.
string to_string(wstring_view stringToConvert, uint32_t codepage)
All settings for windows.