如何使一个窗口移动时,另一个窗口跟着移动 处理 WM_MOVE ,使用 SetWindowPos() 移动另外一个窗口 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 void CMainFrame::OnWindowPosChanging( WINDOWPOS* lpwndpos ){ CFrameWnd::OnWindowPosChanging(lpwndpos); m_pMyWnd1->SetWindowPos(NULL , theX , theY , 0 , 0 , SWP_NOSIZE); m_pMyWnd2->SetWindowPos(NULL , theX , theY , 0 , 0 , SWP_NOSIZE); ....} 在这里我使用的是两个对话框,一个是主对话框,另一个是非模式对话框,因此,用下面方法并不能很好的解决这个问题void CMainFrame::OnWindowPosChanging( WINDOWPOS* lpwndpos ){ CFrameWnd::OnWindowPosChanging(lpwndpos); m_pMyWnd1->SetWindowPos(NULL , theX , theY , 0 , 0 , SWP_NOSIZE); m_pMyWnd2->SetWindowPos(NULL , theX , theY , 0 , 0 , SWP_NOSIZE); ....} Spin Control 控件如何使一半禁用变灰 #define UNICODE 提示warning C4005: 'UNICODE' : macro redefinition 对话框中加工具栏的问题??? dll 的线程问题,请高手指教 求教如何在对话框中加入菜单和弹出菜单 找C或C++开发合作伙伴 Ado中调用RecordSet的GetEditMode()抛出异常?可能是什么原因,急急急! 谁动了我的内存,焦急等待 动态内存分配问题~~~~急~~~~~ 请教双向语音录音功能怎么实现,用了很多库都不行 请问如何获得窗口句柄 有谁可以告诉我编程实现用现有的软件打开其可打开的多个文件?
{
CFrameWnd::OnWindowPosChanging(lpwndpos);
m_pMyWnd1->SetWindowPos(NULL , theX , theY , 0 , 0 , SWP_NOSIZE);
m_pMyWnd2->SetWindowPos(NULL , theX , theY , 0 , 0 , SWP_NOSIZE);
....
}
{
CFrameWnd::OnWindowPosChanging(lpwndpos);
m_pMyWnd1->SetWindowPos(NULL , theX , theY , 0 , 0 , SWP_NOSIZE);
m_pMyWnd2->SetWindowPos(NULL , theX , theY , 0 , 0 , SWP_NOSIZE);
....
}