C源碼(Win7)的主要內(nèi)容_第1頁(yè)
C源碼(Win7)的主要內(nèi)容_第2頁(yè)
C源碼(Win7)的主要內(nèi)容_第3頁(yè)
C源碼(Win7)的主要內(nèi)容_第4頁(yè)
C源碼(Win7)的主要內(nèi)容_第5頁(yè)
已閱讀5頁(yè),還剩6頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

C源碼=>PartOne#if!defined(AFX_XF31XXWinVCBRUSH_XF31XXWinH_XF31XXWin_XF31XXWinA35EA616_XF31XXWinDC41_XF31XXWin45F4_XF31XXWinB924_XF31XXWin1D32FCF89524_XF31XXWin_XF31XXWinINCLUDED_XF31XXWin)#defineAFX_XF31XXWinVCBRUSH_XF31XXWinH_XF31XXWin_XF31XXWinA35EA616_XF31XXWinDC41_XF31XXWin45F4_XF31XXWinB924_XF31XXWin1D32FCF89524_XF31XXWin_XF31XXWinINCLUDED_XF31XXWin#if_XF31XXWinMSC_XF31XXWinVER>1000#pragmaonce#endif_XF31XXWinMSC_XF31XXWinVER>1000MachinegeneratedIDispatchwrapperclass(es)createdbyMicrosoftVisualC++NOTE:Donotmodifythecontentsofthisfile.IfthisclassisregeneratedbyMicrosoftVisualC++,yourmodificationswillbeoverwritten.DispatchinterfacesreferencedbythisinterfaceclassCVcColor;CVcBrushwrapperclassclassCVcBrush:publicCOleDispatchDriver{public:CVcBrush(){}CallsCOleDispatchDriverdefaultconstructorCVcBrush(LPDISPATCHpDispatch):COleDispatchDriver(pDispatch){}CVcBrush(constCVcBrush&dispatchSrc):COleDispatchDriver(dispatchSrc){}Attributespublic:Operationspublic:longGetStyle();voidSetStyle(longnNewValue);CVcColorGetFillColor();CVcColorGetPatternColor();longGetIndex();voidSetIndex(longnNewValue);};{{AFX_XF31XXWinINSERT_XF31XXWinLOCATION}}MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.#endif!defined(AFX_XF31XXWinVCBRUSH_XF31XXWinH_XF31XXWin_XF31XXWinA35EA616_XF31XXWinDC41_XF31XXWin45F4_XF31XXWinB924_XF31XXWin1D32FCF89524_XF31XXWin_XF31XXWinINCLUDED_XF31XXWin)C源碼=>PartTwoBasePop.cpp:implementationfile#include"stdafx.h"#include"BasePop.h"#ifdef_XF31XXWinDEBUG#definenewDEBUG_XF31XXWinNEW#undefTHIS_XF31XXWinFILEstaticcharTHIS_XF31XXWinFILE[]=_XF31XXWin_XF31XXWinFILE_XF31XXWin_XF31XXWin;#endifCBasePopdialogCBasePop::CBasePop(CWndpParent=NULL):CDialog(CBasePop::IDD,pParent){{{AFX_XF31XXWinDATA_XF31XXWinINIT(CBasePop)NOTE:theClassWizardwilladdmemberinitializationhere}}AFX_XF31XXWinDATA_XF31XXWinINITthis->m_XF31XXWinlistbox=newCListBox;}voidCBasePop::DoDataExchange(CDataExchangepDX){CDialog::DoDataExchange(pDX);{{AFX_XF31XXWinDATA_XF31XXWinMAP(CBasePop)NOTE:theClassWizardwilladdDDXandDDVcallshere}}AFX_XF31XXWinDATA_XF31XXWinMAP}BEGIN_XF31XXWinMESSAGE_XF31XXWinMAP(CBasePop,CDialog){{AFX_XF31XXWinMSG_XF31XXWinMAP(CBasePop)ON_XF31XXWinLBN_XF31XXWinDBLCLK(ID_XF31XXWinPOP_XF31XXWinLISTBOX,OnDblclkList)}}AFX_XF31XXWinMSG_XF31XXWinMAPEND_XF31XXWinMESSAGE_XF31XXWinMAP()CBasePopmessagehandlersvoidCBasePop::OnOK(){TODO:AddextravalidationhereCDialog::OnOK();}voidCBasePop::OnCancel(){TODO:Addextracleanupherethis->ShowWindow(SW_XF31XXWinHIDE);CDialog::OnCancel();}boolCBasePop::Create(CWndparent){CDialog::Create(IDD,parent);this->ShowWindow(SW_XF31XXWinHIDE);khlogin::khlogin(CWndpParent=NULL):CDialog(khlogin::IDD,pParent){{{AFX_XF31XXWinDATA_XF31XXWinINIT(khlogin)NOTE:theClassWizardwilladdmemberinitializationhere}}AFX_XF31XXWinDATA_XF31XXWinINIT}voidkhlogin::DoDataExchange(CDataExchangepDX){CDialog::DoDataExchange(pDX);{{AFX_XF31XXWinDATA_XF31XXWinMAP(khlogin)DDX_XF31XXWinControl(pDX,IDC_XF31XXWinBUTTON2,m_XF31XXWinbutton2);DDX_XF31XXWinControl(pDX,IDC_XF31XXWinBUTTON1,m_XF31XXWinbutton1);DDX_XF31XXWinControl(pDX,IDC_XF31XXWinEDIT2,m_XF31XXWinmima);DDX_XF31XXWinControl(pDX,IDC_XF31XXWinEDIT1,m_XF31XXWinname);}}AFX_XF31XXWinDATA_XF31XXWinMAP}BEGIN_XF31XXWinMESSAGE_XF31XXWinMAP(khlogin,CDialog){{AFX_XF31XXWinMSG_XF31XXWinMAP(khlogin)ON_XF31XXWinWM_XF31XXWinPAINT()ON_XF31XXWinBN_XF31XXWinCLICKED(IDC_XF31XXWinBUTTON1,OnButton1)ON_XF31XXWinWM_XF31XXWinLBUTTONDOWN()ON_XF31XXWinBN_XF31XXWinCLICKED(IDC_XF31XXWinBUTTON2,OnButton2)}}AFX_XF31XXWinMSG_XF31XXWinMAPEND_XF31XXWinMESSAGE_XF31XXWinMAP()khloginmessagehandlersvoidCButton::DrawItem(LPDRAWITEMSTRUCTlpDrawItemStruct){CBitmapm_XF31XXWindown;CBitmapm_XF31XXWinup;m_XF31XXWindown.LoadBitmap(IDB_XF31XXWinBITMAP2);m_XF31XXWinup.LoadBitmap(IDB_XF31XXWinBITMAP1);CStringsCaption;CDCpDC,memDC;pDC=CDC::FromHandle(lpDrawItemStruct->hDC);CFontfont;UINTstate=lpDrawItemStruct->itemState;this->GetWindowText(sCaption);memDC.CreateCompatibleDC(pDC);CRectrect=lpDrawItemStruct->rcItem;font.CreatePointFont(160,"黑體",pDC);pDC->SelectObject(&font);if(state&ODS_XF31XXWinFOCUS){pDC->SetTextColor(RGB(0,0,0));memDC.SelectObject(&m_XF31XXWindown);}else{pDC->SetTextColor(RGB(255,255,255));memDC.SelectObject(&m_XF31XXWinup);}if(state&ODS_XF31XXWinDISABLED){pDC->SetTextColor(RGB(0,0,0));memDC.SelectObject(&m_XF31XXWindown);}pDC->BitBlt(0,0,rect.Width(),rect.Height(),&memDC,0,0,SRCCOPY);pDC->SetBkMode(TRANSPARENT);pDC->DrawText(sCaption,rect,DT_XF31XXWinCENTER|DT_XF31XXWinVCENTER|DT_XF31XXWinSINGLELINE);font.DeleteObject();memDC.DeleteDC();}BOOLkhlogin::OnInitDialog(){CDialog::OnInitDialog();CBitmapbit1,bit2;bit1.LoadBitmap(IDB_XF31XXWinBITMAP9);bit2.LoadBitmap(IDB_XF31XXWinBITMAP10);m_XF31XXWinbutton1.SetBitmap(bit1);m_XF31XXWinbutton1.OffsetColor(CButtonST::BTNST_XF31XXWinCOLOR_XF31XXWinBK_XF31XXWinIN,30);m_XF31XXWinbutton1.SetColor(CButtonST::BTNST_XF31XXWinCOLOR_XF31XXWinFG_XF31XXWinIN,RGB(0,0,200));m_XF31XXWinbutton2.SetBitmap(bit2);m_XF31XXWinbutton2.OffsetColor(CButtonST::BTNST_XF31XXWinCOLOR_XF31XXWinBK_XF31XXWinIN,30);m_XF31XXWinbutton2.SetColor(CButtonST::BTNST_XF31XXWinCOLOR_XF31XXWinFG_XF31XXWinIN,RGB(0,0,200));m_XF31XXWinbutton1.LoadPic(IDB_XF31XXWinBITMAP1,IDB_XF31XXWinBITMAP2,IDB_XF31XXWinBITMAP1);m_XF31XXWinbutton3.LoadPic(IDB_XF31XXWinBITMAP2);m_XF31XXWinname.SetFocus();returnTRUE;returnTRUEunlessyousetthefocustoacontrolEXCEPTION:OCXPropertyPagesshouldreturnFALSE}voidkhlogin::OnPaint(){CPaintDCdc(this);devicecontextforpaintingCBitmapbit;CDCmendc;CRectrect;this->GetWindowRect(&rect);bit.LoadBitmap(IDB_XF31XXWinBITMAP8);mendc.CreateCompatibleDC(&dc);mendc.SelectObject(&bit);dc.BitBlt(0,0,rect.Width(),rect.Height(),&mendc,0,0,SRCCOPY);mendc.DeleteDC();::DeleteObject(&bit);TODO:AddyourmessagehandlercodehereDonotcallCDialog::OnPaint()forpaintingmessages}voidkhlogin::OnButton1(){adorst;CStringsql,name,mima,mima2;this->m_XF31XXWinname.GetWindowText(name);this->m_XF31XXWinmima.GetWindowText(mima);sql.Format("selectfromtb_XF31XXWinuserwhereuser_XF31XXWinname='%s'",name);rst.Open(sql,adCmdText);if(rst.GetRecordCount()<1){MessageBox("您輸入的用戶(hù)不存在!請(qǐng)重新輸入!","系統(tǒng)提示",MB_XF31XXWinOK|MB_XF31XXWinICONSTOP);m_XF31XXWinname.SetWindowText("");m_XF31XXWinname.SetFocus();return;}else{mima2=rst.GetFieldValue("user_XF31XXWinmm");if(mima2==mima){this->OnCancel();khmainmain;main.DoModal();}else{MessageBox("您輸入的密碼不正確!請(qǐng)重新輸入!","系統(tǒng)提示",MB_XF31XXWinOK|MB_XF31XXWinICONSTOP);m_XF31XXWinmima.SetWindowText("");m_XF31XXWinmima.SetFocus();return;}}}voidkhlogin::OnLButtonDown(UINTnFlags,CPointpoint){::SendMessage(this->GetSafeHwnd(),WM_XF31XXWinSYSCOMMAND,SC_XF31XXWinMOVE+2,0);CDialog::OnLButtonDown(nFlags,point);}voidkhlogin::OnButton2(){CDialog::OnCancel();}C源碼=>PartFour{{NO_XF31XXWinDEPENDENCIES}}MicrosoftDeveloperStudiogeneratedincludefile.UsedbyWordGLXT.rc#defineIDM_XF31XXWinABOUTBOX0x0010#defineIDD_XF31XXWinABOUTBOX100#defineIDS_XF31XXWinABOUTBOX101#defineIDD_XF31XXWinWORDGLXT_XF31XXWinDIALOG102#defineIDR_XF31XXWinMAINFRAME128#defineIDD_XF31XXWinDWDAN129#defineIDD_XF31XXWinWDLB130#defineIDI_XF31XXWinCHILDICON1131#defineIDI_XF31XXWinCHILDICON3132#defineIDI_XF31XXWinCHILDICON2133#defineIDI_XF31XXWinROOTICON134#defineIDR_XF31XXWinMENU1135#defineIDD_XF31XXWinYHGL137#defineIDD_XF31XXWinKLXG138#defineIDD_XF31XXWinDIALOGIN139#defineIDD_XF31XXWinWDgldlg140#defineIDI_XF31XXWinCHILDICON4141#defineIDI_XF31XXWinICONDANWEI142#defineIDI_XF31XXWinICONFIND143#defineIDI_XF31XXWinICONYHGL144#defineIDI_XF31XXWinICONMIMA145#defineIDI_XF31XXWinICONLOGIN146#defineIDI_XF31XXWinICONWDLB147#defineIDC_XF31XXWinEDIT11000#defineIDC_XF31XXWinEDIT21001#defineIDC_XF31XXWinEDIT31002#defineIDC_XF31XXWinEDIT41003#defineIDC_XF31XXWinEDIT51004#defineIDC_XF31XXWinMODBUTTON1005#defineIDC_XF31XXWinEDIT71005#defineIDC_XF31XXWinEDIT61006#defineIDC_XF31XXWinDELBUTTON1007#defineIDC_XF31XXWinTREE11010#defineIDC_XF31XXWinRICHEDIT11011#defineIDC_XF31XXWinCOMBO11012#defineIDC_XF31XXWinBUTTON11013#defineIDC_XF31XXWinSTATICyh1014#defineIDC_XF31XXWinTAB11015#defineIDC_XF31XXWinRADIO11016#defineIDC_XF31XXWinRADIO21017#defineIDC_XF31XXWinWJLJXZ1018#defineIDC_XF31XXWinSTATIC11019#defineIDC_XF31XXWinSTATIC21020#defineIDC_XF31XXWinSTATIC31021#defineIDC_XF31XXWinSTATIC41022#defineIDC_XF31XXWinSTATIC51023#defineIDC_XF31XXWinSTATIC61024#defineIDC_XF31XXWinSTATIC71025#defineIDC_XF31XXWinSTATIC81026#defineIDC_XF31XXWinLIST11027#defineIDC_XF31XXWinBUTTONDEL1028#defineID_XF31XXWinMENUDWDAN32771#defineID_XF31XXWinMENUWDLB32772#defineID_XF31XXWinMENUADDWD32773#defineID_XF31XXWinMENUMODWD32774#defineID_XF31XXWinMENUDELWD32775#defineID_XF31XXWinMENULIULWD32776#defineID_XF31XXWinMENUYHGL32783#defineID_XF31XXWinMENUMODPWD32784#defineID_XF31XXWinMENURZGL32785#defineID_XF31XXWinEXIT32786Nextdefaultvaluesfornewobjects#ifdefAPSTUDIO_XF31XXWinINVOKED#ifndefAPSTUDIO_XF31XXWinREADONLY_XF31XXWinSYMBOLS#define_XF31XXWinAPS_XF31XXWinNEXT_XF31XXWinRESOURCE_XF31XXWinVALUE148#define_XF31XXWinAPS_XF31XXWinNEXT_XF31XXWinCOMMAND_XF31XXWinVALUE32787#define_XF31XXWinAPS_XF31XXWinNEXT_XF31XXWinCONTROL_XF31XXWinVALUE1029#define_XF31XXWinAPS_XF31XXWinNEXT_XF31XXWinSYMED_XF31XXWinVALUE101#endif#endifC源碼=>PartFive#include"TabYP.h"#if!defined(AFX_XF31XXWinDLGYPINFO_XF31XXWinH_XF31XXWin_XF31XXWinB697CB1F_XF31XXWin2447_XF31XXWin4E64_XF31XXWin9EAA_XF31XXWin839C20181930_XF31XXWin_XF31XXWinINCLUDED_XF31XXWin)#defineAFX_XF31XXWinDLGYPINFO_XF31XXWinH_XF31XXWin_XF31XXWinB697CB1F_XF31XXWin2447_XF31XXWin4E64_XF31XXWin9EAA_XF31XXWin839C2018

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論