aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/c/main.c b/c/main.c
index 52029c4..f22eabf 100644
--- a/c/main.c
+++ b/c/main.c
@@ -48,15 +48,15 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
HPopupMenu = GetSubMenu(HPopupMenu, 0);
memset(&wc, 0, sizeof(WNDCLASSEX));
- wc.cbSize = sizeof(WNDCLASSEX);
- wc.lpfnWndProc = WndProc;
- wc.hInstance = hInstance;
- wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
- wc.hCursor = LoadCursor(NULL, IDC_ARROW);
+ wc.cbSize = sizeof(WNDCLASSEX);
+ wc.lpfnWndProc = WndProc;
+ wc.hInstance = hInstance;
+ wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
+ wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
- wc.lpszMenuName = MAKEINTRESOURCE(IDR_MENU);
- wc.lpszClassName = TEXT("EpisodeBrowser");
- wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
+ wc.lpszMenuName = MAKEINTRESOURCE(IDR_MENU);
+ wc.lpszClassName = TEXT("Episode Browser");
+ wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
tszErr = TEXT("Could not register window class.");
if (!RegisterClassEx(&wc)) goto f;
@@ -64,7 +64,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
hWnd = CreateWindowEx(
0,
- TEXT("EpisodeBrowser"),
+ TEXT("Episode Browser"),
TEXT("Episode Browser"),
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 510, 400,
@@ -151,6 +151,13 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case ID_FILE_REFRESH:
ElvUpdate();
break;
+ case ID_FILE_RESET:
+ {
+ extern HWND HElv;
+ ListView_SetItemState(HElv, -1, LVIF_STATE, LVIS_SELECTED);
+ ElvSelectRecent();
+ break;
+ }
case ID_FILE_ABOUT:
DialogBox(
GetModuleHandle(NULL),