Loader : Initial drop of a separate *empty* GUI project (probably won't compile either)

This commit is contained in:
PatrickvL 2019-02-05 18:08:36 +01:00 committed by RadWolfie
parent b2b0813db4
commit 93c8514700
37 changed files with 579 additions and 26 deletions

View File

@ -372,6 +372,8 @@ add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/projects/CxbxLoader")
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/projects/CxbxEmulator")
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/projects/CxbxGUI")
# Issues with compile (the same with develop branch) and
# for some reason did not put the files into virtual folder?
# Might need to put the list in the source folder for workaround fix.
@ -401,6 +403,6 @@ if(${CMAKE_GENERATOR} MATCHES "Visual Studio ([^9]|[9][0-9])")
endif()
# Cxbx-Reloaded project with third-party libraries
set_target_properties(cxbx CxbxLoader CxbxEmulator subhook XbSymbolDatabase libtommath libtomcrypt
set_target_properties(cxbx CxbxGUI CxbxLoader CxbxEmulator subhook XbSymbolDatabase libtommath libtomcrypt
PROPERTIES FOLDER Cxbx-Reloaded
)

View File

@ -0,0 +1,152 @@
cmake_minimum_required (VERSION 3.12)
project(CxbxGUI)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
# Suppress extra stuff from generated solution
set(CMAKE_SUPPRESS_REGENERATION true)
include_directories(
"${CXBXR_ROOT_DIR}/src"
"${CXBXR_ROOT_DIR}/src/common"
"${CXBXR_ROOT_DIR}/src/common/Win32"
"${CXBXR_ROOT_DIR}/import/OpenXDK/include"
"${CXBXR_ROOT_DIR}/import/XbSymbolDatabase"
"${CXBXR_ROOT_DIR}/import/simpleini"
"${CXBXR_ROOT_DIR}/import/DirectX9/include"
"${CXBXR_ROOT_DIR}/import/libtommath"
"${CXBXR_ROOT_DIR}/import/libtomcrypt/src/headers"
)
link_directories(
"${CXBXR_ROOT_DIR}/import/DirectX9/lib"
)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_compile_definitions(
_CRT_SECURE_NO_WARNINGS
# Windows 7 minimum requirement
_WIN32_WINNT=0x0601
LTM_DESC
USE_LTM
LTC_NO_TEST
LTC_NO_CIPHERS
LTC_NO_HASHES
LTC_NO_MACS
LTC_NO_PRNGS
LTC_NO_MISC
LTC_NO_PROTOTYPES
)
add_compile_options(
/EHs
/MP
/GF
/arch:SSE2
)
endif()
add_compile_definitions(NOMINMAX
)
file (GLOB RESOURCES
"${CXBXR_ROOT_DIR}/CONTRIBUTORS"
"${CXBXR_ROOT_DIR}/COPYING"
"${CXBXR_ROOT_DIR}/README.md"
"${CXBXR_ROOT_DIR}/src/gui/resource/.editorconfig"
"${CXBXR_ROOT_DIR}/src/gui/resource/CxbxGUI.rc"
"${CXBXR_ROOT_DIR}/src/gui/resource/Cxbx-R.ico"
"${CXBXR_ROOT_DIR}/src/gui/resource/resource.h"
"${CXBXR_ROOT_DIR}/src/gui/resource/stdafx.h"
"${CXBXR_ROOT_DIR}/src/gui/resource/targetver.h"
"${CXBXR_ROOT_DIR}/src/gui/resource/Logo.bmp"
"${CXBXR_ROOT_DIR}/src/gui/resource/Logo-License-CC4.bmp"
"${CXBXR_ROOT_DIR}/src/.editorconfig"
)
source_group(TREE ${CXBXR_ROOT_DIR}/src PREFIX header FILES
${CXBXR_HEADER_GUIv1}
${CXBXR_HEADER_COMMON}
"${CXBXR_ROOT_DIR}/src/gui/CxbxGUI.h"
)
source_group(TREE ${CXBXR_ROOT_DIR}/src PREFIX source FILES
${CXBXR_SOURCE_GUIv1}
${CXBXR_SOURCE_COMMON}
"${CXBXR_ROOT_DIR}/src/gui/CxbxGUI.cpp"
"${CXBXR_ROOT_DIR}/src/gui/stdafx.cpp"
)
source_group(TREE ${CXBXR_ROOT_DIR} FILES ${RESOURCES})
add_executable(CxbxGUI WIN32 ${RESOURCES}
# ${CXBXR_HEADER_GUIv1}
# ${CXBXR_HEADER_COMMON}
# ${CXBXR_SOURCE_GUIv1}
# ${CXBXR_SOURCE_COMMON}
${CXBXR_GIT_VERSION_H}
"${CXBXR_ROOT_DIR}/src/gui/CxbxGUI.h"
"${CXBXR_ROOT_DIR}/src/gui/CxbxGUI.cpp"
"${CXBXR_ROOT_DIR}/src/gui/stdafx.cpp"
)
# Link and compile flags
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set_target_properties(CxbxGUI PROPERTIES
LINK_FLAGS "
/INCREMENTAL:NO
/LARGEADDRESSAWARE
/SAFESEH:NO
/NODEFAULTLIB:libcmt
"
LINK_FLAGS_RELEASE "
/LTCG
"
)
# Set optimization options for release build
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}
/Zi
/Ob2
/Oi
/Ot
/GL
/GS-
/Gy
/Qpar
"
)
endif()
# Windows libraries
set(WINS_LIB
legacy_stdio_definitions
d3d9
dinput8
dxguid
odbc32
odbccp32
Shlwapi
dxerr9
ws2_32
dsound
winmm
ddraw
d3dx9
dbghelp
comctl32
XINPUT9_1_0
)
target_link_libraries(CxbxGUI
PUBLIC XbSymbolDatabase
libtomcrypt
${WINS_LIB}
)
add_dependencies(CxbxGUI CxbxEmulator cxbxr-debugger)

