diff --git a/About.h b/About.h deleted file mode 100644 index 41e125a8..00000000 --- a/About.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include - -LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); diff --git a/About.c b/DialogBoxAboutCallback.c similarity index 83% rename from About.c rename to DialogBoxAboutCallback.c index 8099ebab..b75f587c 100644 --- a/About.c +++ b/DialogBoxAboutCallback.c @@ -4,7 +4,7 @@ #include "resources/resource.h" // Mesage handler for the About box. -LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT CALLBACK DialogBoxAboutCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { VccState* vccState = GetVccState(); diff --git a/DialogBoxAboutCallback.h b/DialogBoxAboutCallback.h new file mode 100644 index 00000000..9c380091 --- /dev/null +++ b/DialogBoxAboutCallback.h @@ -0,0 +1,5 @@ +#pragma once + +#include + +LRESULT CALLBACK DialogBoxAboutCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); diff --git a/Vcc.vcxproj b/Vcc.vcxproj index 49d52769..08dc21ba 100644 --- a/Vcc.vcxproj +++ b/Vcc.vcxproj @@ -167,7 +167,7 @@ - + @@ -192,7 +192,7 @@ - + diff --git a/main.c b/main.c index 94671a67..039390b1 100644 --- a/main.c +++ b/main.c @@ -18,13 +18,13 @@ #include "library/fileoperations.h" #include "library/Graphics.h" -#include "About.h" #include "CreateDDWindow.h" #include "EmuLoop.h" #include "FullScreenToggle.h" #include "InitInstance.h" #include "LoadConfig.h" #include "CreateMainConfigDialogCallback.h" +#include "DialogBoxAboutCallback.h" LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); @@ -196,7 +196,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) switch (wmId) { case IDM_HELP_ABOUT: - DialogBox(vccState->EmuState.Resources, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About); + DialogBox(vccState->EmuState.Resources, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)DialogBoxAboutCallback); break; case ID_CONFIGURE_OPTIONS: