diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-08 20:51:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-08 20:51:14 +0000 |
commit | 696f4ea57845f48d6d979ecd9d66bb22bd9f738d (patch) | |
tree | c32ac05d363bff47320c1b204561b966aa1c81fd /plugins/WhoUsesMyFiles | |
parent | 3b396a2da6b0b8e0f4d2c051aca133772d317820 (diff) |
TopToolbar usage fixed everywhere
git-svn-id: http://svn.miranda-ng.org/main/trunk@861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhoUsesMyFiles')
-rw-r--r-- | plugins/WhoUsesMyFiles/wumfplug.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/WhoUsesMyFiles/wumfplug.c b/plugins/WhoUsesMyFiles/wumfplug.c index 568917f031..1a547d1ad0 100644 --- a/plugins/WhoUsesMyFiles/wumfplug.c +++ b/plugins/WhoUsesMyFiles/wumfplug.c @@ -6,7 +6,7 @@ const char ModuleName[] = "WUMF Plugin"; HANDLE hMenuItem = 0;
extern HANDLE hLog;
static HWND hDlg;
-static int hWumfBut;
+static HANDLE hWumfBut;
extern PWumf list;
int hLangpack;
@@ -263,7 +263,7 @@ static INT_PTR WumfShowConnections(WPARAM wParam,LPARAM lParam) DWORD threadID = 0;
CloseHandle(CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ThreadProc, (LPVOID)NULL,0,&threadID));
Sleep(100);
- CallService(MS_TTB_SETBUTTONSTATE,hWumfBut,TTBST_RELEASED);
+ CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hWumfBut, TTBST_RELEASED);
return 0;
}
@@ -550,15 +550,15 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg,UINT msg,WPARAM wparam,LPARAM lpara int InitTopToolbar(WPARAM wparam,LPARAM lparam)
{
- TTBButton ttb = { 0 };
- char buttonname[] = "WUMF: Show connections list";
- ttb.cbSize = sizeof(ttb);
+ TTBButton ttb = { 0 };
+ char buttonname[] = "WUMF: Show connections list";
+ ttb.cbSize = sizeof(ttb);
ttb.hIconUp = LoadIcon(hInst, MAKEINTRESOURCE(IDB_DRIVE));
ttb.hIconDn = ttb.hIconUp;
ttb.pszService = MS_WUMF_CONNECTIONSSHOW;
ttb.dwFlags = TTBBF_VISIBLE|TTBBF_SHOWTOOLTIP;
ttb.name = buttonname;
- hWumfBut = CallService(MS_TTB_ADDBUTTON, (WPARAM)&ttb,(LPARAM)0);
+ hWumfBut = TopToolbar_AddButton(&ttb);
return 0;
}
|