TA的每日心情 | 开心 2011-11-24 11:37 |
---|
签到天数: 1 天 [LV.1]初来乍到 鲜花( 3) 鸡蛋( 0)
|
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 |
|