X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0cb01589f81b1794e07b82ff3d23f9757fb33d2..4f53523161202c06e848824c2ec2817cb9878180:/include/wx/msw/window.h diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index eaf3ff370f..63cdaf66dd 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -177,6 +177,12 @@ public: wxWindow* GetWindowChild(wxWindowID id); #endif // __WXUNIVERSAL__ +#if wxUSE_HOTKEY + // install and deinstall a system wide hotkey + virtual bool RegisterHotKey(int hotkeyId, int modifiers, int keycode); + virtual bool UnregisterHotKey(int hotkeyId); +#endif // wxUSE_HOTKEY + // implementation from now on // -------------------------- @@ -191,7 +197,6 @@ public: // -------------- void OnEraseBackground(wxEraseEvent& event); - void OnIdle(wxIdleEvent& event); void OnPaint(wxPaintEvent& event); public: @@ -363,6 +368,9 @@ public: bool HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII = FALSE); bool HandleKeyDown(WXWPARAM wParam, WXLPARAM lParam); bool HandleKeyUp(WXWPARAM wParam, WXLPARAM lParam); +#if wxUSE_ACCEL + bool HandleHotKey(WXWPARAM wParam, WXLPARAM lParam); +#endif #ifdef __WIN32__ int HandleMenuChar(int chAccel, WXLPARAM lParam); #endif @@ -415,6 +423,10 @@ public: // check if mouse is in the window bool IsMouseInWindow() const; + // virtual function for implementing internal idle + // behaviour + virtual void OnInternalIdle() ; + protected: // the window handle WXHWND m_hWnd;