View File

@ -72,11 +72,11 @@ file (GLOB RESOURCES
"${CXBXR_ROOT_DIR}/CONTRIBUTORS"
"${CXBXR_ROOT_DIR}/COPYING"
"${CXBXR_ROOT_DIR}/README.md"
"${CXBXR_ROOT_DIR}/resource/.editorconfig"
"${CXBXR_ROOT_DIR}/resource/Cxbx.rc"
"${CXBXR_ROOT_DIR}/resource/Cxbx-R.ico"
"${CXBXR_ROOT_DIR}/resource/Logo.bmp"
"${CXBXR_ROOT_DIR}/resource/Logo-License-CC4.bmp"
"${CXBXR_ROOT_DIR}/src/gui/resource/.editorconfig"
"${CXBXR_ROOT_DIR}/src/gui/resource/Cxbx.rc"
"${CXBXR_ROOT_DIR}/src/gui/resource/Cxbx-R.ico"
"${CXBXR_ROOT_DIR}/src/gui/resource/Logo.bmp"
"${CXBXR_ROOT_DIR}/src/gui/resource/Logo-License-CC4.bmp"
"${CXBXR_ROOT_DIR}/src/.editorconfig"
)

View File

@ -119,7 +119,7 @@ add_executable(cxbxr-debugger WIN32 ${SOURCES} #Test WIN32 like cxbx does if doe
set_target_properties(cxbxr-debugger PROPERTIES
VS_DOTNET_REFERENCES
"Microsoft.CSharp;System;System.Core;System.Data;System.Data.DataSetExtensions;System.Deployment;System.Drawing;System.Windows;System.Windows.Forms;System.Xml;System.Xml.Linq;System.Net.Http"
VS_GLOBAL_ApplicationIcon "${CXBXR_ROOT_DIR}/resource/Cxbx-R.ico"
VS_GLOBAL_ApplicationIcon "${CXBXR_ROOT_DIR}/src/gui/resource/Cxbx-R.ico"
VS_GLOBAL_ROOTNAMESPACE "CxbxDebugger"

View File

@ -28,7 +28,7 @@
#include "Button.h"
#include "InputWindow.h"
#include "layout_xbox_controller.h" // TODO: Needs a better fix for custom input device support.
#include "..\..\gui\ResCxbx.h"
#include "gui/resource/ResCxbx.h"
void Button::EnableButton(bool enable) const

View File

@ -28,7 +28,7 @@
#include"Button.h"
#include "InputManager.h"
#include "layout_xbox_controller.h"
#include "..\..\gui\ResCxbx.h"
#include "gui/resource/ResCxbx.h"
EmuDevice::EmuDevice(int type, HWND hwnd)

View File

@ -26,7 +26,7 @@
// ******************************************************************
#include "InputWindow.h"
#include "..\..\gui\ResCxbx.h"
#include "gui/resource/ResCxbx.h"
#include "common\IPCHybrid.hpp"
#include "EmuShared.h"
#include <future>

View File

@ -28,7 +28,7 @@
#pragma once
#ifndef CXBXR_EMU_EXPORTS
#include "gui/ResCxbx.h"
#include "gui/resource/ResCxbx.h"
static int button_xbox_ctrl_id[XBOX_CTRL_NUM_BUTTONS] = {
IDC_SET_DPAD_UP,

View File

@ -31,7 +31,7 @@
#include "Cxbx.h"
#include "core\kernel\init\CxbxKrnl.h"
#include "gui\ResCxbx.h"
#include "gui/resource/ResCxbx.h"
#include "common\IPCHybrid.hpp"
#include "EmuShared.h"

View File

@ -55,7 +55,7 @@ namespace xboxkrnl
#include "..\XbD3D8Logging.h"
#include "core\hle\Intercept.hpp" // for bLLE_GPU
#include "devices\video\nv2a.h" // For GET_MASK, NV_PGRAPH_CONTROL_0, PUSH_METHOD
#include "gui\ResCxbx.h"
#include "gui/resource/ResCxbx.h"
#include "RenderStates.h"
#include "TextureStates.h"
#include "WalkIndexBuffer.h"

View File

@ -34,7 +34,7 @@ namespace xboxkrnl
#include <xboxkrnl/xboxkrnl.h>
};
#include "gui\ResCxbx.h"
#include "gui/resource/ResCxbx.h"
#include "core\kernel\init\CxbxKrnl.h"
#include "common\xbdm\CxbxXbdm.h" // For Cxbx_LibXbdmThunkTable
#include "CxbxVersion.h"

180
src/gui/CxbxGUI.cpp Normal file
View File

@ -0,0 +1,180 @@
// CxbxGUI.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "CxbxGUI.h"
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
WCHAR szTitle[MAX_LOADSTRING]; // The title bar text
WCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name
// Forward declarations of functions included in this code module:
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
// TODO: Place code here.
// Initialize global strings
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
LoadStringW(hInstance, IDC_CXBXGUI, szWindowClass, MAX_LOADSTRING);
MyRegisterClass(hInstance);
// Perform application initialization:
if (!InitInstance (hInstance, nCmdShow))
{
return FALSE;
}
HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_CXBXGUI));
MSG msg;
// Main message loop:
while (GetMessage(&msg, nullptr, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return (int) msg.wParam;
}
//
// FUNCTION: MyRegisterClass()
//
// PURPOSE: Registers the window class.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASSEXW wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_CXBXGUI));
wcex.hCursor = LoadCursor(nullptr, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_CXBXGUI);
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
return RegisterClassExW(&wcex);
}
//
// FUNCTION: InitInstance(HINSTANCE, int)
//
// PURPOSE: Saves instance handle and creates main window
//
// COMMENTS:
//
// In this function, we save the instance handle in a global variable and
// create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
hInst = hInstance; // Store instance handle in our global variable
HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr);
if (!hWnd)
{
return FALSE;
}
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
return TRUE;
}
//
// FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)
//
// PURPOSE: Processes messages for the main window.
//
// WM_COMMAND - process the application menu
// WM_PAINT - Paint the main window
// WM_DESTROY - post a quit message and return
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_COMMAND:
{
int wmId = LOWORD(wParam);
// Parse the menu selections:
switch (wmId)
{
case IDM_ABOUT:
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
break;
case IDM_EXIT:
DestroyWindow(hWnd);
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
}
break;
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc = BeginPaint(hWnd, &ps);
// TODO: Add any drawing code that uses hdc here...
EndPaint(hWnd, &ps);
}
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
return 0;
}
// Message handler for about box.
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
switch (message)
{
case WM_INITDIALOG:
return (INT_PTR)TRUE;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return (INT_PTR)TRUE;
}
break;
}
return (INT_PTR)FALSE;
}

