summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-31 12:57:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-31 12:57:28 +0300
commit6699ce4d4d565c7812bf48490ab336987d146ea0 (patch)
tree67a06776ef043d58962348706ce60601dd9384b7
parent6e5ca415c19d8c2f550acb8f62810a8867253712 (diff)
minor code cleaning
-rw-r--r--plugins/DbEditorPP/src/main_window.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/DbEditorPP/src/main_window.cpp b/plugins/DbEditorPP/src/main_window.cpp
index 6d15bad4dd..a83e35c4a8 100644
--- a/plugins/DbEditorPP/src/main_window.cpp
+++ b/plugins/DbEditorPP/src/main_window.cpp
@@ -12,9 +12,6 @@ CMainDlg *g_pMainWindow = nullptr;
extern volatile BOOL populating, skipEnter;
extern volatile int Select;
-void EditFinish(int selected);
-void EditLabel(int item, int subitem);
-
static LRESULT CALLBACK ModuleTreeSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) {
@@ -26,7 +23,7 @@ static LRESULT CALLBACK ModuleTreeSubclassProc(HWND hwnd, UINT msg, WPARAM wPara
ScreenToClient(hwnd, &hti.pt);
if (TreeView_HitTest(hwnd, &hti)) {
- if (hti.flags&TVHT_ONITEM)
+ if (hti.flags & TVHT_ONITEM)
TreeView_SelectItem(hwnd, hti.hItem);
}
}
@@ -183,7 +180,7 @@ static ColumnsSettings csSettingList[] =
{ nullptr }
};
-bool CMainDlg::OnInitDialog()
+bool CMainDlg::OnInitDialog()
{
g_pMainWindow = this;
@@ -367,8 +364,6 @@ void CMainDlg::onChange_Splitter(CSplitter *)
int iMaxPanelWidth = rc.right - rc.left - 150;
if (m_splitterPos > iMaxPanelWidth)
m_splitterPos = iMaxPanelWidth;
-
- PostMessage(m_hwnd, WM_SIZE, 0, 0);
}
void CMainDlg::FindItem(int type, MCONTACT hContact, const char *szModule, const char *szSetting)
@@ -540,7 +535,7 @@ void CMainDlg::onItemExpand_Modules(CCtrlTreeView::TEventInfo *ev)
void CMainDlg::onSelChanged_Modules(CCtrlTreeView::TEventInfo *ev)
{
wchar_t text[FLD_SIZE];
-
+
TVITEMEX tvi = {};
tvi.mask = TVIF_HANDLE | TVIF_PARAM | TVIF_TEXT;
tvi.hItem = ev->nmtv->itemNew.hItem;