GetSystemInfo(&siSysInfo);dwProcessorType An obsolete member that is retained for compatibility. Use the wProcessorArchitecture, wProcessorLevel, and wProcessorRevision members to determine the type of processor. PROCESSOR_INTEL_386 (386)PROCESSOR_INTEL_486 (486)PROCESSOR_INTEL_PENTIUM (586)PROCESSOR_INTEL_IA64 (2200)PROCESSOR_AMD_X8664 (8664)PROCESSOR_ARM (Reserved)
wProcessorArchitecture The processor architecture of the installed operating system. This member can be one of the following values. ValueMeaning PROCESSOR_ARCHITECTURE_AMD649 x64 (AMD or Intel)
Use the Windows GetSystemMetricsAPI and pass in SM_TABLETPC as the value of the index. SM_TABLETPC is defined in Winuser.h. The value of SM_TABLETPC is 86.
int iIndex = GetSystemMetrics(SM_TABLETPC);这样写?PC上的返回值是0啊,不知道平板上是多少,下次试试。。 这个函数只用过来取屏幕分辨率,敢问大侠上面那样写是什么目的?
比如按钮的Hover效果,PC下的Hover是圆角的边框,鼠标移开就没了。但是平板上要按下了按钮才有,而且然后会一直保持Hover状态直到失去焦点
系统的话,你可以GetVersionEx 试试看返回值
GetSystemInfo(&siSysInfo);dwProcessorType
An obsolete member that is retained for compatibility. Use the wProcessorArchitecture, wProcessorLevel, and wProcessorRevision members to determine the type of processor.
PROCESSOR_INTEL_386 (386)PROCESSOR_INTEL_486 (486)PROCESSOR_INTEL_PENTIUM (586)PROCESSOR_INTEL_IA64 (2200)PROCESSOR_AMD_X8664 (8664)PROCESSOR_ARM (Reserved)
The processor architecture of the installed operating system. This member can be one of the following values.
ValueMeaning PROCESSOR_ARCHITECTURE_AMD649
x64 (AMD or Intel)
PROCESSOR_ARCHITECTURE_ARMReserved
ARM
PROCESSOR_ARCHITECTURE_IA646
Intel Itanium-based
PROCESSOR_ARCHITECTURE_INTEL0
x86
PROCESSOR_ARCHITECTURE_UNKNOWN0xffff
Unknown architecture.
dwOemId: 0wProcessorArchitecture: 0wReserved: 0dwPageSize: 4096dwActiveProcessorMask: 15dwNumberOfProcessors: 4dwProcessorType: 586dwAllocationGranularity: 65536wProcessorLevel: 6wProcessorRevision: 14857//平板的值是13569
网上说这个wProcessorRevision表示CPU版本
是否ARM只是针对WinCE的,安卓和Win8的不是ARM的类型?
ARM版本下能开发MFC程序?我没看错吧,有Win32 ARM版本的?
这个函数只用过来取屏幕分辨率,敢问大侠上面那样写是什么目的?
触控就如同鼠标一样的,差不多,请看6楼
唯一不同的是平板没有外接键盘,所以我才发了这个帖子
手头没有win板,没法给你测试,以上我是查自msdn
这个函数只用过来取屏幕分辨率,敢问大侠上面那样写是什么目的?
GetSystemMetrics可不仅是用来取屏幕分辩率!