VMR的全屏模式如何调出来?微软专家的回复没有奏效

httpaspjspphp 2007-04-03 06:11:43
VMR的全屏模式如何调出来?
这是微软专家的回答:
Determine the size of the display you are using, change
the window style of your playback window to WS_EX_TOPMOST
and the resize your window to occupy the entire screen.


You may have to make your window a top-level window and
remove other window adormants such as title bars, menus
borders etc.


This posting is provided "AS IS" with no warranties, and
confers no rights. You assume all risk for your use. (c)
2003 Microsoft Corporation. All rights reserved.




但是好像不行
那位大侠作出来过
指教一下
谢谢
...全文
359 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
cnfreedom 2007-04-10
  • 打赏
  • 举报
回复
int cx,cy;
cx = GetSystemMetrics(SM_CXSCREEN);
cy = GetSystemMetrics(SM_CYSCREEN);
//在用MoveWindow
ModifyStyle(WS_BORDER | WS_DLGFRAME | WS_THICKFRAME, WS_POPUP, SWP_NOSIZE);
CRect rcTemp;

int s1, s2;
ifstream fin;
fin.open("screen.siz");
fin >> s1 >> s2;
fin.close();

rcTemp.BottomRight() = CPoint(3, s2+3);
rcTemp.TopLeft() = CPoint(0-(s1+3), 0-3);
MoveWindow(&rcTemp);

再 VRM中使用 pWC->SetVideoClippingWindow(ghApp); ghApp是你的窗口句柄

注意!你的RENDERFILE一定要再SetVideoClippoingWindow之后
lserlohn 2007-04-06
  • 打赏
  • 举报
回复
那就奇怪啊,为什么不行,重新设定HWND出错了?
lserlohn 2007-04-04
  • 打赏
  • 举报
回复
应该可以阿,建一个跟桌面大小一样的Window,然后把VMR的 HWND 打到这个Window上
httpaspjspphp 2007-04-04
  • 打赏
  • 举报
回复
不行啊
我弄了2天了

2,543

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
  • 多媒体/流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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