aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/c/main.c b/c/main.c
index eac223a..52029c4 100644
--- a/c/main.c
+++ b/c/main.c
@@ -102,14 +102,14 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
UpdateLayout();
break;
case WM_GETMINMAXINFO:
- {
+ {
LPMINMAXINFO lpMMI = (LPMINMAXINFO)lParam;
extern HWND HDlv;
lpMMI->ptMinTrackSize.y = LvHeight(HDlv)+80;
break;
- }
+ }
case WM_CREATE:
- {
+ {
extern HWND HElv;
HWnd = hWnd;
DlvCreate();
@@ -117,22 +117,24 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
UpdateTheme();
SetFocus(HElv);
break;
- }
+ }
case WM_THEMECHANGED:
UpdateTheme();
break;
case WM_ACTIVATE:
switch (wParam) {
- term_t t;
case WA_INACTIVE:
HFocus = GetFocus();
break;
case WA_ACTIVE:
case WA_CLICKACTIVE:
+ {
+ term_t t;
SetFocus(HFocus);
t = T(0);
P("track_episodes","update_tracked_episodes",0,t);
ElvRedraw();
+ }
}
break;
case WM_NOTIFY:
@@ -161,7 +163,7 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case ID_TOGGLE:
case ID_FORGET:
case ID_LOOKUP:
- {
+ {
LVITEM lvi;
term_t t;
extern HWND HElv;
@@ -198,8 +200,8 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
}
}
- b: break;
- }
+ b: break;
+ }
}
break;
default:
@@ -306,12 +308,12 @@ UpdateTheme()
switch (bThemes) {
case -1:
- {
+ {
HMODULE hModule;
hModule = LoadLibrary(TEXT("uxtheme.dll"));
bThemes = hModule && GetProcAddress(hModule,"SetWindowTheme");
break;
- }
+ }
case 1:
bThemeActive = IsThemeActive();
LvSetTheme(HElv, bThemeActive);