#include <windows.h>
#include <d3d11.h>
#include "imgui.h"
#include "imgui_impl_dx11.h"
#include "imgui_impl_win32.h"
#pragma comment(lib, "d3d11.lib")
---------------------------------------------------------------------------------------------------------
LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam))
return true;
switch (msg)
{
case WM_KEYDOWN:
if (wParam == VK_INSERT)
showMenu = !showMenu;
break;
---------------------------------------------------------------------------------------------------------