3
src/gui/CxbxGUI.h Normal file
View File

@ -0,0 +1,3 @@
#pragma once
#include "resource/resource.h"

View File

@ -29,7 +29,7 @@
#include "CxbxVersion.h"
#include "DlgAbout.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include "common\util\CxbxUtil.h"
#include <commctrl.h>

View File

@ -28,7 +28,7 @@
#include "common\Settings.hpp" // for g_Settings
#include "DlgAudioConfig.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include <dsound.h>

View File

@ -26,7 +26,7 @@
// ******************************************************************
#include "Windows.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include "input\InputWindow.h"
#include "gui\DlgInputConfig.h"

View File

@ -30,7 +30,7 @@
#include "EmuEEPROM.h" // For EEPROMInfo, EEPROMInfos
#include "core\kernel\init\CxbxKrnl.h"
#include "DlgEepromConfig.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include <Commctrl.h>

View File

@ -27,7 +27,7 @@
#include "windows.h"
#include "DlgDukeControllerConfig.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include "input\InputManager.h"
#include "Logging.h"
#include "Settings.hpp"

View File

@ -26,7 +26,7 @@
#include "Logging.h"
#include "EmuShared.h"
#include "DlgLoggingConfig.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include "common\IPCHybrid.hpp"

View File

@ -29,7 +29,7 @@
#include "EmuShared.h"
#include "DlgNetworkConfig.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include <Iphlpapi.h>

