summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/dlgoption_subglobal.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-05-16 22:58:35 +0300
committerMataes <mataes2007@gmail.com>2018-05-16 22:58:35 +0300
commit56239fcddd46400d812d83e38597d593b5c0356d (patch)
tree9e8d35c9a990c2ff6b687ca53065d0c5a4bd3ac1 /plugins/HistoryStats/src/dlgoption_subglobal.cpp
parent650fc5a2103cedfe149500ade9c684ecf381d348 (diff)
HistoryLinkList, HistoryStats, historysweeperlight, httpserver, HwHotKeys: cmplugin adaptation
Diffstat (limited to 'plugins/HistoryStats/src/dlgoption_subglobal.cpp')
-rw-r--r--plugins/HistoryStats/src/dlgoption_subglobal.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/HistoryStats/src/dlgoption_subglobal.cpp b/plugins/HistoryStats/src/dlgoption_subglobal.cpp
index 5f340c857e..0b3d16c9e3 100644
--- a/plugins/HistoryStats/src/dlgoption_subglobal.cpp
+++ b/plugins/HistoryStats/src/dlgoption_subglobal.cpp
@@ -14,7 +14,7 @@ INT_PTR CALLBACK DlgOption::SubGlobal::staticInfoProc(HWND hDlg, UINT msg, WPARA
TranslateDialogDefault(hDlg);
{
- SendMessage(hDlg, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_HISTORYSTATS))));
+ SendMessage(hDlg, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(LoadIcon(g_plugin.getInst(), MAKEINTRESOURCE(IDI_HISTORYSTATS))));
utils::centerDialog(hDlg);
@@ -165,7 +165,7 @@ BOOL DlgOption::SubGlobal::handleMsg(UINT msg, WPARAM wParam, LPARAM lParam)
break;
case WM_NOTIFY:
- NMHDR* p = reinterpret_cast<NMHDR*>(lParam);
+ NMHDR * p = reinterpret_cast<NMHDR*>(lParam);
if (p->idFrom == IDC_INFO) {
NMTREEVIEW* pNM = reinterpret_cast<NMTREEVIEW*>(lParam);
@@ -190,7 +190,7 @@ BOOL DlgOption::SubGlobal::handleMsg(UINT msg, WPARAM wParam, LPARAM lParam)
}
else if (p->code == TVN_ITEMEXPANDING) {
if (pNM->action == TVE_COLLAPSE || pNM->action == TVE_COLLAPSERESET ||
- (pNM->action == TVE_TOGGLE && pNM->itemNew.state & TVIS_EXPANDED)) {
+ (pNM->action == TVE_TOGGLE && pNM->itemNew.state & TVIS_EXPANDED)) {
SetWindowLongPtr(getHWnd(), DWLP_MSGRESULT, TRUE);
return TRUE;
}
@@ -387,5 +387,5 @@ void DlgOption::SubGlobal::toggleInfo()
void DlgOption::SubGlobal::onShowSupportInfo(const SupportInfo& info)
{
- DialogBoxParam(g_hInst, MAKEINTRESOURCE(IDD_SUPPORTINFO), getHWnd(), staticInfoProc, reinterpret_cast<LPARAM>(&info));
+ DialogBoxParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_SUPPORTINFO), getHWnd(), staticInfoProc, reinterpret_cast<LPARAM>(&info));
}