diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-16 20:48:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-16 20:48:09 +0300 |
commit | 91bf98433bfabfb2274511525b5be97d8e8d27f7 (patch) | |
tree | 71c0ece3bcad56671caa56f4e54e031b46359d0e /plugins/Scriver/src/utils.cpp | |
parent | 20cead9e5014a830b52d74ebdfb1833eda015777 (diff) |
Scriver -> CMPlugin
Diffstat (limited to 'plugins/Scriver/src/utils.cpp')
-rw-r--r-- | plugins/Scriver/src/utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp index b1585f00b5..2f304c321f 100644 --- a/plugins/Scriver/src/utils.cpp +++ b/plugins/Scriver/src/utils.cpp @@ -293,13 +293,13 @@ HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle, RECT *rec WS_POPUP | TTS_NOPREFIX,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
- hwndParent, nullptr, g_hInst, nullptr);
+ hwndParent, nullptr, g_plugin.getInst(), nullptr);
SetWindowPos(hwndTT, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
ti.cbSize = sizeof(TOOLINFO);
ti.uFlags = TTF_SUBCLASS | TTF_CENTERTIP;
ti.hwnd = hwndParent;
- ti.hinst = g_hInst;
+ ti.hinst = g_plugin.getInst();
ti.lpszText = ptszText;
ti.rect = *rect;
SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM)&ti);
@@ -310,7 +310,7 @@ HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle, RECT *rec void SetToolTipText(HWND hwndParent, HWND hwndTT, LPTSTR ptszText, LPTSTR ptszTitle)
{
TOOLINFO ti = { sizeof(ti) };
- ti.hinst = g_hInst;
+ ti.hinst = g_plugin.getInst();
ti.hwnd = hwndParent;
ti.lpszText = ptszText;
SendMessage(hwndTT, TTM_UPDATETIPTEXT, 0, (LPARAM)&ti);
@@ -320,7 +320,7 @@ void SetToolTipText(HWND hwndParent, HWND hwndTT, LPTSTR ptszText, LPTSTR ptszTi void SetToolTipRect(HWND hwndParent, HWND hwndTT, RECT *rect)
{
TOOLINFO ti = { sizeof(ti) };
- ti.hinst = g_hInst;
+ ti.hinst = g_plugin.getInst();
ti.hwnd = hwndParent;
ti.rect = *rect;
SendMessage(hwndTT, TTM_NEWTOOLRECT, 0, (LPARAM)&ti);
|