View File

@ -31,7 +31,7 @@
#include "common\Settings.hpp" // for g_Settings
#include "DlgVideoConfig.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include "core\hle\D3D8\Direct3D9\Direct3D9.h" // For IDirect3D

View File

@ -25,7 +25,7 @@
// *
// ******************************************************************
#include "Wnd.h"
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
// ******************************************************************
// * constructor

View File

@ -45,7 +45,7 @@
#include "common\Settings.hpp"
#include "core\kernel\init\CxbxKrnl.h" // For CxbxConvertArgToString and CxbxExec
#include "ResCxbx.h"
#include "resource/ResCxbx.h"
#include "CxbxVersion.h"
#include "Shlwapi.h"

View File

Before

Width:  |  Height:  |  Size: 281 KiB

After

Width:  |  Height:  |  Size: 281 KiB

View File

@ -1,6 +1,6 @@
// Microsoft Visual C++ generated resource script.
//
#include "..\src\gui\ResCxbx.h"
#include "ResCxbx.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////

148
src/gui/resource/CxbxGUI.rc Normal file
View File

@ -0,0 +1,148 @@
//Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef APSTUDIO_INVOKED
#include "../targetver.h"
#endif
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_CXBXGUI ICON "Cxbx-R.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDC_CXBXGUI MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Help"
BEGIN
MENUITEM "&About ...", IDM_ABOUT
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//
IDC_CXBXGUI ACCELERATORS
BEGIN
"?", IDM_ABOUT, ASCII, ALT
"/", IDM_ABOUT, ASCII, ALT
END
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About CxbxGUI"
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,14,14,21,20
LTEXT "CxbxGUI, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
LTEXT "Copyright (C) 2019",IDC_STATIC,42,26,114,8
DEFPUSHBUTTON "OK",IDOK,113,41,50,14,WS_GROUP
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 163
TOPMARGIN, 7
BOTTOMMARGIN, 55
END
END
#endif // APSTUDIO_INVOKED
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#ifndef APSTUDIO_INVOKED\r\n"
"#include ""targetver.h""\r\n"
"#endif\r\n"
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include ""windows.h""\r\n"
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDC_CXBXGUI "CXBXGUI"
IDS_APP_TITLE "CxbxGUI"
END
#endif
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 166 KiB

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

View File

@ -0,0 +1,31 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by CxbxGUI.rc
//
#define IDS_APP_TITLE 103
#define IDR_MAINFRAME 128
#define IDD_CXBXGUI_DIALOG 102
#define IDD_ABOUTBOX 103
#define IDM_ABOUT 104
#define IDM_EXIT 105
#define IDI_CXBXGUI 107
#define IDI_SMALL 108
#define IDC_CXBXGUI 109
#define IDC_MYICON 2
#ifndef IDC_STATIC
#define IDC_STATIC -1
#endif
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 130
#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 110
#endif
#endif

8
src/gui/stdafx.cpp Normal file
View File

@ -0,0 +1,8 @@
// stdafx.cpp : source file that includes just the standard includes
// CxbxGUI.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file

21
src/gui/stdafx.h Normal file
View File

@ -0,0 +1,21 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here

8
src/gui/targetver.h Normal file
View File

@ -0,0 +1,8 @@
#pragma once
// Including SDKDDKVer.h defines the highest available Windows platform.
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
#include <SDKDDKVer.h>

View File

@ -30,7 +30,7 @@
#include "Winuser.h"
#include "Windowsx.h"
#include "Commctrl.h"
#include "../gui/ResCxbx.h"
#include "../gui/resource/ResCxbx.h"
#include <cstdio>