1.自动打开微软蓝牙
使用BthUtil.dll中的BthSetMode函数。
2.改变音量
使用waveOutSetVolume函数。
3.设置震动、静音
使用aygshell.dll中的SndSetSound函数。
4.关闭输入法
使用SipShowIM函数。
5.隐藏/显示 输入法、任务栏
使用SHFullScreen函数。如果是MFC对话框的话,还需要添加以下代码才能实现输入法的隐藏:
m_bFullScreen = FALSE;
6.在VS2005下创建MFC工程
EVC下将MFC的工程分为PPC和wince两种,而VS2005下,不再区分这两者。但通常情况下PPC的程序在wince设备上并不能运行。这时可以采用以下方法:
1)有SDK时,在建立工程时,选择Platform即可。
2)无SDK时,在工程设置的预定义宏中,去掉WIN32_PLATFORM_WFSP或WIN32_PLATFORM_PSPC宏,前者表示Smartphone,后者表示Pocket PC。这个宏有时会定义在$PLATFORMDEFINES中。
7.设置全屏
// 隐藏任务栏
HWND hWndTaskBar = ::FindWindow(TEXT("HHTaskBar"), NULL);
if (NULL != hWndTaskBar)
{
::ShowWindow(hWndTaskBar, SW_HIDE);
}
// 如果需要的话,隐藏输入法窗口
SIPINFO sipInfo;
osmemset(&sipInfo, 0, sizeof(SIPINFO));
sipInfo.cbSize = sizeof(SIPINFO);
::SipGetInfo(&sipInfo);
if ((sipInfo.fdwFlags & SIPF_ON) == SIPF_ON)
{
::SipShowIM(SIPF_OFF);
}
// 隐藏“拼”按钮
HWND hWndSipButton = ::FindWindow(TEXT("MS_SIPBUTTON"), NULL);
if (NULL != hWndSipButton)
{
::ShowWindow(hWndSipButton, SW_HIDE);
}
分享到:
相关推荐
Windows Mobile常用技巧合集
windows mobile 6.1注册表修改技巧
Windows Mobile开发实验,wince操作系统定制。
WindowsMobile5 源码WindowsMobile5 源码WindowsMobile5 源码WindowsMobile5 源码
如何搭建windows mobile应用开发的环境
众所周知,在windows7操作系统中已经不需要安装active sync ...清您下载windows mobile center for windows7(vista也是如此)软件,然后将手机与电脑连接即可.亲自操作,该方法适合于任何版本的windows mobile 手机系统.
Windows Mobile 经典源码 学习Windows Mobile 的不二选择
Windows Mobile开发Windows Mobile开发Windows Mobile开发Windows Mobile开发
windows mobile 平台下的My mobile软件。
Windows Mobile for HP iPAQ 114
Windows mobile 6.5常用软件
QR条形码的开发程序,能够在windows mobile 6中实现QR条形码的开发程序,能够在windows mobile 6中实现,eMbedded Visual C++和VS两种源代码
windows mobile 6.0 基于WebService方式与PC Server通讯的demo
WINDOWS MOBILE滑屏解锁
Windows Mobile应用程序开发介绍 .Windows Mobile平台 .Windows Mobile开发环境搭建 .Windows Mobile开发技术和资源 .Demo
windows mobile直连版
windows mobile驱动开发
ppc windows mobile rom
windows mobile 同步程序,本程序为windows xp 专用!
windows mobile编程起步,简单的一个小教程