aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-15 00:50:32 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-15 00:50:32 +0200
commit095954fe8c0d1a64d8696d0ad0cd0ed395dd6c54 (patch)
treecc1543954c5208dfa56adfa82853239a6504ba18 /c/main.cpp
parent0e22414d042207269f916298b236f1be341ddeea (diff)
downloadEpisodeBrowser-095954fe8c0d1a64d8696d0ad0cd0ed395dd6c54.tar.gz
Change declaration style.
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp24
1 files changed, 8 insertions, 16 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 718ed85..1d8a981 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -30,8 +30,7 @@ static HWND CreateStatusBar(HWND, HINSTANCE);
static int Attach(void);
static void UpdateTheme(void);
-int WINAPI
-WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
+int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, INT nCmdShow)
{
LPTSTR tszErr;
@@ -129,8 +128,7 @@ f: MessageBox(NULL, tszErr, TEXT("Error"), MB_ICONERROR);
return 1;
}
-static LRESULT CALLBACK
-CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode != HCBT_CREATEWND) return 0;
if (g_hWnd) return 0;
@@ -159,8 +157,7 @@ CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
return 0;
}
-LRESULT CALLBACK
-WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg) {
case WM_CREATE:
@@ -451,8 +448,7 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return 0;
}
-INT_PTR CALLBACK
-AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg) {
case WM_CLOSE:
@@ -472,8 +468,7 @@ AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return TRUE;
}
-HWND
-CreateStatusBar(HWND hWndParent, HINSTANCE hInstance)
+HWND CreateStatusBar(HWND hWndParent, HINSTANCE hInstance)
{
HWND hWnd = CreateWindowEx(
0,
@@ -492,8 +487,7 @@ CreateStatusBar(HWND hWndParent, HINSTANCE hInstance)
/***/
/* Attach persistent databases. */
-int
-Attach()
+int Attach()
{
if (!Pl("track_episodes","attach","")) return 0;
if (!Pl("episode_data","attach","")) return 0;
@@ -502,8 +496,7 @@ Attach()
/***/
-void
-UpdateLayout()
+void UpdateLayout()
{
int cxColumn, cyDlv, yStatus;
RECT rc, rcStatus;
@@ -538,8 +531,7 @@ UpdateLayout()
}
/* Try to style application according to current Windows theme. */
-void
-UpdateTheme()
+void UpdateTheme()
{
if (!g_bThemes) return;
BOOL bThemeActive = IsThemeActive();