请直接查找CWnd类!!!
CWnd* cWnd; cWnd= cWnd->FindWindowW(L"kwmusicmaindlg",NULL); CRect cRect; cWnd->GetWindowRect((LPRECT)(&cRect));//得到窗口的矩形 cWnd->MoveWindow(&(CRect(30,30,300,400)),1);//移动 cWnd->ShowWindow(SW_SHOWMAXIMIZED);//。。。SW cWnd->UpdateWindow(); cWnd->CloseWindow();//关闭 cWnd->EnableWindow(1);//使能用
MFC 查找其他窗口句柄 操作其他窗口,布布扣,bubuko.com
原文:http://www.cnblogs.com/zjutlitao/p/3614980.html