请问如何在MFC中使用active Splash?

解决方案 »

  1.   

    选择工程菜单,选添加工程->Components and controls...
    在打开的对话框中选Visual C++ Components文件夹,插入Splash screen这个控件,一般系统就已经把完整的代码加到你的工程里去了,不过要主要还是需要修改一点东西,把系统自动为你多生成的InitInstance()删掉,在原来的的InitInstance()函数中添加
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);//这行本来就有,紧跟着添加
    CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);//添加的行m_pMainWnd->ShowWindow(SW_HIDE);//这行需要修改为SW_HIDE修改CSplashWnd::HideSplashScreen()
    {
         DestroyWindow();
         AfxGetMainWnd()->ShowWindow(SW_SHOW);
         AfxGetMainWnd()->UpdateWindow();
    }在CSplashWnd::OnCreate(...)
    {
          SetTimer(1,1000,NULL);//设定显示时间,1000毫秒
    }
      

  2.   

    只知道Splash,不知道ActiveSplash
    Project->Insert into Project ->Components and Controls
    有一个CSplashWd的类
      

  3.   

    我说的是activesplash,是activeskin那个公司做的