Fix reopening closed editor windows

This commit is contained in:
Robbert van der Helm
2020-04-19 20:36:39 +02:00
parent f29a859713
commit 1a6a094c2b
3 changed files with 26 additions and 5 deletions
+16 -1
View File
@@ -17,6 +17,21 @@
#include <optional>
#include <string>
/**
* A basic RAII wrapper around the Win32 window class system, for use in the
* Editor class below.
*/
class WindowClass {
public:
WindowClass(std::string name);
~WindowClass();
/**
* The Win32 window class registered for the windows window.
*/
const ATOM atom;
};
/**
* A wrapper around the win32 windowing API to create and destroy editor
* windows. We can embed this window into the window provided by the host, and a
@@ -74,7 +89,7 @@ class Editor {
/**
* The Win32 window class registered for the windows window.
*/
ATOM window_class;
WindowClass window_class;
public:
/**