From: Julian Smart Date: Mon, 6 Feb 2006 17:42:15 +0000 (+0000) Subject: Added wxSYS_TABLET_PRESENT to check for tablet capability X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ddec9f1eeb99ef15f18b0bcb7ff503cca4a2942f?hp=9393136df5bd1a2dd243a38df28731c96aa4e04f Added wxSYS_TABLET_PRESENT to check for tablet capability git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index 1702717ce4..451b364611 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -96,6 +96,27 @@ #define VK_OEM_PERIOD 0xBE #endif +#ifndef SM_TABLETPC + #define SM_TABLETPC 86 +#endif + +#ifndef INKEDIT_CLASS +# define INKEDIT_CLASSW L"INKEDIT" +# ifdef UNICODE +# define INKEDIT_CLASS INKEDIT_CLASSW +# else +# define INKEDIT_CLASS "INKEDIT" +# endif +#endif + +#ifndef EM_SETINKINSERTMODE +# define EM_SETINKINSERTMODE (WM_USER + 0x0204) +#endif + +#ifndef EM_SETUSEMOUSEFORINPUT +#define EM_SETUSEMOUSEFORINPUT (WM_USER + 0x224) +#endif + // ---------------------------------------------------------------------------- // ListView common control // Needed by listctrl.cpp diff --git a/include/wx/settings.h b/include/wx/settings.h index 24cee957a2..556e932500 100644 --- a/include/wx/settings.h +++ b/include/wx/settings.h @@ -132,7 +132,8 @@ enum wxSystemMetric enum wxSystemFeature { wxSYS_CAN_DRAW_FRAME_DECORATIONS = 1, - wxSYS_CAN_ICONIZE_FRAME + wxSYS_CAN_ICONIZE_FRAME, + wxSYS_TABLET_PRESENT }; // values for different screen designs diff --git a/src/msw/settings.cpp b/src/msw/settings.cpp index 76d77a96bf..a9b58c8a35 100644 --- a/src/msw/settings.cpp +++ b/src/msw/settings.cpp @@ -40,9 +40,8 @@ #include "wx/module.h" #include "wx/fontutil.h" -#ifdef __WXWINCE__ // for SM_CXCURSOR and SM_CYCURSOR -#include "wx/msw/wince/missing.h" -#endif // __WXWINCE__ +// for SM_CXCURSOR, SM_CYCURSOR, SM_TABLETPC +#include "wx/msw/missing.h" // ---------------------------------------------------------------------------- // private classes @@ -419,6 +418,9 @@ bool wxSystemSettingsNative::HasFeature(wxSystemFeature index) case wxSYS_CAN_DRAW_FRAME_DECORATIONS: return true; + case wxSYS_TABLET_PRESENT: + return ::GetSystemMetrics(SM_TABLETPC) != 0; + default: wxFAIL_MSG( _T("unknown system feature") );