diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-05 23:17:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-05 23:17:49 +0300 |
commit | e5e268f1267ac0a16303081f1532fa1597911887 (patch) | |
tree | 1cd593db774c2a83e917e2450f6f33d289e4d9dd /plugins/Ping | |
parent | 0b76f598f879aba590c11496d4266ae02d087bde (diff) |
fixes #1448 (translated frame names in database)
Diffstat (limited to 'plugins/Ping')
-rw-r--r-- | plugins/Ping/src/pingthread.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Ping/src/pingthread.cpp b/plugins/Ping/src/pingthread.cpp index 3673f7e4a2..fa4b172eb2 100644 --- a/plugins/Ping/src/pingthread.cpp +++ b/plugins/Ping/src/pingthread.cpp @@ -862,15 +862,14 @@ void InitList() hpwnd = CreateWindow(_A2W(MODULENAME) L"WindowClass", L"Ping", (WS_BORDER | WS_CHILD | WS_CLIPCHILDREN), 0, 0, 0, 0, hwnd_clist, nullptr, g_plugin.getInst(), nullptr);
CLISTFrame frame = { 0 };
- frame.name = MODULENAME;
frame.cbSize = sizeof(CLISTFrame);
+ frame.szName.a = MODULENAME;
+ frame.szTBname.a = LPGEN("Ping");
frame.hWnd = hpwnd;
frame.align = alBottom;
frame.Flags = F_VISIBLE | F_SHOWTB | F_SHOWTBTIP;
frame.height = 30;
- frame.TBname = Translate("Ping");
-
- frame_id = CallService(MS_CLIST_FRAMES_ADDFRAME, (WPARAM)&frame, 0);
+ frame_id = g_plugin.addFrame(&frame);
}
else {
hpwnd = CreateWindowEx(WS_EX_TOOLWINDOW, _A2W(MODULENAME) L"WindowClass", L"Ping",
|