From fdbc3639a50f40879f390f17ce7aafd5a579a7ab Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 21 Sep 2013 17:37:33 +0000 Subject: Core cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdfile/commonheaders.h | 5 +---- src/core/stdfile/fileopts.cpp | 3 +-- src/core/stdfile/filerecvdlg.cpp | 3 +-- src/core/stdfile/main.cpp | 3 --- src/core/stdfile/stdfile_10.vcxproj | 8 ++++---- src/core/stdfile/stdfile_11.vcxproj | 8 ++++---- 6 files changed, 11 insertions(+), 19 deletions(-) (limited to 'src/core/stdfile') diff --git a/src/core/stdfile/commonheaders.h b/src/core/stdfile/commonheaders.h index 514d5bf97a..70a1378387 100644 --- a/src/core/stdfile/commonheaders.h +++ b/src/core/stdfile/commonheaders.h @@ -28,9 +28,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include -#include #include #include +#include #include #include @@ -83,6 +83,3 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern HINSTANCE hInst; extern ITaskbarList3 * pTaskbarInterface; - -typedef HRESULT (STDAPICALLTYPE *pfnSHAutoComplete)(HWND, DWORD); -extern pfnSHAutoComplete shAutoComplete; diff --git a/src/core/stdfile/fileopts.cpp b/src/core/stdfile/fileopts.cpp index c018c18a5f..a19a912e6a 100644 --- a/src/core/stdfile/fileopts.cpp +++ b/src/core/stdfile/fileopts.cpp @@ -62,8 +62,7 @@ static INT_PTR CALLBACK DlgProcFileOpts(HWND hwndDlg, UINT msg, WPARAM wParam, L { TranslateDialogDefault(hwndDlg); - if (shAutoComplete) - shAutoComplete(GetDlgItem(hwndDlg, IDC_FILEDIR), SHACF_FILESYS_DIRS); + SHAutoComplete(GetDlgItem(hwndDlg, IDC_FILEDIR), SHACF_FILESYS_DIRS); { TCHAR str[MAX_PATH]; diff --git a/src/core/stdfile/filerecvdlg.cpp b/src/core/stdfile/filerecvdlg.cpp index 476ae54918..c5dba47f70 100644 --- a/src/core/stdfile/filerecvdlg.cpp +++ b/src/core/stdfile/filerecvdlg.cpp @@ -233,8 +233,7 @@ INT_PTR CALLBACK DlgProcRecvFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l SetDlgItemText(hwndDlg, IDC_FROM, contactName); GetContactReceivedFilesDir(dat->hContact, szPath, SIZEOF(szPath), TRUE); SetDlgItemText(hwndDlg, IDC_FILEDIR, szPath); - if (shAutoComplete) - shAutoComplete(GetWindow(GetDlgItem(hwndDlg, IDC_FILEDIR), GW_CHILD), 1); + SHAutoComplete(GetWindow(GetDlgItem(hwndDlg, IDC_FILEDIR), GW_CHILD), 1); for (int i=0; i < MAX_MRU_DIRS; i++) { char idstr[32]; diff --git a/src/core/stdfile/main.cpp b/src/core/stdfile/main.cpp index 27c81fb044..dcedd83d52 100644 --- a/src/core/stdfile/main.cpp +++ b/src/core/stdfile/main.cpp @@ -28,7 +28,6 @@ TIME_API tmi; HINSTANCE hInst; int hLangpack; -pfnSHAutoComplete shAutoComplete; ITaskbarList3 * pTaskbarInterface; PLUGININFOEX pluginInfo = { @@ -67,8 +66,6 @@ extern "C" int __declspec(dllexport) Load(void) if ( IsWinVer7Plus()) CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_ALL, IID_ITaskbarList3, (void**)&pTaskbarInterface); - shAutoComplete = (pfnSHAutoComplete)GetProcAddress(GetModuleHandleA("shlwapi"), "SHAutoComplete"); - LoadSendRecvFileModule(); return 0; } diff --git a/src/core/stdfile/stdfile_10.vcxproj b/src/core/stdfile/stdfile_10.vcxproj index 0ca720f28f..4a57b56ae9 100644 --- a/src/core/stdfile/stdfile_10.vcxproj +++ b/src/core/stdfile/stdfile_10.vcxproj @@ -91,7 +91,7 @@ ..\..\..\include\msapi;..\..\..\include - miranda32.lib;ws2_32.lib;comctl32.lib;%(AdditionalDependencies) + miranda32.lib;ws2_32.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies) true true true @@ -125,7 +125,7 @@ ..\..\..\include\msapi;..\..\..\include - miranda32.lib;ws2_32.lib;comctl32.lib;%(AdditionalDependencies) + miranda32.lib;ws2_32.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies) true 0x3ae00000 false @@ -156,7 +156,7 @@ ..\..\..\include\msapi;..\..\..\include - miranda64.lib;ws2_32.lib;comctl32.lib;%(AdditionalDependencies) + miranda64.lib;ws2_32.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies) true true true @@ -189,7 +189,7 @@ ..\..\..\include\msapi;..\..\..\include - miranda64.lib;ws2_32.lib;comctl32.lib;%(AdditionalDependencies) + miranda64.lib;ws2_32.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies) true 0x3ae00000 false diff --git a/src/core/stdfile/stdfile_11.vcxproj b/src/core/stdfile/stdfile_11.vcxproj index 6e5259a9aa..eceb506577 100644 --- a/src/core/stdfile/stdfile_11.vcxproj +++ b/src/core/stdfile/stdfile_11.vcxproj @@ -95,7 +95,7 @@ ..\..\..\include\msapi;..\..\..\include - miranda32.lib;ws2_32.lib;comctl32.lib;%(AdditionalDependencies) + miranda32.lib;ws2_32.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies) true true true @@ -128,7 +128,7 @@ ..\..\..\include\msapi;..\..\..\include - miranda32.lib;ws2_32.lib;comctl32.lib;%(AdditionalDependencies) + miranda32.lib;ws2_32.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies) true 0x3ae00000 false @@ -160,7 +160,7 @@ ..\..\..\include\msapi;..\..\..\include - miranda64.lib;ws2_32.lib;comctl32.lib;%(AdditionalDependencies) + miranda64.lib;ws2_32.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies) true true true @@ -192,7 +192,7 @@ ..\..\..\include\msapi;..\..\..\include - miranda64.lib;ws2_32.lib;comctl32.lib;%(AdditionalDependencies) + miranda64.lib;ws2_32.lib;comctl32.lib;Shlwapi.lib;%(AdditionalDependencies) true 0x3ae00000 false -- cgit v1.2.3