// 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) //文件超大,肯定是被破坏 { 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.85") ); #else m_pMainWnd->SetWindowText( _T("中国移动ADC短信易 V6.85") ); #endif #else m_pMainWnd->SetWindowText( _T("短信易 V6.85") ); #endif #ifdef SMSCENTER_TWO m_pMainWnd->SetWindowText( _T("短信通 V6.85") ); #endif #ifdef SMSCENTER_NX m_pMainWnd->SetWindowText( _T("短信易 V6.85 for 广东农信") ); #endif #ifdef SMSCENTER_DGSB m_pMainWnd->SetWindowText( _T("短信易 V6.85 for 东莞人社") ); #endif #ifdef SMSCENTER_DGSB_FIVE m_pMainWnd->SetWindowText(_T("短信易 V6.85 for 电子政务")); #endif #ifdef MOBSET_QUERY_VER m_pMainWnd->SetWindowText( _T("短信易 [查询版] V6.85") ); #endif #ifdef CAR_VER m_pMainWnd->SetWindowText( _T("短信易 [汽车行业] V6.85") ); #endif #ifdef STOCK_VER m_pMainWnd->SetWindowText( _T("短信易 [证券行业] V6.85") ); #endif /* #ifdef CHINABANK_VER m_pMainWnd->SetWindowText( _T("短信易 [中国银行专用版] V6.85") ); #endif */ #ifdef FSLT_VER m_pMainWnd->SetWindowText( _T("短信易 [灵通专用版] V6.85") ); #endif #ifdef BGY_VER m_pMainWnd->SetWindowText(_T("短信易 [碧桂园专用版] V6.85")); #endif #ifdef SUPPER_IM_MAS m_pMainWnd->SetWindowText( _T("短信易 [移动MAS专版] V6.85") ); #endif #ifdef MOBSET_VIPINT m_pMainWnd->SetWindowText( _T("短信易 [会员积分] V6.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_SUNPO m_pMainWnd->SetWindowText( _T("善普E信通 V6.85") ); #endif #ifdef MOBSET_OEM_MANI m_pMainWnd->SetWindowText( _T("麻呢网络信天游 V6.85") ); #endif #ifdef MOBSET_OEM_NJYS m_pMainWnd->SetWindowText( _T("企信通 V6.85") ); #endif #ifdef MOBSET_OEM_LJJ m_pMainWnd->SetWindowText( _T("李锦记企业短信 V6.85") ); #endif #ifdef MOBSET_OEM_SNLD m_pMainWnd->SetWindowText( _T("短信易(仙妮蕾德专版) V6.85") ); #endif #ifdef MOBSET_OEM_LONGZX m_pMainWnd->SetWindowText( _T("龙之行短信王 V6.85") ); #endif #ifdef MOBSET_OEM_WFCTT m_pMainWnd->SetWindowText( _T("短信呼叫中心 V6.85") ); #endif #ifdef MOBSET_OEM_KMSR m_pMainWnd->SetWindowText( _T("思锐短信通 V6.85") ); #endif #ifdef MOBSET_OEM_JMHL m_pMainWnd->SetWindowText( _T("汇联短信通 V6.85") ); #endif #ifdef MOBSET_OEM_AUYOU m_pMainWnd->SetWindowText( _T("遨游短信通 V6.85") ); #endif #ifdef MOBSET_OEM_MDT m_pMainWnd->SetWindowText( _T("名店通 V6.85") ); #endif #ifdef MOBSET_OEM_SZMDT m_pMainWnd->SetWindowText( _T("“幻通”移动商务企业服务平台 V6.85") ); #endif #ifdef MOBSET_OEM_SHQX m_pMainWnd->SetWindowText( _T("短信通 V6.85") ); #endif #ifdef MOBSET_OEM_1798 m_pMainWnd->SetWindowText( _T("1798短信通 V6.85") ); #endif #ifdef MOBSET_OEM_NJLH m_pMainWnd->SetWindowText( _T("企业短信e V6.85") ); #endif #ifdef MOBSET_OEM_JSXAT m_pMainWnd->SetWindowText( _T("短信应用平台 V6.85") ); #endif #ifdef MOBSET_OEM_NDBD m_pMainWnd->SetWindowText( _T("短信平台 V6.85") ); #endif #ifdef MOBSET_OEM_TYF m_pMainWnd->SetWindowText( _T("同一发短信平台 V6.85") ); #endif #ifdef MOBSET_OEM_TYF_LZT m_pMainWnd->SetWindowText( _T("留住通 V6.85") ); #endif #ifdef MOBSET_OEM_TYF_ZXT m_pMainWnd->SetWindowText( _T("直效通 V6.85") ); #endif #ifdef MOBSET_OEM_TYF_FG m_pMainWnd->SetWindowText( _T("飞鸽短信 V6.85") ); #endif #ifdef MOBSET_OEM_TYF_LLL m_pMainWnd->SetWindowText( _T("飞鸽短信 V6.85") ); #endif #ifdef MOBSET_OEM_HYBL m_pMainWnd->SetWindowText( _T("短信通 V6.85") ); #endif #ifdef MOBSET_OEM_SDRW m_pMainWnd->SetWindowText( _T("短信通 V1.0 顺德人网络传播工作站") ); #endif #ifdef MOBSET_OEM_HKLC m_pMainWnd->SetWindowText( _T("短信专家 V6.85") ); #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.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_FSFB m_pMainWnd->SetWindowText( _T("商信通 V6.85") ); #endif #ifdef MOBSET_OEM_JMSB m_pMainWnd->SetWindowText( _T("思博短信通 V6.85") ); #endif #ifdef MOBSET_OEM_BJZX m_pMainWnd->SetWindowText( _T("知新短信 V6.85") ); #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.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_SZJS m_pMainWnd->SetWindowText( _T("盛世互联企业短信通 V8.0") ); #endif #ifdef MOBSET_OEM_LSZH m_pMainWnd->SetWindowText( _T("中禾短信 V6.85") ); #endif #ifdef MOBSET_OEM_SYTC m_pMainWnd->SetWindowText( _T("信易达 V6.85") ); #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.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_GZTGB m_pMainWnd->SetWindowText( _T("短信通 V6.85") ); #endif #ifdef MOBSET_OEM_NJPB m_pMainWnd->SetWindowText( _T("庞贝短信易 V6.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_CQYC m_pMainWnd->SetWindowText( _T("云短信 V6.85") ); #endif #ifdef MOBSET_OEM_FSYX m_pMainWnd->SetWindowText( _T("一讯通 V6.85") ); #endif #ifdef MOBSET_OEM_BJXW m_pMainWnd->SetWindowText( _T("中华医药招商网短信平台") ); #endif #ifdef MOBSET_OEM_NJWE m_pMainWnd->SetWindowText( _T("企信通 V6.85") ); #endif #ifdef MOBSET_OEM_DGLH m_pMainWnd->SetWindowText( _T("东莞短信 V6.85") ); #endif #ifdef MOBSET_OEM_DLXS m_pMainWnd->SetWindowText( _T("先搜企信通 V6.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_QZXXG m_pMainWnd->SetWindowText( _T("易网短信通 V6.85") ); #endif #ifdef MOBSET_OEM_DGCW m_pMainWnd->SetWindowText( _T("成功我信 V6.85") ); #endif #ifdef MOBSET_OEM_SZSJHL m_pMainWnd->SetWindowText( _T("航信通 V1.0") ); #endif #ifdef MOBSET_OEM_WHDB m_pMainWnd->SetWindowText( _T("博信通 V6.85") ); #endif #ifdef MOBSET_OEM_JMYD m_pMainWnd->SetWindowText( _T("短信易 V6.85") ); #endif #ifdef MOBSET_OEM_ZHYX #ifdef SMSCENTER_ADC m_pMainWnd->SetWindowText( _T("ADC移信通 V6.85") ); #else m_pMainWnd->SetWindowText( _T("移信通 V6.85") ); #endif #endif #ifdef MOBSET_OEM_NJHW m_pMainWnd->SetWindowText( _T("商讯通 V6.85") ); #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.85") ); #else m_pMainWnd->SetWindowText( _T("杞美满意通 V6.85") ); #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.85") ); #else m_pMainWnd->SetWindowText( _T("短信快车 V6.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_AHXT m_pMainWnd->SetWindowText( _T("短信办公助理 V6.85") ); #endif #ifdef MOBSET_OEM_GZHK m_pMainWnd->SetWindowText( _T("短信通 V6.85") ); #endif #ifdef MOBSET_OEM_SZZL m_pMainWnd->SetWindowText( _T("真蓝短信通 V6.85") ); #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.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_SZUU m_pMainWnd->SetWindowText( _T("优信通 V6.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_YWKC m_pMainWnd->SetWindowText( _T("短信通 V6.85") ); #endif #ifdef MOBSET_OEM_WLMQYMK m_pMainWnd->SetWindowText( _T("即时通 V6.85") ); #endif #ifdef MOBSET_OEM_CSCL m_pMainWnd->SetWindowText( _T("短信易 V6.85") ); #endif #ifdef MOBSET_OEM_GZYZ m_pMainWnd->SetWindowText( _T("用泽通短信系统 V6.85") ); #endif #ifdef MOBSET_OEM_PXAYZX m_pMainWnd->SetWindowText( _T("短信发 V6.85") ); #endif #ifdef MOBSET_OEM_DLYQL m_pMainWnd->SetWindowText( _T("即时通") ); #endif #ifdef MOBSET_OEM_GZSY m_pMainWnd->SetWindowText( _T("企信通 V6.85") ); #endif #ifdef MOBSET_OEM_KMWH m_pMainWnd->SetWindowText( _T("昆明威豪短信通 V6.85") ); #endif #ifdef MOBSET_OEM_DGJN m_pMainWnd->SetWindowText( _T("东信易 V6.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_BYSZY m_pMainWnd->SetWindowText( _T("短信易 V6.85 [白云山和黄专版]") ); #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.85") ); #endif #ifdef MOBSET_OEM_GZRZX m_pMainWnd->SetWindowText( _T("客服通 V6.85") ); #endif #ifdef MOBSET_OEM_ZHOK m_pMainWnd->SetWindowText( _T("E点通集团短信系统企业版 V6.85") ); #endif #ifdef MOBSET_OEM_GZWYZS m_pMainWnd->SetWindowText( _T("维盈短信通 V6.85") ); #endif #ifdef MOBSET_OEM_ZHST m_pMainWnd->SetWindowText( _T("网信通企业版") ); #endif #ifdef MOBSET_OEM_ZZKJ m_pMainWnd->SetWindowText( _T("致泽即时通 V6.85") ); #endif #ifdef MOBSET_OEM_DXKC m_pMainWnd->SetWindowText( _T("短信快车 V6.85") ); #endif #ifdef MOBSET_OEM_DXQXT m_pMainWnd->SetWindowText( _T("企信通 V6.85") ); #endif #ifdef MOBSET_OEM_GZJT m_pMainWnd->SetWindowText( _T("信易达 V6.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_BFCB m_pMainWnd->SetWindowText( _T("八方企信通 V6.85") ); #endif #ifdef MOBSET_OEM_ZQLT m_pMainWnd->SetWindowText( _T("集团短信通 V6.85") ); #endif #ifdef MOBSET_OEM_CCKD m_pMainWnd->SetWindowText( _T("长宽百宝箱 V6.85") ); #endif #ifdef MOBSET_OEM_SZSHJ m_pMainWnd->SetWindowText( _T("MixSMS V6.85") ); #endif #ifdef MOBSET_OEM_NJZZD m_pMainWnd->SetWindowText( _T("来电宝 V6.85") ); #endif #ifdef MOBSET_OEM_CQRT m_pMainWnd->SetWindowText( _T("短信通 V6.85") ); #endif #ifdef MOBSET_OEM_HZYJD m_pMainWnd->SetWindowText( _T("短信宝 V6.85") ); #endif #ifdef MOBSET_OEM_GZHH m_pMainWnd->SetWindowText( _T("短信通 V6.85") ); #endif #ifdef MOBSET_OEM_GZNX m_pMainWnd->SetWindowText( _T("短信易 V6.85") ); #endif #ifdef MOBSET_OEM_HYLT m_pMainWnd->SetWindowText( _T("联通企业短信易 V6.85") ); #endif #ifdef MOBSET_OEM_SZZBW m_pMainWnd->SetWindowText( _T("智百威企信通 V6.85") ); #endif #ifdef MOBSET_OEM_TJTH m_pMainWnd->SetWindowText( _T("天合企信通 V6.85") ); #endif #ifdef MOBSET_OEM_NJTDJSJ m_pMainWnd->SetWindowText( _T("天信通 V6.85") ); #endif #ifdef MOBSET_OEM_LZYLX m_pMainWnd->SetWindowText( _T("易短信 V6.85") ); #endif #ifdef MOBSET_OEM_MMDX m_pMainWnd->SetWindowText( _T("企信通 V6.85") ); #endif #ifdef MOBSET_OEM_GDDX m_pMainWnd->SetWindowText( _T("企信通 V6.85") ); #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.85") ); #endif #ifdef MOBSET_OEM_YLCQ m_pMainWnd->SetWindowText( _T("粤亮信息 V6.85") ); #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.85 (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(); }