C++源码分析KitWord下载.docx
《C++源码分析KitWord下载.docx》由会员分享,可在线阅读,更多相关《C++源码分析KitWord下载.docx(10页珍藏版)》请在冰豆网上搜索。
![C++源码分析KitWord下载.docx](https://file1.bdocx.com/fileroot1/2022-12/14/79071db7-238a-496b-990f-41cb6e26b15d/79071db7-238a-496b-990f-41cb6e26b15d1.gif)
boolbtemp=false;
CStringstr;
CStringstr_ifQconstdition;
POSITIONpos=this->
m_ifQstrlist[m_ifQiSubItem].FindIndex
(1);
POSITIONpos_ifQconstdition=this->
m_ifQstrlist[conditionsubitem].FindIndex
(1);
for(inti=1;
pos!
=NULL;
i++)
str=m_ifQstrlist[m_ifQiSubItem].GetNext(pos);
str_ifQconstdition=m_ifQstrlist[conditionsubitem].GetNext(pos_ifQconstdition);
if(str_ifQconstdition!
=scondition)
continue;
if(str.Find(edited)!
=-1)
for(intk=0;
k<
m_ifQiColumns;
k++)
CStringvalue=m_ifQstrlist[k].GetAt(m_ifQstrlist[k].FindIndex(i));
if(!
k)
InsertItem(j,value);
}
else
SetItemText(j,k,value);
btemp&
&
edited==str)
temp=j;
btemp=true;
j++;
SetSelectionMark(temp);
SetHotItem(temp);
SetRedraw(true);
Invalidate();
returntrue;
RefreshListCtrlView(intconditionsubitem,
CStringscondition,intinothis,CStringsnothis,intsubitem,CStringedited)
CStringstr_ifQnothis;
POSITIONpos_ifQnothis=this->
m_ifQstrlist[inothis].FindIndex
(1);
str_ifQnothis=m_ifQstrlist[inothis].GetNext(pos_ifQnothis);
if(str_ifQnothis==snothis||str_ifQconstdition!
ShowAllStringList()
POSITIONpos=newPOSITION[this->
m_ifQiColumns];
try{
for(inti=0;
i<
pos[i]=this->
m_ifQstrlist[i].FindIndex
(1);
//插入第一列
for(i=0;
pos[0]!
InsertItem(i,m_ifQstrlist[0].GetNext(pos[0]));
//插入其余各列
for(i=1;
for(intj=0;
pos[i]!
j++)
SetItemText(j,i,m_ifQstrlist[i].GetNext(pos[i]));
catch(...)
MessageBox("
somewrongaboutm_ifQstrlist"
"
wrong!
);
delete[]pos;
SetSelectionMark(0);
SetHotItem(0);
CListCtrlPop:
~CListCtrlPop()
deletem_ifQlistctrl;
m_ifQlistctrl=NULL;
//MachinegeneratedIDispatchwrapperclass(es)createdbyMicrosoftVisualC++
//NOTE:
Donotmodifythecontentsofthisfile.Ifthisclassisregeneratedby
//MicrosoftVisualC++,yourmodificationswillbeoverwritten.
#include"
stdafx.h"
columns.h"
//Dispatchinterfacesreferencedbythisinterface
Column.h"
CColumnsproperties
CColumnsoperations
longCColumns:
GetCount()
longresult;
InvokeHelper(0x1,DISPATCH_ifQPROPERTYGET,
VT_ifQI4,(void)&
result,NULL);
returnresult;
CColumnCColumns:
Add(shortIndex)
LPDISPATCHpDispatch;
staticBYTEparms[]=
VTS_ifQI2;
InvokeHelper(0x2,DISPATCH_ifQMETHOD,
VT_ifQDISPATCH,(void)&
pDispatch,parms,
Index);
returnCColumn(pDispatch);
GetItem(constVARIANT&
Index)
VTS_ifQVARIANT;
InvokeHelper(0x0,DISPATCH_ifQPROPERTYGET,VT_ifQDISPATCH,(void)&
voidCColumns:
Remove(constVARIANT&
InvokeHelper(0x3,DISPATCH_ifQMETHOD,VT_ifQEMPTY,NULL,parms,
&
}
//ListKCPD1.h:
interfacefortheCListKCPDclass.
#if!
defined(AFX_ifQLISTKCPD1_ifQH_ifQ_ifQ1790C957_ifQ9BD4_ifQ4EF1_ifQ882D_ifQ5D2280BAA3F4_ifQ_ifQINCLUDED_ifQ)
#defineAFX_ifQLISTKCPD1_ifQH_ifQ_ifQ1790C957_ifQ9BD4_ifQ4EF1_ifQ882D_ifQ5D2280BAA3F4_ifQ_ifQINCLUDED_ifQ
#if_ifQMSC_ifQVER>
1000
#pragmaonce
#endif_ifQMSC_ifQVER>
BaseList.h"
classCListKCPD:
publicCBaseList
public:
boolCancelTheItem(constint&
item);
boolDeleteSelected();
boolCheckTheItem(constint&
boolCheckAll();
voidPreOnEditChar(constint&
item,constint&
subitem,UINT&
key);
intIsSelected(constint&
voidOnESC(constint&
item,constint&
subitem);
intFindKc(constint&
intCheckKc(constint&
voidOnEditUDNPMessage(constint&
subitem,UINTkey);
boolCreate(DWORDdwStyle,constRECT&
rect,CWndpParentWnd,UINTnID);
boolInitValuesFromDB();
virtualvoidOnEditKillFocus(constint&
virtualboolOnEditReturn(constint&
virtualvoidOnEditSetFocus(constint&
virtualvoidOnNewEditChange(constint&
CListKCPD();
virtual~CListKCPD();
enum{NONE=0,NOCK=1,NOID=2,NONAME=3,NOWRONG=4};
CStringListm_ifQpstrlistKc;
CStringListm_ifQstrlistNo;
intm_ifQiTheItemState[100];
intm_ifQiKcSelected[100];
};
#endif!
C++SourcePartFour
DStoreReport.h:
interfacefortheCDStoreReportclass.
defined(AFX_ifQDSTOREREPORT_ifQH_ifQ_ifQ6FA14AAE_ifQ57FF_ifQ46A3_ifQ8B51_ifQDCBCFD3F9D9C_ifQ_ifQINCLUDED_ifQ)
#defineAFX_ifQDSTOREREPORT_ifQH_ifQ_ifQ6FA14AAE_ifQ57FF_ifQ46A3_ifQ8B51_ifQDCBCFD3F9D9C_ifQ_ifQINCLUDED_ifQ
DReport.h"
classCDStoreReport:
publicCDReport
voidInit();
CDStoreReport();
virtual~CDStoreReport();
classtsm:
publicCDialog
Construction
tsm(CWndpParent=NULL);
standardconstructor
voidloadlist();
DialogData
{AFX_ifQDATA(tsm)
enum{IDD=IDD_ifQTSM};
CListCtrlm_ifQlist;
CComboBoxm_ifQcom;
}}AFX_ifQDATA
Overrides
ClassWizardgeneratedvirtualfunctionoverrides
{AFX_ifQVIRTUAL(tsm)
protected:
virtualvoidDoDataExchange(CDataExchangepDX);
DDXDDVsupport
}}AFX_ifQVIRTUAL
Implementation
Generatedmessagemapfunctions
{{AFX_ifQMSG(tsm)
virtualBOOLOnInitDialog();
afx_ifQmsgvoidOnButton1();
afx_ifQmsgvoidOnButton2();
afx_ifQmsgvoidOnDblclkList1(NMHDRpNMHDR,
LRESULTpResult);
afx_ifQmsgvoidOnColumnclickList1(NMHDRpNMHDR,LRESULTpResult);
}}AFX_ifQMSG
DECLARE_ifQMESSAGE_ifQMAP()
{{AFX_ifQINSERT_ifQLOCATION}}
MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.
defined(AFX_ifQTSM_ifQH_ifQ_ifQ8B338849_ifQFDA7_ifQ4C1A_ifQB7B8_ifQ9CF2069585DC_ifQ_ifQINCLUDED_ifQ)