diff options
Diffstat (limited to 'plugins/mTextControl/src/textcontrol.cpp')
-rw-r--r-- | plugins/mTextControl/src/textcontrol.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/mTextControl/src/textcontrol.cpp b/plugins/mTextControl/src/textcontrol.cpp index a033bb1799..a9f3263794 100644 --- a/plugins/mTextControl/src/textcontrol.cpp +++ b/plugins/mTextControl/src/textcontrol.cpp @@ -32,19 +32,14 @@ struct TextControlData void MTextControl_RegisterClass()
{
- WNDCLASSEX wcl;
+ WNDCLASSEX wcl = {};
wcl.cbSize = sizeof(wcl);
wcl.lpfnWndProc = MTextControlWndProc;
wcl.style = CS_GLOBALCLASS;
- wcl.cbClsExtra = 0;
- wcl.cbWndExtra = 0;
wcl.hInstance = g_plugin.getInst();
- wcl.hIcon = nullptr;
wcl.hCursor = LoadCursor(nullptr, IDC_ARROW);
wcl.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
- wcl.lpszMenuName = nullptr;
- wcl.lpszClassName = MODULNAMEW;
- wcl.hIconSm = nullptr;
+ wcl.lpszClassName = L"MTextControl";
RegisterClassEx(&wcl);
}
|