UI: Prevent race condition during emulator startup.

This commit is contained in:
Parker Lamb
2017-07-01 14:36:16 -05:00
parent 0c20f1c0fc
commit fc27b34304
6 changed files with 47 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ class Win32Window : public Window {
NativeWindowHandle native_handle() const override { return hwnd_; }
HWND hwnd() const { return hwnd_; }
void EnableMainMenu() override;
void DisableMainMenu() override;
bool set_title(const std::wstring& title) override;
bool SetIcon(const void* buffer, size_t size) override;
@@ -87,6 +90,9 @@ class Win32MenuItem : public MenuItem {
HMENU handle() { return handle_; }
void EnableMenuItem(Window& window) override;
void DisableMenuItem(Window& window) override;
using MenuItem::OnSelected;
protected: