From 5c05f91891c3c1b7a1ed1099f4e0f5e5fa1a1f0a Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 31 Jul 2023 23:26:34 +0200 Subject: [PATCH] Custom class name for SDK Launcher Something that could be searched up without clashes and pulled up front. --- r5dev/thirdparty/cppnet/cppkore/Form.cpp | 2 +- r5dev/thirdparty/cppnet/cppkore/Form.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/r5dev/thirdparty/cppnet/cppkore/Form.cpp b/r5dev/thirdparty/cppnet/cppkore/Form.cpp index 16f4858b..fc1d9c6f 100644 --- a/r5dev/thirdparty/cppnet/cppkore/Form.cpp +++ b/r5dev/thirdparty/cppnet/cppkore/Form.cpp @@ -556,7 +556,7 @@ namespace Forms { auto Cp = ContainerControl::GetCreateParams(); - Cp.ClassName = "APPWINDOW"; + Cp.ClassName = FORM_DEFAULT_CLASS_NAME; if (this->_Opacity < 255) Cp.ExStyle |= WS_EX_LAYERED; diff --git a/r5dev/thirdparty/cppnet/cppkore/Form.h b/r5dev/thirdparty/cppnet/cppkore/Form.h index 32d6f267..c7459818 100644 --- a/r5dev/thirdparty/cppnet/cppkore/Form.h +++ b/r5dev/thirdparty/cppnet/cppkore/Form.h @@ -15,6 +15,9 @@ #include "FormClosingEventArgs.h" #include "PaintFrameEventArgs.h" +// Default class name used for creating windows +#define FORM_DEFAULT_CLASS_NAME "SDKLauncher001" + namespace Forms { class Form : public ContainerControl