summaryrefslogtreecommitdiff
path: root/source/tests/win32/01-window/03_sub_menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests/win32/01-window/03_sub_menu.cpp')
-rw-r--r--source/tests/win32/01-window/03_sub_menu.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/tests/win32/01-window/03_sub_menu.cpp b/source/tests/win32/01-window/03_sub_menu.cpp
index 86bcc76..ccf62c0 100644
--- a/source/tests/win32/01-window/03_sub_menu.cpp
+++ b/source/tests/win32/01-window/03_sub_menu.cpp
@@ -1,12 +1,12 @@
#include "config.h"
#if _run_app == _sub_menu
-#include <asura-utils/io/file_system.h>
-#include <asura-utils/io/data_buffer.h>
+#include <asura-utils/IO/FileSystem.h>
+#include <asura-utils/IO/DataBuffer.h>
#include <asura-core/graphics/image.h>
#include <asura-core/graphics/shader.h>
-#include <asura-core/image/image_data.h>
-#include <asura-core/graphics/vertex_buffer.h>
+#include <asura-core/image/ImageData.h>
+#include <asura-core/graphics/VertexBuffer.h>
#include <SDL2/SDL.h>
#include <string>
@@ -111,7 +111,11 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLin
DWORD extendedStyle = 0;
windowStyle = WS_POPUP | WS_CLIPCHILDREN | WS_THICKFRAME | WS_VISIBLE;
extendedStyle = WS_EX_TOOLWINDOW;
- //windowStyle = WS_OVERLAPPEDWINDOW | WS_VISIBLE;
+
+ windowStyle = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_CLIPCHILDREN | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_VISIBLE;
+ extendedStyle = 0;
+
+ //windowStyle = WS_OVERLAPPEDWINDOW | WS_VISIBLE;WS_VISIBLE
RECT rect = { 100, 100, 500, 500 };
AdjustWindowRectEx(&rect, windowStyle, true, extendedStyle);
@@ -332,7 +336,6 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg,
}
void AddMenus(HWND hwnd) {
- return;
HMENU hMenubar = CreateMenu();
HMENU hMenu = CreateMenu();
HMENU hSubMenu = CreatePopupMenu();