我做了一个WS_POPUP类型的对话框,需要根据某一个view的可见或隐藏来对这个对话做显示或隐藏(不能是child类型)
怎样根据message判断view收到隐藏或显示的消息,用下面的代码好像不行
if(message == SW_HIDE)
{
m_VideoWnd->ShowWindow(SW_HIDE);
}
else if(message == SW_SHOW)
{
m_VideoWnd->ShowWindow(SW_SHOW);
}
应该怎样实时地知道view是显示还是隐藏呢?
怎样根据message判断view收到隐藏或显示的消息,用下面的代码好像不行
if(message == SW_HIDE)
{
m_VideoWnd->ShowWindow(SW_HIDE);
}
else if(message == SW_SHOW)
{
m_VideoWnd->ShowWindow(SW_SHOW);
}
应该怎样实时地知道view是显示还是隐藏呢?
解决方案 »
- 越来越觉得搞技术没前途了
- CMFCToolBar 添加控件问题(slider)
- 『关于』数据导入到Excel问题???
- 关于WriteProcessMemory函数使用的问题(急)
- 问一个位图的问题
- 求粘:window窗口类名大全,如任务栏的是Shell_TrayWnd,粘得越多分越多哦!!!
- 怎样清空Webbrowser控件的缓存内容? 它消耗太多的内存空间。
- 求教!!!!
- MFC中settimer精度不够怎么办?求指导。
- 100分!!!!!!啦!!!!我想用telnet协议登陆主机,执行主机上的命令把结果传回我的机器,要求不能出现DOS模式
- 一个筛选数字的程序 不会写 帮忙看下
- CView 是否可以创建弹出式的样式?
{
// TODO: 在此添加专用代码和/或调用基类
if(message == SW_HIDE)
{
m_VideoWnd->ShowWindow(SW_HIDE);
}
else if(message == SW_SHOW)
{
m_VideoWnd->ShowWindow(SW_SHOW);
} return CView::OnWndMsg(message, wParam, lParam, pResult);
}
Syntax
WM_SHOWWINDOW WPARAM wParam
LPARAM lParam;
ParameterswParam
Specifies whether a window is being shown. If wParam is TRUE, the window is being shown. If wParam is FALSE, the window is being hidden.
lParam
Specifies the status of the window being shown. If lParam is zero, the message was sent because of a call to the ShowWindow function; otherwise, lParam is one of the following values.
SW_OTHERUNZOOM
The window is being uncovered because a maximize window was restored or minimized.
SW_OTHERZOOM
The window is being covered by another window that has been maximized.
SW_PARENTCLOSING
The window's owner window is being minimized.
SW_PARENTOPENING
The window's owner window is being restored.
Return ValueIf an application processes this message, it should return zero.
IsWindowVisible()