summaryrefslogtreecommitdiff
path: root/libs/mTextControl/src/textcontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/mTextControl/src/textcontrol.cpp')
-rw-r--r--libs/mTextControl/src/textcontrol.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/mTextControl/src/textcontrol.cpp b/libs/mTextControl/src/textcontrol.cpp
index fe4c70ea12..a7069ae88c 100644
--- a/libs/mTextControl/src/textcontrol.cpp
+++ b/libs/mTextControl/src/textcontrol.cpp
@@ -40,7 +40,12 @@ void MTextControl_RegisterClass()
wcl.hCursor = LoadCursor(nullptr, IDC_ARROW);
wcl.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
wcl.lpszClassName = L"MTextControl";
- RegisterClassEx(&wcl);
+ RegisterClassExW(&wcl);
+}
+
+void MTextControl_UnregisterClass()
+{
+ UnregisterClassW(L"MTextControl", g_hInst);
}
LRESULT CALLBACK MTextControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)