diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-08-23 10:17:33 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-08-23 10:17:33 +0000 |
commit | cb25fac4e3ff8d3dc972ab51bf01eefe2ca65025 (patch) | |
tree | c4edeb3e1942d4c3de2e174dfb9ac94a57826ccb /protocols/Weather/weather_mwin.cpp | |
parent | 38fd059aded00e4ed846bf35779f4bbcf7133f0d (diff) |
add weather icon to frame
git-svn-id: http://svn.miranda-ng.org/main/trunk@1525 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Weather/weather_mwin.cpp')
-rw-r--r-- | protocols/Weather/weather_mwin.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Weather/weather_mwin.cpp b/protocols/Weather/weather_mwin.cpp index 046ad2c7d6..fb02af94a9 100644 --- a/protocols/Weather/weather_mwin.cpp +++ b/protocols/Weather/weather_mwin.cpp @@ -63,9 +63,8 @@ static LRESULT CALLBACK wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara case WM_CONTEXTMENU:
{
POINT pt;
- HMENU hMenu;
- hMenu = (HMENU)CallService(MS_CLIST_MENUBUILDCONTACT, (WPARAM)data->hContact, 0);
+ HMENU hMenu = (HMENU)CallService(MS_CLIST_MENUBUILDCONTACT, (WPARAM)data->hContact, 0);
GetCursorPos(&pt);
TrackPopupMenu(hMenu, TPM_LEFTALIGN, pt.x, pt.y, 0, hwnd, NULL);
DestroyMenu(hMenu);
@@ -266,6 +265,7 @@ static void addWindow(HANDLE hContact) CLISTFrame Frame = {0};
Frame.tname = winname;
+ Frame.hIcon = LoadIconEx("main",FALSE);
Frame.cbSize = sizeof(Frame);
Frame.hWnd = hWnd;
Frame.align = alBottom;
@@ -328,7 +328,6 @@ int RedrawFrame(WPARAM wParam, LPARAM lParam) void InitMwin(void)
{
- HANDLE hContact;
HMODULE hUser = GetModuleHandle(_T("user32.dll"));
if (!ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) return;
@@ -387,7 +386,7 @@ void InitMwin(void) FontRegisterT(&fontid);
}
- hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0);
+ HANDLE hContact = (HANDLE)CallService(MS_DB_CONTACT_FINDFIRST, 0, 0);
while(hContact)
{
// see if the contact is a weather contact
|