X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ef092d63b3757744beb71a61a3b818e207632b3..fbf618dff87a9e4a88d5be458cecc50309b30af3:/include/wx/msw/window.h?ds=inline diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index c727eda2e3..2a91ebb3c0 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -13,17 +13,6 @@ #ifndef _WX_WINDOW_H_ #define _WX_WINDOW_H_ -// --------------------------------------------------------------------------- -// headers -// --------------------------------------------------------------------------- - -// [at least] some version of Windows send extra mouse move messages after -// a mouse click or a key press - to temporarily fix this problem, set the -// define below to 1 -// -// a better solution should be found later... -#define wxUSE_MOUSEEVENT_HACK 0 - // --------------------------------------------------------------------------- // constants // --------------------------------------------------------------------------- @@ -430,13 +419,6 @@ protected: int m_xThumbSize; int m_yThumbSize; -#if wxUSE_MOUSEEVENT_HACK - // the coordinates of the last mouse event and the type of it - long m_lastMouseX, - m_lastMouseY; - int m_lastMouseEvent; -#endif // wxUSE_MOUSEEVENT_HACK - // implement the base class pure virtuals virtual void DoClientToScreen( int *x, int *y ) const; virtual void DoScreenToClient( int *x, int *y ) const; @@ -487,10 +469,13 @@ protected: // the background, false otherwise (i.e. the system should erase it) bool DoEraseBackground(WXHDC hDC); - // generate WM_UPDATEUISTATE if it's needed for the OS we're running under + // generate WM_CHANGEUISTATE if it's needed for the OS we're running under // - // the parameter should be one of UIS_XXX constants - void MSWUpdateUIState(int action); + // action should be one of the UIS_XXX constants + // state should be one or more of the UISF_XXX constants + // if action == UIS_INITIALIZE then it doesn't seem to matter what we use + // for state as the system will decide for us what needs to be set + void MSWUpdateUIState(int action, int state = 0); private: // common part of all ctors