////
// The one and only CTransFileApp object
CTransFileApp theApp;
int CDrawButton::m_Style = 1;
HHOOK hWndHook ;
/////////////////////////////////////////////////////////////////////////////
// CTransFileApp initialization
BOOL CTransFileApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic();
#endif
HINSTANCE hModule = GetModuleHandle( NULL );
RunHook ( hModule, GetCurrentThreadId() );
//初始化套接字
WSAData data;
WSAStartup(2,&data);
CTransFileDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
return FALSE;
}
int CTransFileApp::ExitInstance()
{
StopHook();
return CWinApp::ExitInstance();
}