wince6.0 随手录
2008-04-07 16:51
169 查看
1.窗口满屏显示,最大化显示
在OnInitDialog()中:
满屏:
int m_canvasW = GetSystemMetrics(SM_CXSCREEN);
int m_canvasH = GetSystemMetrics(SM_CYSCREEN);
::SetWindowPos(this->GetSafeHwnd(),HWND_TOPMOST,0,0,m_canvasW,m_canvasH,SWP_SHOWWINDOW);
最大化:
CRect m_FullScreenRect; //全屏区域
CRect WindowRect;
GetWindowRect(&WindowRect);
CRect ClientRect;
RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposQuery, &ClientRect);
ClientToScreen(&ClientRect);
int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
int nFullHeight=GetSystemMetrics(SM_CYSCREEN);
m_FullScreenRect.left = WindowRect.left-ClientRect.left;
m_FullScreenRect.top=WindowRect.top-ClientRect.top;
m_FullScreenRect.right=WindowRect.right-ClientRect.right+nFullWidth;
m_FullScreenRect.bottom=WindowRect.bottom-ClientRect.bottom+nFullHeight;
this->SetWindowPos(&wndBottom,m_FullScreenRect.left,m_FullScreenRect.top,m_FullScreenRect.Width(),
m_FullScreenRect.Height(),SWP_SHOWWINDOW);
备注:原本打算用::SHFullScreen(m_hWnd,SHFS_HIDETASKBAR);来做的,发现不知道为什么不行,貌似不支持!
而windows moible 是支持的!
2.通过点击控件 打开指定目录的软件
PROCESS_INFORMATION pi = {0};
if (FALSE ==CreateProcess(L"//Storage Card//GPS.exe", NULL, NULL,
NULL, FALSE, 0, NULL, NULL, NULL, &pi))
{
MessageBox(L"failed to load GPS software!");
}
3. http://www.21eic.com/embed/note2279.html (世纪电子网)
在OnInitDialog()中:
满屏:
int m_canvasW = GetSystemMetrics(SM_CXSCREEN);
int m_canvasH = GetSystemMetrics(SM_CYSCREEN);
::SetWindowPos(this->GetSafeHwnd(),HWND_TOPMOST,0,0,m_canvasW,m_canvasH,SWP_SHOWWINDOW);
最大化:
CRect m_FullScreenRect; //全屏区域
CRect WindowRect;
GetWindowRect(&WindowRect);
CRect ClientRect;
RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposQuery, &ClientRect);
ClientToScreen(&ClientRect);
int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
int nFullHeight=GetSystemMetrics(SM_CYSCREEN);
m_FullScreenRect.left = WindowRect.left-ClientRect.left;
m_FullScreenRect.top=WindowRect.top-ClientRect.top;
m_FullScreenRect.right=WindowRect.right-ClientRect.right+nFullWidth;
m_FullScreenRect.bottom=WindowRect.bottom-ClientRect.bottom+nFullHeight;
this->SetWindowPos(&wndBottom,m_FullScreenRect.left,m_FullScreenRect.top,m_FullScreenRect.Width(),
m_FullScreenRect.Height(),SWP_SHOWWINDOW);
备注:原本打算用::SHFullScreen(m_hWnd,SHFS_HIDETASKBAR);来做的,发现不知道为什么不行,貌似不支持!
而windows moible 是支持的!
2.通过点击控件 打开指定目录的软件
PROCESS_INFORMATION pi = {0};
if (FALSE ==CreateProcess(L"//Storage Card//GPS.exe", NULL, NULL,
NULL, FALSE, 0, NULL, NULL, NULL, &pi))
{
MessageBox(L"failed to load GPS software!");
}
3. http://www.21eic.com/embed/note2279.html (世纪电子网)
相关文章推荐
- WINCE6.0 远程工具,不能使用ActiveSync连接的问题
- wince6.0编译环境123
- css tips 1(不太正规,随手记)
- WinCE6.0学习之EBoot源码分析----startup.s(四)
- WINCE6.0添加微软简体中文输入法3.0
- 随手记:为系统设计一套简易的JavaScript框架需要考虑的要素
- wince6.0 电源管理 遇到 问题与解决
- WinCE6.0 BootloaderMain源码分析之OEMLaunch
- OpenGLES加载png纹理/WinCE6.0/Cximage库
- WinCE EBOOT中的BootPart分析 基于WinCE6.0
- WINCE6.0在控制面板添加控制面板应用程序
- WinCE6.0 修改开机Logo方法集锦(一)
- 一个不能创建WINCE6.0工程的问题
- WinCE6.0+ S3C6410 IIC驱动源码学习
- 关于wince6.0休眠唤醒同步不上的问题
- winCE6.0摄像头驱动分析
- 图解WinCE6.0下的内核驱动和用户驱动
- Wince 6.0 教程---第三课. WINCE6.0 文件结构简介
- 19.VC(ui)-加载图片资源的方法(随手代码)
- WinCE6.0 OAL的特点