菜鸟问题:如何在wince里显示一个全屏窗口 ( EVC4.0 )

qiledexin 2006-07-06 11:11:00
如题,
谢谢
...全文
521 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiledexin 2006-07-06
  • 打赏
  • 举报
回复
谢谢楼上的,不过好象不可以啊
“SHFullScreen”这是什么函数?
zhoujie20153 2006-07-06
  • 打赏
  • 举报
回复
void FullScreen(HWND hDlg)
{
RECT rc;
GetWindowRect(hDlg, &rc);
SHFullScreen(hDlg, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON | SHFS_HIDESTARTICON);
MoveWindow( hDlg, rc.left, rc.top, rc.right, rc.bottom, TRUE);
}
qiledexin 2006-07-06
  • 打赏
  • 举报
回复
谢谢,可以用的,不过我需要的和这个不太一样.

我要的是整个全屏,就像realplayer或者mediaplayer等播放器全屏时的样子.

我先结贴,明天再继续问.

以后可以多请教你吗? 我的mail: jf.gu@bosen-sh.com
qiledexin 2006-07-06
  • 打赏
  • 举报
回复
谢谢你,我去试一下
:-)
zhoujie20153 2006-07-06
  • 打赏
  • 举报
回复
我刚才试过了的
要是再不行的话我也没有办法帮你:)
zhoujie20153 2006-07-06
  • 打赏
  • 举报
回复
那你在InitDialog用如下代码实现:

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);
qiledexin 2006-07-06
  • 打赏
  • 举报
回复
Header: Aygshell.h 这个我没有啊

我用的是evc4.0,自带的standsdk,在模拟器上运行

OS Versions: Windows CE .NET 4.2 and later.是不是这一条不符合?
zhoujie20153 2006-07-06
  • 打赏
  • 举报
回复
BOOL SHFullScreen(
HWND hwndRequester,
DWORD dwState
);
hwndRequester
[in] Handle to the top-level window requesting the full-screen state. If you are using one of the SHFS_HIDE* flags, this window must be the foreground window or the function will fail.
dwState
[in] Specifies the state of the window. The following table shows the possible values for this parameter.
SHFS_SHOWTASKBAR
SHFS_HIDETASKBAR
SHFS_SHOWSTARTICON
SHFS_HIDESTARTICON

OS Versions: Windows CE .NET 4.2 and later.
Header: Aygshell.h.
Link Library: Aygshell.lib

19,502

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