aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-16 16:29:25 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-16 16:29:25 +0100
commit8e70cba63a8109bc663f06c9e8b79a241a968bcc (patch)
tree784938495c5449bdac8b96ae0c05384fc4044962 /c/main.c
parent4fafc8b49e3f08a87119ef62a54056efba7b6b92 (diff)
downloadEpisodeBrowser-8e70cba63a8109bc663f06c9e8b79a241a968bcc.tar.gz
Select most recently watched episode by default.
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/c/main.c b/c/main.c
index 6af1a7f..1ff91f5 100644
--- a/c/main.c
+++ b/c/main.c
@@ -67,7 +67,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
TEXT("Episode Browser"),
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, /* Position */
- 510, 300, /* Size */
+ 510, 400, /* Size */
NULL, /* Parent window */
NULL, /* Menu */
hInstance,
@@ -97,6 +97,19 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_DESTROY:
PostQuitMessage(0);
break;
+ case WM_CREATE:
+ DlvCreate(hWnd);
+ ElvCreate(hWnd);
+ break;
+ case WM_SIZE:
+ UpdateLayout(hWnd);
+ break;
+ case WM_NOTIFY:
+ switch (((NMHDR *)lParam)->idFrom) {
+ case IDC_EPISODELISTVIEW:
+ return ElvHandleNotify(lParam);
+ }
+ break;
case WM_COMMAND:
switch (LOWORD(wParam)) {
case ID_FILE_EXIT:
@@ -163,19 +176,6 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
}
break;
- case WM_CREATE:
- ElvCreate(hWnd);
- DlvCreate(hWnd);
- break;
- case WM_SIZE:
- UpdateLayout(hWnd);
- break;
- case WM_NOTIFY:
- switch (((NMHDR *)lParam)->idFrom) {
- case IDC_EPISODELISTVIEW:
- return ElvHandleNotify(lParam);
- }
- break;
default:
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}