summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/dlgoption.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.cpp
parent650fc5a2103cedfe149500ade9c684ecf381d348 (diff)
HistoryLinkList, HistoryStats, historysweeperlight, httpserver, HwHotKeys: cmplugin adaptation
Diffstat (limited to 'plugins/HistoryStats/src/dlgoption.cpp')
-rw-r--r--plugins/HistoryStats/src/dlgoption.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/HistoryStats/src/dlgoption.cpp b/plugins/HistoryStats/src/dlgoption.cpp
index 07c9e3ac47..9a89cdf9c5 100644
--- a/plugins/HistoryStats/src/dlgoption.cpp
+++ b/plugins/HistoryStats/src/dlgoption.cpp
@@ -30,7 +30,7 @@ INT_PTR CALLBACK DlgOption::staticDlgProc(HWND hDlg, UINT msg, WPARAM, LPARAM lP
return TRUE;
case WM_NOTIFY:
- NMHDR* p = reinterpret_cast<NMHDR*>(lParam);
+ NMHDR * p = reinterpret_cast<NMHDR*>(lParam);
switch (p->idFrom) {
case 0:
if (p->code == PSN_APPLY)
@@ -109,7 +109,7 @@ void DlgOption::onWMInitDialog()
array_each_(i, pageBand)
{
- HICON hIcon = reinterpret_cast<HICON>(LoadImage(g_hInst, MAKEINTRESOURCE(pageBand[i].iconId), IMAGE_ICON, 32, 32, 0));
+ HICON hIcon = reinterpret_cast<HICON>(LoadImage(g_plugin.getInst(), MAKEINTRESOURCE(pageBand[i].iconId), IMAGE_ICON, 32, 32, 0));
DWORD dwFlags = 0;
dwFlags |= pageBand[i].bRight ? BandCtrl::BCF_RIGHT : 0;
@@ -159,8 +159,8 @@ void DlgOption::onRunStats()
{
if (m_bSettingsModified) {
int svar = MessageBox(m_hWnd,
- TranslateT("You have unsaved settings. Do you want to save before running HistoryStats?"),
- TranslateT("HistoryStats"), MB_YESNOCANCEL);
+ TranslateT("You have unsaved settings. Do you want to save before running HistoryStats?"),
+ TranslateT("HistoryStats"), MB_YESNOCANCEL);
if (svar == IDYES)
saveSettings();
@@ -168,7 +168,7 @@ void DlgOption::onRunStats()
return;
}
- Statistic::run(*g_pSettings, Statistic::fromOptions, g_hInst, m_hWnd);
+ Statistic::run(*g_pSettings, Statistic::fromOptions, g_plugin.getInst(), m_hWnd);
}
void DlgOption::onBandClicked(HANDLE hButton, INT_PTR dwData)