mythosdev 发表于 2015-9-22 09:21:19

neuz.exe 启动窗口

1:打开源码文件 neuz 找到VersionCommon.h
添加 #define __LOADER_SPLASH启动窗口

2:打开源码文件 neuz找到 Neuz.cpp
   查找      #include "ClientMsg.h"
在后面添加#ifdef __LOADER_SPLASH
             #include "loadersplash.h"
             SPLASHLOAD NeuzLoad;
             #endif
查找

void CNeuzApp::WaitLoading()
{
OutputDebugString("WaitLoading start\n");
if( m_hThread != INVALID_HANDLE_VALUE )
{
WaitForSingleObject( m_hThread, INFINITE );
m_hThread = INVALID_HANDLE_VALUE;
}
OutputDebugString("WaitLoading end\n");
}

void CNeuzApp::BeginLoadThread()
{
CResFile::ScanResource( "" );

帮这一段话 改为
void CNeuzApp::WaitLoading()
{
OutputDebugString("WaitLoading start\n");
#ifdef __LOADER_SPLASH
   NeuzLoad.Load(m_hInstance,ID_PRELOADER);
   NeuzLoad.Active();
#endif
if( m_hThread != INVALID_HANDLE_VALUE )
{
WaitForSingleObject( m_hThread, INFINITE );
m_hThread = INVALID_HANDLE_VALUE;
}
OutputDebugString("WaitLoading end\n");
}

void CNeuzApp::BeginLoadThread()
{
CResFile::ScanResource( "" );
#ifdef __LOADER_SPLASH


查找 #endif//__BS_CHANGING_ENVIR
后面添加
          #ifdef __LOADER_SPLASH
         ShowWindow( m_hWnd, SW_SHOW );
      if(NeuzLoad.SHOW)
      NeuzLoad.exit();
#endif

dianpula 发表于 2018-12-22 23:51:17

       
顶一个,支持
页: [1]
查看完整版本: neuz.exe 启动窗口