com380 project 4 fixes

Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
This commit is contained in:
Amrit Panesar committed 2015-05-16 15:59:49 -07:00
1 parent 0679ef97c8
commit 9a516320aa
4 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -425,7 +425,7 @@ namespace Project4
public: List<LottoBall^>^ balls; public: List<LottoBall^>^ balls;
public: static array<int>^ numbers; public: static array<int>^ numbers;
private: bool isClosing = false; private: bool isClosing;
private: List<RadioButton^>^ radioButtons; private: List<RadioButton^>^ radioButtons;
public: System::Void SetNum(int index, int number); public: System::Void SetNum(int index, int number);
+1 -1
View File
@@ -20,7 +20,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType> <ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries> <UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset> <PlatformToolset>v110</PlatformToolset>
<CLRSupport>Pure</CLRSupport> <CLRSupport>Pure</CLRSupport>
<CharacterSet>Unicode</CharacterSet> <CharacterSet>Unicode</CharacterSet>
</PropertyGroup> </PropertyGroup>
@@ -23,7 +23,7 @@ MainWindow::MainWindow(void)
this->game = new CustomGame(this->graphicsDevice, this->soundDevice); this->game = new CustomGame(this->graphicsDevice, this->soundDevice);
this->SetPosition(0, 0); this->SetPosition(0, 0);
this->SetSize(800, 600); this->SetSize(815, 638);
this->SetActive(); this->SetActive();
} }
@@ -292,7 +292,7 @@ GkWindowsForm::GkWindowsForm(void)
this->top = 0; this->top = 0;
this->width = 640; this->width = 640;
this->height = 480; this->height = 480;
this->caption = "Window Title"; this->caption = "Amrit's COM 380 Slot Machine";
//this->windowMode = GkWindowsForm::WindowMode_Windowed; //this->windowMode = GkWindowsForm::WindowMode_Windowed;
this->windowMode = GkWindowsForm::WindowMode_FullScreen; this->windowMode = GkWindowsForm::WindowMode_FullScreen;
@@ -337,16 +337,16 @@ bool GkWindowsForm::RegisterWindowClass()
bool GkWindowsForm::CreateFormWindow() bool GkWindowsForm::CreateFormWindow()
{ {
long wndStyle = this->windowMode == GkWindowsForm::WindowMode_FullScreen ? WS_POPUP : WS_OVERLAPPEDWINDOW; long wndStyle = this->windowMode == GkWindowsForm::WindowMode_FullScreen ? WS_POPUP | WS_CAPTION: WS_OVERLAPPEDWINDOW | WS_CAPTION;
wndStyle |= WS_CLIPCHILDREN | WS_CLIPSIBLINGS; wndStyle |= WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
// Translate from client rect to window rect // Translate from client rect to window rect
RECT wRect = { this->left, this->top, this->left + this->width, this->top + this->height }; RECT wRect = { this->left, this->top, this->width, this->height };
AdjustWindowRect(&wRect, wndStyle, false); AdjustWindowRect(&wRect, wndStyle, false);
this->handle = CreateWindow(GkWindowsForm::FormClassName, this->caption, this->handle = CreateWindow(GkWindowsForm::FormClassName, this->caption,
wndStyle, wndStyle,
this->left, this->top, wRect.right - wRect.left, wRect.bottom - wRect.top, this->left, this->top, 0, 0,
NULL, NULL, NULL, NULL,
this->applicationInstance, this->applicationInstance,
NULL); NULL);
@@ -385,8 +385,8 @@ void GkWindowsForm::SetSize(int width, int height)
void GkWindowsForm::SetStyle() void GkWindowsForm::SetStyle()
{ {
SetWindowLong(this->handle, GWL_STYLE, WS_POPUP | WS_MINIMIZEBOX); SetWindowLong(this->handle, GWL_STYLE, WS_POPUP | WS_MINIMIZEBOX | WS_MAXIMIZEBOX);
SetWindowLong(this->handle, GWL_EXSTYLE, 0); SetWindowLong(this->handle, GWL_EXSTYLE, WS_EX_APPWINDOW);
//SetWindowLong(this->handle, GWL_STYLE, WS_POPUP); //SetWindowLong(this->handle, GWL_STYLE, WS_POPUP);
//SetWindowLong(this->handle, GWL_EXSTYLE, WS_EX_APPWINDOW); //SetWindowLong(this->handle, GWL_EXSTYLE, WS_EX_APPWINDOW);
} }