aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-16 18:27:21 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-16 18:27:21 +0200
commit54570cbc0d6e4798ad47a9db2e726372cfc13297 (patch)
tree2e178a43da331af8881fd2f2ee7709f09f346271 /c/main.cpp
parentbd812f7d928aa64f837e2fbd23e372ab65d03d87 (diff)
downloadEpisodeBrowser-54570cbc0d6e4798ad47a9db2e726372cfc13297.tar.gz
Formatting.
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/c/main.cpp b/c/main.cpp
index c1d05a6..64d52f8 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -185,7 +185,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
UpdateTheme();
SetWindowPos(hWnd, NULL, -1, -1, Dpi(510), Dpi(400), SWP_NOMOVE);
- SetFocus(g_lpElv->HWnd());
+ SetFocus(g_lpElv->Handle());
/* Set menu item checkmarks according to saved settings. */
CheckMenuItem(GetMenu(hWnd), IDM_VIEW_WATCHED,
@@ -329,13 +329,13 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
MF_CHECKED);
g_szLimitScreenwriter[0] = 0;
} else {
- iEpFocus = ListView_GetNextItem(g_lpElv->HWnd(), -1, LVNI_FOCUSED);
+ iEpFocus = ListView_GetNextItem(g_lpElv->Handle(), -1, LVNI_FOCUSED);
if (iEpFocus == -1) break;
LVITEM lvi;
lvi.iItem = iEpFocus;
lvi.mask = LVIF_PARAM;
- if (!ListView_GetItem(g_lpElv->HWnd(), &lvi)) break;
+ if (!ListView_GetItem(g_lpElv->Handle(), &lvi)) break;
char *sz;
if (!Pl("episode_data","episode_datum",lvi.lParam,"Screenwriter",&sz))
@@ -377,8 +377,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
lvi.mask = LVIF_PARAM;
lvi.iItem = -1;
while ((lvi.iItem = ListView_GetNextItem(
- g_lpElv->HWnd(), lvi.iItem, LVNI_SELECTED)) != -1) {
- if (!ListView_GetItem(g_lpElv->HWnd(), &lvi)) goto b;
+ g_lpElv->Handle(), lvi.iItem, LVNI_SELECTED)) != -1) {
+ if (!ListView_GetItem(g_lpElv->Handle(), &lvi)) goto b;
switch (LOWORD(wParam)) {
case IDM_WATCH_LOCALLY:
@@ -517,24 +517,24 @@ void UpdateLayout()
yStatus = rcStatus.bottom-rcStatus.top;
/* Resize data list view. */
- SendMessage(g_lpDlv->HWnd(), WM_SETREDRAW, FALSE, 0);
- SendMessage(g_lpElv->HWnd(), WM_SETREDRAW, FALSE, 0);
+ SendMessage(g_lpDlv->Handle(), WM_SETREDRAW, FALSE, 0);
+ SendMessage(g_lpElv->Handle(), WM_SETREDRAW, FALSE, 0);
cyDlv = rc.bottom-yStatus-g_lpDlv->Height();
- MoveWindow(g_lpDlv->HWnd(), 0, cyDlv, rc.right, rc.bottom-yStatus-cyDlv, TRUE);
- ListView_SetColumnWidth(g_lpDlv->HWnd(), DLVSIKEY, LVSCW_AUTOSIZE);
- cxColumn = ListView_GetColumnWidth(g_lpDlv->HWnd(), 0)+4;
- ListView_SetColumnWidth(g_lpDlv->HWnd(), DLVSIKEY, cxColumn);
- ListView_SetColumnWidth(g_lpDlv->HWnd(), DLVSIVALUE, rc.right-cxColumn-g_cxVScroll-4);
+ MoveWindow(g_lpDlv->Handle(), 0, cyDlv, rc.right, rc.bottom-yStatus-cyDlv, TRUE);
+ ListView_SetColumnWidth(g_lpDlv->Handle(), DLVSIKEY, LVSCW_AUTOSIZE);
+ cxColumn = ListView_GetColumnWidth(g_lpDlv->Handle(), 0)+4;
+ ListView_SetColumnWidth(g_lpDlv->Handle(), DLVSIKEY, cxColumn);
+ ListView_SetColumnWidth(g_lpDlv->Handle(), DLVSIVALUE, rc.right-cxColumn-g_cxVScroll-4);
/* Resize episode list view. */
- MoveWindow(g_lpElv->HWnd(), 0, 0, rc.right, cyDlv+1, TRUE);
- ListView_SetColumnWidth(g_lpElv->HWnd(), ELVSIEPISODE, LVSCW_AUTOSIZE);
- cxColumn = ListView_GetColumnWidth(g_lpElv->HWnd(), ELVSIEPISODE)+4;
- ListView_SetColumnWidth(g_lpElv->HWnd(), ELVSIEPISODE, cxColumn);
- cxColumn += ListView_GetColumnWidth(g_lpElv->HWnd(), ELVSIRATING);
- ListView_SetColumnWidth(g_lpElv->HWnd(), ELVSITITLE, rc.right-cxColumn-g_cxVScroll-4);
- SendMessage(g_lpElv->HWnd(), WM_SETREDRAW, TRUE, 0);
- SendMessage(g_lpDlv->HWnd(), WM_SETREDRAW, TRUE, 0);
+ MoveWindow(g_lpElv->Handle(), 0, 0, rc.right, cyDlv+1, TRUE);
+ ListView_SetColumnWidth(g_lpElv->Handle(), ELVSIEPISODE, LVSCW_AUTOSIZE);
+ cxColumn = ListView_GetColumnWidth(g_lpElv->Handle(), ELVSIEPISODE)+4;
+ ListView_SetColumnWidth(g_lpElv->Handle(), ELVSIEPISODE, cxColumn);
+ cxColumn += ListView_GetColumnWidth(g_lpElv->Handle(), ELVSIRATING);
+ ListView_SetColumnWidth(g_lpElv->Handle(), ELVSITITLE, rc.right-cxColumn-g_cxVScroll-4);
+ SendMessage(g_lpElv->Handle(), WM_SETREDRAW, TRUE, 0);
+ SendMessage(g_lpDlv->Handle(), WM_SETREDRAW, TRUE, 0);
/* Resize status bar parts. */
int aParts[] = {rc.right-Dpi(55), rc.right};