diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-05 12:52:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-05 12:52:30 +0000 |
commit | 3576b67db9fa0a3d8d5c1747cc3560504d31d125 (patch) | |
tree | f6a6cb9916cbf1aab83bac572fec8822f6ad065e /plugins/HistoryStats/src/dlgoption_subbase.cpp | |
parent | 73e6231455372205e912963083624aaa371bab0b (diff) |
- adaptation for standard Windows ways of handling Unicode;
- obsoleted code removed;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@8407 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/dlgoption_subbase.cpp')
-rw-r--r-- | plugins/HistoryStats/src/dlgoption_subbase.cpp | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/plugins/HistoryStats/src/dlgoption_subbase.cpp b/plugins/HistoryStats/src/dlgoption_subbase.cpp index 921195d4c9..2b9a3935e8 100644 --- a/plugins/HistoryStats/src/dlgoption_subbase.cpp +++ b/plugins/HistoryStats/src/dlgoption_subbase.cpp @@ -11,28 +11,27 @@ INT_PTR CALLBACK DlgOption::SubBase::staticDlgProc(HWND hDlg, UINT msg, WPARAM w {
SubBase* pDlg = reinterpret_cast<SubBase*>(GetWindowLong(hDlg, DWLP_USER));
- switch (msg)
- {
- case WM_INITDIALOG:
- pDlg = reinterpret_cast<SubBase*>(lParam);
- SetWindowLong(hDlg, DWLP_USER, reinterpret_cast<LONG>(pDlg));
- pDlg->m_hWnd = hDlg;
- pDlg->onWMInitDialog();
- pDlg->loadSettings();
- return TRUE;
+ switch (msg) {
+ case WM_INITDIALOG:
+ pDlg = reinterpret_cast<SubBase*>(lParam);
+ SetWindowLong(hDlg, DWLP_USER, reinterpret_cast<LONG>(pDlg));
+ pDlg->m_hWnd = hDlg;
+ pDlg->onWMInitDialog();
+ pDlg->loadSettings();
+ return TRUE;
- case WM_DESTROY:
- pDlg->onWMDestroy();
- delete pDlg;
- SetWindowLong(hDlg, DWLP_USER, 0);
- return TRUE;
+ case WM_DESTROY:
+ pDlg->onWMDestroy();
+ delete pDlg;
+ SetWindowLong(hDlg, DWLP_USER, 0);
+ return TRUE;
}
return pDlg ? pDlg->handleMsg(msg, wParam, lParam) : FALSE;
}
-DlgOption::SubBase::SubBase()
- : m_pParent(NULL), m_hWnd(NULL)
+DlgOption::SubBase::SubBase() :
+ m_pParent(NULL), m_hWnd(NULL)
{
}
@@ -61,8 +60,7 @@ void DlgOption::SubBase::createWindow(DlgOption* pParent, WORD nDlgResource, con void DlgOption::SubBase::destroyWindow()
{
- if (m_hWnd)
- {
+ if (m_hWnd) {
DestroyWindow(m_hWnd);
// exit NOW since we destroyed ourselves
|