// CorpSms.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "CorpSms.h" #include "MainFrm.h" #include "CorpSmsDoc.h" #include "FuncView.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CCorpSmsApp #include "AboutDlg2.h" BEGIN_MESSAGE_MAP(CCorpSmsApp, CWinApp) //{{AFX_MSG_MAP(CCorpSmsApp) ON_COMMAND(ID_APP_ABOUT, OnAppAbout) ON_COMMAND(ID_ABOUT_MOBSET, OnAboutMobset) //}}AFX_MSG_MAP // Standard file based document commands ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew) ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen) // Standard print setup command ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CCorpSmsApp construction CCorpSmsApp::CCorpSmsApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CCorpSmsApp object CCorpSmsApp theApp; ///////////////////////////////////////////////////////////////////////////// // CCorpSmsApp initialization BOOL CCorpSmsApp::InitInstance() { // TCHAR szBuf[] = _T("����"); /* CDes des; char szPasswd[64]={0}; char szSec[64]={0};_tcscpy( szSec , "ZxyUi129V7L7L4dvcQ" ); char szKey[16]={0};_tcscpy( szKey , "Sms%Corp" ); long lOut = sizeof(szPasswd); des.Encrypt( szSec , _tcslen(szSec) , szPasswd , lOut , szKey , 8 ); TRACE( szPasswd ); return false; */ if (!AfxOleInit()) AfxMessageBox(_T("Ole init faile")); if (!AfxSocketInit()) { AfxMessageBox(IDP_SOCKETS_INIT_FAILED); return FALSE; } //CoInitialize(NULL); CoInitializeEx( NULL , COINIT_MULTITHREADED ); ::AfxInitRichEdit2(); //AfxEnableControlContainer(); INITCOMMONCONTROLSEX InitCtrls; InitCtrls.dwSize = sizeof(InitCtrls); // ��������Ϊ��������Ҫ��Ӧ�ó�����ʹ�õ� // �����ؼ��ࡣ InitCtrls.dwICC = ICC_WIN95_CLASSES; InitCommonControlsEx(&InitCtrls); CWinAppEx::InitInstance(); AfxEnableControlContainer(); // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. /* #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif */ #ifdef SMSCORP_SIZE TCHAR szFile[512]; GetModuleFileName(NULL,szFile,sizeof(szFile)); HANDLE hFile; hFile = CreateFile( szFile , 0 , FILE_SHARE_READ,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_ARCHIVE ,NULL); if ( hFile != INVALID_HANDLE_VALUE ) { DWORD dw2 = 0; DWORD dw = GetFileSize( hFile , &dw2 ); CloseHandle( hFile ); if ( dw > SMSCORP_MAXSIZE || dw<100000) //�ļ����϶��DZ��ƻ� { return false; } } else { return false; } #endif // Change the registry key under which our settings are stored. // TODO: You should modify this string to be something appropriate // such as the name of your company or organization. SetRegistryKey(_T("Local AppWizard-Generated Applications")); LoadStdProfileSettings(0); // Load standard INI file options (including MRU) // Register the application's document templates. Document templates // serve as the connection between documents, frame windows and views. CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CCorpSmsDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CFuncView)); AddDocTemplate(pDocTemplate); // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) return FALSE; //�ж��Ƿ����� TCHAR szCmd[ 256 ]={0}; _stprintf( szCmd , ::AfxGetApp()->m_lpCmdLine ); if (szCmd[0]!=0 && !_tcsncmp(szCmd,_T("EXCELADDIN_OPEN"),_tcslen(_T("EXCELADDIN_OPEN")) ) ) { m_pMainWnd->ShowWindow(SW_HIDE); } else { //��¼�ɹ����ٳ��������� //m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED); m_pMainWnd->ShowWindow(SW_HIDE); } //m_pMainWnd->ShowWindow(SW_HIDE); m_pMainWnd->UpdateWindow(); #ifdef SMSCENTER_ADC #ifdef MOBSET_OEM m_pMainWnd->SetWindowText( _T("ADC������ V6.86") ); #else m_pMainWnd->SetWindowText( _T("�й��ƶ�ADC������ V6.86") ); #endif #else m_pMainWnd->SetWindowText( _T("������ V6.86") ); #endif #ifdef SMSCENTER_TWO m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef SMSCENTER_NX m_pMainWnd->SetWindowText( _T("������ V6.86 for �㶫ũ��") ); #endif #ifdef SMSCENTER_DGSB m_pMainWnd->SetWindowText( _T("������ V6.86 for ��ݸ����") ); #endif #ifdef SMSCENTER_DGSB_FIVE m_pMainWnd->SetWindowText(_T("������ V6.86 for ��������")); #endif #ifdef MOBSET_QUERY_VER m_pMainWnd->SetWindowText( _T("������ [��ѯ��] V6.86") ); #endif #ifdef CAR_VER m_pMainWnd->SetWindowText( _T("������ [������ҵ] V6.86") ); #endif #ifdef STOCK_VER m_pMainWnd->SetWindowText( _T("������ [֤ȯ��ҵ] V6.86") ); #endif /* #ifdef CHINABANK_VER m_pMainWnd->SetWindowText( _T("������ [�й�����ר�ð�] V6.86") ); #endif */ #ifdef FSLT_VER m_pMainWnd->SetWindowText( _T("������ [��ͨר�ð�] V6.86") ); #endif #ifdef BGY_VER m_pMainWnd->SetWindowText(_T("������ [�̹�ר�ð�] V6.86")); #endif #ifdef SUPPER_IM_MAS m_pMainWnd->SetWindowText( _T("������ [�ƶ�MASר��] V6.86") ); #endif #ifdef MOBSET_VIPINT m_pMainWnd->SetWindowText( _T("������ [��Ա����] V6.86") ); #endif //#ifdef SUPPER_UBOX // m_pMainWnd->SetWindowText( _T("���ǿ��MASӦ��ϵͳ V1.00") ); //#endif #ifdef MOBSET_DXT m_pMainWnd->SetWindowText( _T("����ͨ") ); #endif #ifdef MOBSET_OEM_XASW m_pMainWnd->SetWindowText( _T("����ʥ��������ר�ö��ŷ���ϵͳ V6.86") ); #endif #ifdef MOBSET_OEM_SUNPO m_pMainWnd->SetWindowText( _T("����E��ͨ V6.86") ); #endif #ifdef MOBSET_OEM_MANI m_pMainWnd->SetWindowText( _T("�������������� V6.86") ); #endif #ifdef MOBSET_OEM_NJYS m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_LJJ m_pMainWnd->SetWindowText( _T("�������ҵ���� V6.86") ); #endif #ifdef MOBSET_OEM_SNLD m_pMainWnd->SetWindowText( _T("������(�����ٵ�ר��) V6.86") ); #endif #ifdef MOBSET_OEM_LONGZX m_pMainWnd->SetWindowText( _T("��֮�ж����� V6.86") ); #endif #ifdef MOBSET_OEM_WFCTT m_pMainWnd->SetWindowText( _T("���ź������� V6.86") ); #endif #ifdef MOBSET_OEM_KMSR m_pMainWnd->SetWindowText( _T("˼�����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_JMHL m_pMainWnd->SetWindowText( _T("��������ͨ V6.86") ); #endif #ifdef MOBSET_OEM_AUYOU m_pMainWnd->SetWindowText( _T("���ζ���ͨ V6.86") ); #endif #ifdef MOBSET_OEM_MDT m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_SZMDT m_pMainWnd->SetWindowText( _T("����ͨ���ƶ�������ҵ����ƽ̨ V6.86") ); #endif #ifdef MOBSET_OEM_SHQX m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_1798 m_pMainWnd->SetWindowText( _T("1798����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_NJLH m_pMainWnd->SetWindowText( _T("��ҵ����e V6.86") ); #endif #ifdef MOBSET_OEM_JSXAT m_pMainWnd->SetWindowText( _T("����Ӧ��ƽ̨ V6.86") ); #endif #ifdef MOBSET_OEM_NDBD m_pMainWnd->SetWindowText( _T("����ƽ̨ V6.86") ); #endif #ifdef MOBSET_OEM_TYF m_pMainWnd->SetWindowText( _T("ͬһ������ƽ̨ V6.86") ); #endif #ifdef MOBSET_OEM_TYF_LZT m_pMainWnd->SetWindowText( _T("��סͨ V6.86") ); #endif #ifdef MOBSET_OEM_TYF_ZXT m_pMainWnd->SetWindowText( _T("ֱЧͨ V6.86") ); #endif #ifdef MOBSET_OEM_TYF_FG m_pMainWnd->SetWindowText( _T("�ɸ���� V6.86") ); #endif #ifdef MOBSET_OEM_TYF_LLL m_pMainWnd->SetWindowText( _T("�ɸ���� V6.86") ); #endif #ifdef MOBSET_OEM_HYBL m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_SDRW m_pMainWnd->SetWindowText( _T("����ͨ V1.0 ˳�������紫������վ") ); #endif #ifdef MOBSET_OEM_HKLC m_pMainWnd->SetWindowText( _T("����ר�� V6.86") ); #endif #ifdef MOBSET_OEM_ZYTX #ifdef SMSCENTER_ADC m_pMainWnd->SetWindowText( _T("ADC����ͨB11.10") ); #else m_pMainWnd->SetWindowText( _T("IE����ͨ1208S") ); #endif #endif #ifdef MOBSET_OEM_GZWY m_pMainWnd->SetWindowText( _T("���ݶ�����") ); #endif #ifdef MOBSET_OEM_TCKJ m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_CQZX m_pMainWnd->SetWindowText( _T("��ҵͨ V3.1") ); #endif #ifdef MOBSET_OEM_WHPGY m_pMainWnd->SetWindowText( _T("�人���ѹ�Ӣ��������˾ http://www.pgysoft.com pgycindy@hotmail.com") ); #endif #ifdef MOBSET_OEM_FSRRX m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_FSFB m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_JMSB m_pMainWnd->SetWindowText( _T("˼������ͨ V6.86") ); #endif #ifdef MOBSET_OEM_BJZX m_pMainWnd->SetWindowText( _T("֪�¶��� V6.86") ); #endif #ifdef MOBSET_OEM_NJJML m_pMainWnd->SetWindowText( _T("PCTroop ��ͨ���� V3.1") ); #endif #ifdef MOBSET_OEM_ZSWE m_pMainWnd->SetWindowText( _T("WELL����ͨ V2.0") ); #endif #ifdef MOBSET_OEM_AHMPDK m_pMainWnd->SetWindowText( _T("����ͨ") ); #endif #ifdef MOBSET_OEM_NJBG m_pMainWnd->SetWindowText( _T("���ŵ��ͨ") ); #endif #ifdef MOBSET_OEM_TLQP m_pMainWnd->SetWindowText( _T("��������") ); #endif #ifdef MOBSET_OEM_YCLC m_pMainWnd->SetWindowText( _T("�����촴��Ϣ��������˾��http//www.nx1861.com") ); #endif #ifdef MOBSET_OEM_NJJT m_pMainWnd->SetWindowText( _T("����ƽ̨V3.1") ); #endif #ifdef MOBSET_OEM_JHXXG #ifdef CAR_VER m_pMainWnd->SetWindowText( _T("���Ŷ���VIP�� [������ҵ]") ); #else m_pMainWnd->SetWindowText( _T("���Ŷ���VIP��") ); #endif #endif #ifdef MOBSET_OEM_SGLX m_pMainWnd->SetWindowText( _T("��Ѹͨ V3.1") ); #endif #ifdef MOBSET_OEM_SWHX m_pMainWnd->SetWindowText( _T("������ V6.86") ); #endif #ifdef MOBSET_OEM_AHXL m_pMainWnd->SetWindowText( _T("����ͨ") ); #endif #ifdef MOBSET_OEM_SZGF m_pMainWnd->SetWindowText( _T("��óͨV6.2") ); #endif #ifdef MOBSET_OEM_GZQT m_pMainWnd->SetWindowText( _T("Ǭ��������� V3.2") ); #endif #ifdef MOBSET_OEM_HZDZ m_pMainWnd->SetWindowText( _T("����ͨ V2.80") ); #ifdef CAR_VER m_pMainWnd->SetWindowText( _T("����ͨ [������ҵ] V2.80") ); #endif #ifdef STOCK_VER m_pMainWnd->SetWindowText( _T("����ͨ [֤ȯ��ҵ] V2.80") ); #endif #endif #ifdef MOBSET_OEM_WAZH m_pMainWnd->SetWindowText( _T("�ݺ���ҵ����ƽ̨V2.80") ); #endif #ifdef MOBSET_OEM_GZTM m_pMainWnd->SetWindowText( _T("���������v2.08") ); #endif #ifdef MOBSET_OEM_NBBX m_pMainWnd->SetWindowText( _T("���Ͷ�����������") ); #endif #ifdef MOBSET_OEM_DGZR m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_SZJS m_pMainWnd->SetWindowText( _T("ʢ��������ҵ����ͨ V8.0") ); #endif #ifdef MOBSET_OEM_LSZH m_pMainWnd->SetWindowText( _T("�к̶��� V6.86") ); #endif #ifdef MOBSET_OEM_SYTC m_pMainWnd->SetWindowText( _T("���״� V6.86") ); #endif #ifdef MOBSET_OEM_CSXN #ifdef MOBSET_DXT m_pMainWnd->SetWindowText( _T("365����ͨ V3.2") ); #else m_pMainWnd->SetWindowText( _T("��������ͨ V3.2") ); #endif #endif #ifdef MOBSET_OEM_NFTC m_pMainWnd->SetWindowText( _T("�Ϸ����� V3.1") ); #endif #ifdef MOBSET_OEM_CDWL m_pMainWnd->SetWindowText( _T("��������������ͨV6.86") ); #endif #ifdef MOBSET_OEM_XMZX m_pMainWnd->SetWindowText( _T("���������ʾ�") ); #endif #ifdef MOBSET_OEM_WZTX m_pMainWnd->SetWindowText( _T("�������ƽ̨") ); #endif #ifdef MOBSET_OEM_WHLW m_pMainWnd->SetWindowText( _T("������ V2.80") ); #endif #ifdef MOBSET_OEM_HNCX m_pMainWnd->SetWindowText( _T("���ض���ͨ V2.80") ); #endif #ifdef MOBSET_OEM_CQBX m_pMainWnd->SetWindowText( _T("��Ѷ��ҵ���� V2.0") ); #endif #ifdef MOBSET_OEM_BJBM m_pMainWnd->SetWindowText( _T("����ͨ����ƽ̨���Ű�") ); #endif #ifdef MOBSET_OEM_NJTD m_pMainWnd->SetWindowText( _T("���м��Ŷ���") ); #endif #ifdef MOBSET_OEM_SJZZR m_pMainWnd->SetWindowText( _T("����ͨV6.86") ); #endif #ifdef MOBSET_OEM_GZTGB m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_NJPB m_pMainWnd->SetWindowText( _T("�ӱ������� V6.86") ); #endif #ifdef MOBSET_OEM_GSZWT m_pMainWnd->SetWindowText( _T("��������ͨ 2006") ); #endif #ifdef MOBSET_OEM_ZSSWT m_pMainWnd->SetWindowText( _T("˰��ͨ 2006") ); #endif #ifdef MOBSET_OEM_ZSZWT m_pMainWnd->SetWindowText( _T("����ͨ 2006") ); #endif #ifdef MOBSET_OEM_YKHX m_pMainWnd->SetWindowText( _T("��Ѷ����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_CQYC m_pMainWnd->SetWindowText( _T("�ƶ��� V6.86") ); #endif #ifdef MOBSET_OEM_FSYX m_pMainWnd->SetWindowText( _T("һѶͨ V6.86") ); #endif #ifdef MOBSET_OEM_BJXW m_pMainWnd->SetWindowText( _T("�л�ҽҩ����������ƽ̨") ); #endif #ifdef MOBSET_OEM_NJWE m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_DGLH m_pMainWnd->SetWindowText( _T("��ݸ���� V6.86") ); #endif #ifdef MOBSET_OEM_DLXS m_pMainWnd->SetWindowText( _T("��������ͨ V6.86") ); #endif #ifdef MOBSET_OEM_XADFSJ m_pMainWnd->SetWindowText( _T("����ͨ V2.00") ); #endif #ifdef MOBSET_OEM_CSRC m_pMainWnd->SetWindowText( _T("��ɳ������ҵ������Ӫ�ն� V2.00") ); #endif #ifdef MOBSET_OEM_SDHL m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_QZXXG m_pMainWnd->SetWindowText( _T("��������ͨ V6.86") ); #endif #ifdef MOBSET_OEM_DGCW m_pMainWnd->SetWindowText( _T("�ɹ����� V6.86") ); #endif #ifdef MOBSET_OEM_SZSJHL m_pMainWnd->SetWindowText( _T("����ͨ V1.0") ); #endif #ifdef MOBSET_OEM_WHDB m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_JMYD m_pMainWnd->SetWindowText( _T("������ V6.86") ); #endif #ifdef MOBSET_OEM_ZHYX #ifdef SMSCENTER_ADC m_pMainWnd->SetWindowText( _T("ADC����ͨ V6.86") ); #else m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #endif #ifdef MOBSET_OEM_NJHW m_pMainWnd->SetWindowText( _T("��Ѷͨ V6.86") ); #endif #ifdef MOBSET_OEM_LZBX m_pMainWnd->SetWindowText( _T("����2008 v6.0") ); #endif #ifdef MOBSET_OEM_NXBX #ifdef SMSCENTER_ADC m_pMainWnd->SetWindowText( _T("ADC�������ͨ V6.86") ); #else m_pMainWnd->SetWindowText( _T("�������ͨ V6.86") ); #endif #endif #ifdef MOBSET_OEM_BJMCT m_pMainWnd->SetWindowText( _T("Mytong������") ); #endif #ifdef MOBSET_OEM_SZYF #ifdef SMSCENTER_ADC m_pMainWnd->SetWindowText( _T("ADC����ͨ V6.86") ); #else m_pMainWnd->SetWindowText( _T("���ſ쳵 V6.86") ); #endif #endif #ifdef MOBSET_OEM_WHFS m_pMainWnd->SetWindowText( _T("���������� V3.1") ); #endif #ifdef MOBSET_OEM_TYJY m_pMainWnd->SetWindowText( _T("������ʹ 3.0") ); #endif #ifdef MOBSET_OEM_SHWZ m_pMainWnd->SetWindowText( _T("����e·ͨ V6.86") ); #endif #ifdef MOBSET_OEM_AHXT m_pMainWnd->SetWindowText( _T("���Ű칫���� V6.86") ); #endif #ifdef MOBSET_OEM_GZHK m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_SZZL m_pMainWnd->SetWindowText( _T("��������ͨ V6.86") ); #endif #ifdef MOBSET_OEM_SZYY m_pMainWnd->SetWindowText( _T("���Ŷ���") ); #endif #ifdef MOBSET_OEM_YCZW m_pMainWnd->SetWindowText( _T("����ͨ V3.1") ); #endif #ifdef MOBSET_OEM_SZBC m_pMainWnd->SetWindowText( _T("�ٳ�����") ); #endif #ifdef MOBSET_OEM_YHWL m_pMainWnd->SetWindowText( _T("�ں�����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_NJFB m_pMainWnd->SetWindowText( _T("�ڰ����") ); #endif #ifdef MOBSET_OEM_GDLL m_pMainWnd->SetWindowText( _T("�㶫����Ƽ�����˾") ); #endif #ifdef MOBSET_OEM_HEBXLT m_pMainWnd->SetWindowText( _T("����ͨ") ); #endif #ifdef MOBSET_OEM_SZJXM m_pMainWnd->SetWindowText( _T("ӯ��ͨ V3.1") ); #endif #ifdef MOBSET_OEM_SHYY m_pMainWnd->SetWindowText( _T("��Ѹͨv2.1") ); #endif #ifdef MOBSET_OEM_DGKST m_pMainWnd->SetWindowText( _T("����ͨ V2.90") ); #endif #ifdef MOBSET_OEM_SZSDW m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_SZUU m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_GZJX m_pMainWnd->SetWindowText( _T("TraceAnyWhere SMS V3.1") ); #endif #ifdef MOBSET_OEM_BJJSY m_pMainWnd->SetWindowText( _T(" һ��ͨ2010") ); #endif #ifdef MOBSET_OEM_SALN m_pMainWnd->SetWindowText( _T("RTX���� V3.1") ); #endif #ifdef MOBSET_OEM_FSKJT m_pMainWnd->SetWindowText( _T("������ V3.1") ); #endif #ifdef MOBSET_OEM_SYBY m_pMainWnd->SetWindowText( _T("��������ͨ V3.1") ); #endif #ifdef MOBSET_OEM_HZDS m_pMainWnd->SetWindowText( _T("��ʢ����ͨ V3.1") ); #endif #ifdef MOBSET_OEM_GZJZ m_pMainWnd->SetWindowText( _T("���Ƕ������� V3.1") ); #endif #ifdef MOBSET_OEM_TYHSY m_pMainWnd->SetWindowText( _T("������ 2007") ); #endif #ifdef MOBSET_OEM_CSJX m_pMainWnd->SetWindowText( _T("Ѷ��ͨ����ϵͳ") ); #endif #ifdef MOBSET_OEM_GZCYDN m_pMainWnd->SetWindowText( _T("������ V6.86") ); #endif #ifdef MOBSET_OEM_YWKC m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_WLMQYMK m_pMainWnd->SetWindowText( _T("��ʱͨ V6.86") ); #endif #ifdef MOBSET_OEM_CSCL m_pMainWnd->SetWindowText( _T("������ V6.86") ); #endif #ifdef MOBSET_OEM_GZYZ m_pMainWnd->SetWindowText( _T("����ͨ����ϵͳ V6.86") ); #endif #ifdef MOBSET_OEM_PXAYZX m_pMainWnd->SetWindowText( _T("���ŷ� V6.86") ); #endif #ifdef MOBSET_OEM_DLYQL m_pMainWnd->SetWindowText( _T("��ʱͨ") ); #endif #ifdef MOBSET_OEM_GZSY m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_KMWH m_pMainWnd->SetWindowText( _T("������������ͨ V6.86") ); #endif #ifdef MOBSET_OEM_DGJN m_pMainWnd->SetWindowText( _T("������ V6.86") ); #endif #ifdef MOBSET_OEM_SZZS m_pMainWnd->SetWindowText( _T("IP5G����ͨ V1.0") ); #endif #ifdef MOBSET_OEM_LSLT m_pMainWnd->SetWindowText( _T("������ V3.1") ); #endif #ifdef MOBSET_OEM_CQZB #ifdef SMSCENTER_ADC m_pMainWnd->SetWindowText( _T("ADC�ײ�ͨ V3.1") ); #else m_pMainWnd->SetWindowText( _T("�ײ�ͨ V3.1") ); #endif #endif #ifdef MOBSET_OEM_SZLR m_pMainWnd->SetWindowText( _T("һ����ҵ���� V3.1") ); #endif #ifdef MOBSET_OEM_KMRX m_pMainWnd->SetWindowText( _T("��Ѷͨ---רҵֵ������") ); #endif #ifdef MOBSET_OEM_HFXBM m_pMainWnd->SetWindowText( _T("�°��������� V6.86") ); #endif #ifdef MOBSET_OEM_BYSZY m_pMainWnd->SetWindowText( _T("������ V6.86 [����ɽ�ͻ�ר��]") ); #endif #ifdef MOBSET_OEM_KMJR m_pMainWnd->SetWindowText( _T("����ͨV2.1") ); #endif #ifdef MOBSET_OEM_HEBWLY m_pMainWnd->SetWindowText( _T("����ͨ V3.1") ); #endif #ifdef MOBSET_OEM_GZTJ m_pMainWnd->SetWindowText( _T("������ V3.1") ); #endif #ifdef MOBSET_OEM_WHBS m_pMainWnd->SetWindowText( _T("����ͨ V3.1") ); #endif #ifdef MOBSET_OEM_SZCGWX m_pMainWnd->SetWindowText( _T("�ʸ�ͨ V3.1") ); #endif #ifdef MOBSET_OEM_YTLE m_pMainWnd->SetWindowText( _T("��ҵͨ V3.1") ); #endif #ifdef MOBSET_OEM_FSSL m_pMainWnd->SetWindowText( _T("����ͨ V3.1") ); #endif #ifdef MOBSET_OEM_GSYLX m_pMainWnd->SetWindowText( _T("����ͨ V3.1") ); #endif #ifdef MOBSET_OEM_GZXY m_pMainWnd->SetWindowText( _T("Ѷ����һָͨ�� ����ϵͳ") ); #endif #ifdef MOBSET_OEM_DGSM m_pMainWnd->SetWindowText( _T("˹������� V6.86") ); #endif #ifdef MOBSET_OEM_GZRZX m_pMainWnd->SetWindowText( _T("�ͷ�ͨ V6.86") ); #endif #ifdef MOBSET_OEM_ZHOK m_pMainWnd->SetWindowText( _T("E��ͨ���Ŷ���ϵͳ��ҵ�� V6.86") ); #endif #ifdef MOBSET_OEM_GZWYZS m_pMainWnd->SetWindowText( _T("άӯ����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_ZHST m_pMainWnd->SetWindowText( _T("����ͨ��ҵ��") ); #endif #ifdef MOBSET_OEM_ZZKJ m_pMainWnd->SetWindowText( _T("����ʱͨ V6.86") ); #endif #ifdef MOBSET_OEM_DXKC m_pMainWnd->SetWindowText( _T("���ſ쳵 V6.86") ); #endif #ifdef MOBSET_OEM_DXQXT m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_GZJT m_pMainWnd->SetWindowText( _T("���״� V6.86") ); #endif #ifdef MOBSET_OEM_AHLY m_pMainWnd->SetWindowText( _T("���̶���ͨ V4.0") ); #endif #ifdef MOBSET_OEM_ZJLT m_pMainWnd->SetWindowText( _T("������ V4.0") ); #endif #ifdef MOBSET_OEM_SHSS m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_BFCB m_pMainWnd->SetWindowText( _T("�˷�����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_ZQLT m_pMainWnd->SetWindowText( _T("���Ŷ���ͨ V6.86") ); #endif #ifdef MOBSET_OEM_CCKD m_pMainWnd->SetWindowText( _T("�����ٱ��� V6.86") ); #endif #ifdef MOBSET_OEM_SZSHJ m_pMainWnd->SetWindowText( _T("MixSMS V6.86") ); #endif #ifdef MOBSET_OEM_NJZZD m_pMainWnd->SetWindowText( _T("���籦 V6.86") ); #endif #ifdef MOBSET_OEM_CQRT m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_HZYJD m_pMainWnd->SetWindowText( _T("���ű� V6.86") ); #endif #ifdef MOBSET_OEM_GZHH m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_GZNX m_pMainWnd->SetWindowText( _T("������ V6.86") ); #endif #ifdef MOBSET_OEM_HYLT m_pMainWnd->SetWindowText( _T("��ͨ��ҵ������ V6.86") ); #endif #ifdef MOBSET_OEM_SZZBW m_pMainWnd->SetWindowText( _T("�ǰ�������ͨ V6.86") ); #endif #ifdef MOBSET_OEM_TJTH m_pMainWnd->SetWindowText( _T("�������ͨ V6.86") ); #endif #ifdef MOBSET_OEM_NJTDJSJ m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_LZYLX m_pMainWnd->SetWindowText( _T("���� V6.86") ); #endif #ifdef MOBSET_OEM_MMDX m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_GDDX m_pMainWnd->SetWindowText( _T("����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_GZXY m_pMainWnd->SetWindowText( _T("���˶��� ����") ); #endif #ifdef MOBSET_OEM_LHSK m_pMainWnd->SetWindowText( _T("�������Ͷ���ͨ") ); #endif #ifdef MOBSET_OEM_ZYWD m_pMainWnd->SetWindowText( _T("����ͨ") ); #endif #ifdef MOBSET_OEM_GZJYKX m_pMainWnd->SetWindowText( _T("����ϵͳ") ); #endif #ifdef MOBSET_OEM_ZHJB m_pMainWnd->SetWindowText( _T("����ͨ") ); #endif #ifdef MOBSET_OEM_LWXX m_pMainWnd->SetWindowText( _T("������") ); #endif #ifdef MOBSET_OEM_NJYC m_pMainWnd->SetWindowText( _T("�׳�����ͨ") ); #endif #ifdef MOBSET_OEM_SHHWT m_pMainWnd->SetWindowText( _T("��ҵͨ") ); #endif #ifdef MOBSET_OEM_XMKJ m_pMainWnd->SetWindowText( _T("����̨") ); #endif #ifdef MOBSET_OEM_GZHFXX m_pMainWnd->SetWindowText( _T("����ͨ") ); #endif #ifdef MOBSET_OEM_DYDFKJ m_pMainWnd->SetWindowText( _T("����ͨ D2") ); #endif #ifdef MOBSET_OEM_QXKD m_pMainWnd->SetWindowText( _T("������Ѷ��� V6.5") ); #endif #ifdef MOBSET_OEM_DGKF m_pMainWnd->SetWindowText( _T("����ͨ V1.10") ); #endif #ifdef MOBSET_OEM_CRM m_pMainWnd->SetWindowText( _T("CRM����") ); #endif #ifdef MOBSET_OEM_GDYK m_pMainWnd->SetWindowText( _T("��˼�Ӱ����ƽ̨") ); #endif #ifdef MOBSET_OEM_SZMY m_pMainWnd->SetWindowText( _T("��Դ�ز��ƿͶ���ƽ̨") ); #endif #ifdef MOBSET_OEM_SHCD m_pMainWnd->SetWindowText( _T("CD����ͨ V3.01") ); #endif #ifdef MOBSET_OEM_TJYS m_pMainWnd->SetWindowText( _T("��˹����ͨ V6.86") ); #endif #ifdef MOBSET_OEM_YLCQ m_pMainWnd->SetWindowText( _T("������Ϣ V6.86") ); #endif #ifdef MOBSET_OEM_SZTJ m_pMainWnd->SetWindowText(_T("����ͨ V1.10")); #endif #ifdef MOBSET_OEM_GZXDL m_pMainWnd->SetWindowText(_T("����ͨ V3.0")); #endif #ifdef MOBSET_OEM_GZBYK m_pMainWnd->SetWindowText(_T("��ҿ�¶���ϵͳ")); #endif #ifdef MOBSET_OEM_SGYD m_pMainWnd->SetWindowText(_T("�ع��ƶ�����ϵͳ")); #endif #ifdef MOBSET_OEM_HBSYL m_pMainWnd->SetWindowText(_T("����ͨ V5.0")); #endif #ifdef MOBSET_OEM_MASSDK TCHAR szFile2[512]; GetModuleFileName(NULL,szFile2,sizeof(szFile2)); long lLen=_tcslen(szFile2); for ( int i=lLen-1 ; i>0 ; i-- ) { if ( szFile2[i] == '.' ) { szFile2[i]=0; break; } } _tcscat(szFile2 , _T(".oem") ); TCHAR szBuf[256]={0}; CFile file; if ( file.Open(szFile2 , CFile::modeRead) ) { long lReadLen=64; if ( file.GetLength()<64 ) lReadLen=file.GetLength(); file.Read(szBuf , lReadLen); } if ( _tcslen(szBuf)>0 ) { m_pMainWnd->SetWindowText(szBuf); } #endif return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About #include "Label.h" class CAboutDlg : public CDialog { public: CAboutDlg(); // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }; CLabel m_S_KF; CStatic m_S_S1; CLabel m_S_Http; CLabel m_S_Mail; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) virtual BOOL OnInitDialog(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAboutDlg) DDX_Control(pDX, IDC_A_KF, m_S_KF); DDX_Control(pDX, IDC_ABOUT_S1, m_S_S1); DDX_Control(pDX, IDC_A_HTTP, m_S_Http); DDX_Control(pDX, IDC_A_EMAIL, m_S_Mail); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() // App command to run the dialog void CCorpSmsApp::OnAppAbout() { #ifdef MOBSET_OEM CAboutDlg2 aboutDlg; aboutDlg.DoModal(); #else CAboutDlg aboutDlg; aboutDlg.DoModal(); #endif } ///////////////////////////////////////////////////////////////////////////// // CCorpSmsApp message handlers int CCorpSmsApp::ExitInstance() { CoUninitialize(); return CWinAppEx::ExitInstance(); } BOOL CAboutDlg::OnInitDialog() { CDialog::OnInitDialog(); m_S_Http.SetTextColor( RGB(255,0,0) ); m_S_Http.SetLinkText( MOBSET_URL ); m_S_Http.SetLink( true ); m_S_Http.SetLinkCursor( AfxGetApp()->LoadCursor( IDC_C_HAND ) ); m_S_Http.SetFontSize(16); m_S_Mail.SetTextColor( RGB(0,0,255) ); m_S_Mail.SetLinkText( MOBSET_EMAIL ); m_S_Mail.SetLink( true ); m_S_Mail.SetLinkCursor( AfxGetApp()->LoadCursor( IDC_C_HAND ) ); m_S_KF.SetTextColor( RGB(0,0,255) ); #ifdef MOBSET_CARD_VER m_S_S1.SetWindowText( "������ ���� V6.86 (Build %s)" ); #endif #ifdef SMSCENTER_TWO CString str; m_S_S1.GetWindowText(str); str.Replace(_T("������") , _T("����ͨ")); m_S_S1.SetWindowText(str); m_S_Http.SetWindowText(_T("������ͨ��Ϣ��������˾")); #endif CStatic* pS = (CStatic*)GetDlgItem(IDC_ABOUT_S1); if (pS) { CString str; pS->GetWindowText(str); if (str.Find(_T("%s")) > 0) { CString strTemp; strTemp.Format(str, GetBuildDate()); pS->SetWindowText(strTemp); } } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CCorpSmsApp::OnAboutMobset() { CAboutDlg aboutDlg; aboutDlg.DoModal(); }