需求源代码,帮忙啊~~~~~
解决方案 »
- 无法打开文件"dxerr9.lib"
- 如何去除参数的环境变量?
- vc6高手请进!!!关于BMP图片像素点的问题
- 不让用户在Combo Box控件进行输入,而只让用户进行选择,该怎么办?
- 请教了:
- DirectSound播放多路声音流时出现声音的断续!
- dll中能否使用SQLDMO啊?我怎么在stdafx.h加入如下语句后编译,很多错误呢?在Win32 Application中的exe工程中没有问题.
- 我想使派生的ListBox具有多列风格,同时又想重载它的DrawItem自已绘制每个项目?
- windows media player
- mfc 列表框 数据 保存
- HeapAlloc累计超过HeapCreate上限没有错误,但是单次Alloc超过上限就异常退出,为什么?
- [OpenGL]关于是否存在法线、贴图坐标索引的问题
BOOL CPlay::SwitchFullScreen(BOOL bFullScreen)
{
CWnd* parentWnd = this->GetParent();
if ( NULL == m_ParentWnd && parentWnd != this->GetDesktopWindow())
{
m_ParentWnd = parentWnd;
} if (bFullScreen)
{
this->SetParent(NULL);
::SetWindowPos(this->GetSafeHwnd(), HWND_TOPMOST,-1,-1,-1,-1, SWP_NOMOVE|SWP_NOSIZE);
this->ShowWindow(SW_MAXIMIZE);
}
else
{
this->ShowWindow(SW_RESTORE);
::SetWindowPos(this->GetSafeHwnd(), HWND_TOPMOST,-1,-1,-1,-1,SWP_NOMOVE|SWP_NOSIZE);
CRect parentBounds;
m_ParentWnd->GetClientRect(parentBounds); this->SetParent(m_ParentWnd);
this->MoveWindow(parentBounds);
} bFullScreen = !bFullScreen;
return bFullScreen;
}
BOOL CPlay::SwitchFullScreen(BOOL bFullScreen)这个函数是哪的函数啊,我想通过一个button来实现播放器的全屏播放,应该如何?
在按“Esc”的时候有鼠标消息的,你可以获取,在这里调用setfullscreen(flase)就可以了