MFC怎样判断一个窗口是处于显示还是隐藏状态

SKATE11 2014-04-01 10:17:16
如题 MFC怎样判断一个窗口是处于显示还是隐藏状态 也就是SW_SHOW 和 SW_HIDE状态 怎样判断啊
...全文
1171 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2014-04-01
  • 打赏
  • 举报
回复
CWindow::IsWindowVisible BOOL IsWindowVisible( ) const; SeeIsWindowVisible in the Win32 SDK. Remarks Determines the window’s visibility state. CWindow Overview | Class Members See Also CWindow::IsWindow, CWindow::IsWindowUnicode CWnd::IsWindowVisible BOOL IsWindowVisible( ) const; Return Value Nonzero if CWnd is visible (has the WS_VISIBLE style bit set, and parent window is visible). Because the return value reflects the state of the WS_VISIBLE style bit, the return value may be nonzero even though CWnd is totally obscured by other windows. Remarks Determines the visibility state of the given window. A window possesses a visibility state indicated by the WS_VISIBLE style bit. When this style bit is set with a call to the ShowWindow member function, the window is displayed and subsequent drawing to the window is displayed as long as the window has the style bit set. Any drawing to a window that has the WS_VISIBLE style will not be displayed if the window is covered by other windows or is clipped by its parent window. CWnd Overview | Class Members | Hierarchy Chart See Also CWnd::ShowWindow,::IsWindowVisible

64,686

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

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