//一、为工程添加一个类Spxs,在Spxs.h中添加
public:
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
//二、主cpp里添加:
#include"Spxs.h"
Spxs dlg1
//初始化函数里添加:
dlg1.Create(IDD_TEST_111,GetDesktopWindow());
dlg1.ShowWindow(SW_SHOWNORMAL);
dlg1.MoveWindow(0,0,800,480,true);
//在Spxs.cpp中添加:
void Spxs::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
CDialog::OnActivate(nState, pWndOther, bMinimized);
// TODO: 在此处添加消息处理程序代码
}
MFC双屏显示
最新推荐文章于 2024-05-24 10:47:50 发布