vs2010创建的对话框程序,全屏怎么让程序覆盖任务栏?

女神打Boss 2016-01-04 03:14:18
代码是 在初始化函数添加

int m_cx, m_cy;
m_cx = GetSystemMetrics(SM_CXSCREEN);//屏幕像素宽度
m_cy = GetSystemMetrics(SM_CYSCREEN);//屏幕像素高度
SetWindowPos(NULL, 0, 0, m_cx, m_cy, 0);


在vs2008运行可以覆盖任务栏,但是vs2010就不行了

求指点
...全文
169 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2016-01-14
  • 打赏
  • 举报
回复
英语也是一门计算机语言的说。
女神打Boss 2016-01-14
  • 打赏
  • 举报
回复
英语不会完全看不懂,还是结贴吧
赵4老师 2016-01-04
  • 打赏
  • 举报
回复
Global Names A name of an object, function, or enumerator is global if it is introduced outside any function or class or prefixed by the global unary scope operator (::), and if it is not used in conjunction with any of these binary operators: Scope-resolution (::) Member-selection for objects and references (.) Member-selection for pointers (–>)
赵4老师 2016-01-04
  • 打赏
  • 举报
回复
::SetWindowPos //Windows User Interface:Platform SDK BOOL SetWindowPos( HWND hWnd, // handle to window HWND hWndInsertAfter, // placement-order handle int X, // horizontal position int Y, // vertical position int cx, // width int cy, // height UINT uFlags // window-positioning flags ); CWnd::SetWindowPos //MFC BOOL SetWindowPos( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags );
女神打Boss 2016-01-04
  • 打赏
  • 举报
回复
::SetWindowPos(this->GetSafeHwnd(), HWND_TOPMOST, 0, 0, m_cx, m_cy, SWP_NOOWNERZORDER|SWP_SHOWWINDOW); 代码修改成这样解决了。 求给出setWindowPos 和 ::setWindowPos函数区别的给分
女神打Boss 2016-01-04
  • 打赏
  • 举报
回复
如果是重载OnGetMinMaxInfo函数,那么OnGetMinMaxInfo函数实现里面该怎么写?

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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