MFC双屏显示

来源:互联网 发布:最近网络很红的男扮女 编辑:程序博客网 时间:2024/04/29 09:31
//一、为工程添加一个类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: 在此处添加消息处理程序代码}
0 0
原创粉丝点击