Windows/Registry

Windows 10 Tablet mode

구조개발자 2020. 9. 20. 09:17

일반 데스크탑에선 별 문제 없던 코드가 서피스와 같은 타블릿 PC에선 문제가 되고 있습니다. 

그래서 타블릿인지 아닌지 어떻게 알아내지? 하고 찾아보니 아래와 같은 구문이 있습니다.

 

I have an unofficial solution for my own working. The following key will change during the mode change:
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell]
"TabletMode"=dword:00000000

When the Tablet Mode is enabled, it changed to 1.

 

출처:

 

About Windows 10 Tablet Mode API

I have the same issue. Our Win32 desktop application was working fine in any version before Windows 10. But in Windows 10 preview, when the tablet mode is turned on, the GUI's behavior became strange and hard to use. So i'm guessing I may need to do some h

social.msdn.microsoft.com

private static Boolean QueryTabletMode ()
   {
       int state = GetSystemMetrics(SM_CONVERTIBLESLATEMODE);
       return (state == 0);
   }

 

 

How to detect tablet mode

I'm using the following code to detect if a user is in tablet mode or not. I'm on a Surface Pro and when I decouple the keyboard and make the PC into a tablet, IsTabletMode returns true (which it s...

stackoverflow.com