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
This commit is contained in:
@@ -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") );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user