From 28d2449a2207fa8c3f959c8037afe6e869300101 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 21 Sep 2013 18:41:21 +0000 Subject: small cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/options/options.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/modules/options') diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp index 6f19035d1e..04daab9bb2 100644 --- a/src/modules/options/options.cpp +++ b/src/modules/options/options.cpp @@ -652,18 +652,14 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hdlg, UINT message, WPARAM wParam, L TCHAR *lastPage = NULL, *lastGroup = NULL, *lastTab = NULL; DBVARIANT dbv; - typedef BOOL (STDAPICALLTYPE *pfnGetComboBoxInfo)(HWND, PCOMBOBOXINFO); - pfnGetComboBoxInfo getComboBoxInfo = (pfnGetComboBoxInfo)GetProcAddress(GetModuleHandleA("user32"), "GetComboBoxInfo"); - if (getComboBoxInfo) { - COMBOBOXINFO cbi; - cbi.cbSize = sizeof(COMBOBOXINFO); - getComboBoxInfo( GetDlgItem(hdlg, IDC_KEYWORD_FILTER), &cbi); - mir_subclassWindow(cbi.hwndItem, OptionsFilterSubclassProc); - - if (IsAeroMode()) { - mir_subclassWindow(cbi.hwndCombo, AeroPaintSubclassProc); - mir_subclassWindow(cbi.hwndItem, AeroPaintSubclassProc); - } + COMBOBOXINFO cbi; + cbi.cbSize = sizeof(COMBOBOXINFO); + GetComboBoxInfo( GetDlgItem(hdlg, IDC_KEYWORD_FILTER), &cbi); + mir_subclassWindow(cbi.hwndItem, OptionsFilterSubclassProc); + + if (IsAeroMode()) { + mir_subclassWindow(cbi.hwndCombo, AeroPaintSubclassProc); + mir_subclassWindow(cbi.hwndItem, AeroPaintSubclassProc); } Utils_RestoreWindowPositionNoSize(hdlg, NULL, "Options", ""); -- cgit v1.2.3