C源码Kit3P3Word下载.docx
《C源码Kit3P3Word下载.docx》由会员分享,可在线阅读,更多相关《C源码Kit3P3Word下载.docx(15页珍藏版)》请在冰豆网上搜索。
break;
}
case27:
if(m_ioXpoplist->
IsWindowVisible())
this->
m_ioXpoplist->
ShowWindow(false);
wParam=VK_ioXCONTROL;
caseVK_ioXUP:
caseVK_ioXDOWN:
caseVK_ioXNEXT:
caseVK_ioXPRIOR:
SendTheUDNPMessage(pMsg->
wParam);
returnCEdit:
PreTranslateMessage(pMsg);
voidCGeneralEdit:
OnSetFocus(CWndpOldWnd)
ASSERT(this->
m_ioXpoplist!
=NULL);
ShowWindow(SW_ioXHIDE);
CEdit:
OnSetFocus(pOldWnd);
OnKillFocus(CWndpNewWnd)
OnKillFocus(pNewWnd);
intiID=this->
GetDlgCtrlID();
switch(m_ioXKill)
caseRETURNKILL:
IsWindowVisible()&
&
GetSelectedMark()>
=0)
CGeneralEditedit;
edit=(CGeneralEdit)this->
GetParent()->
GetDlgItem(IDC_ioXEDIT_ioXKHNAME);
edit->
SetValueUnOnChange(m_ioXpoplist->
GetListCtrlSel
(1));
Invalidate();
GetDlgItem(IDC_ioXEDIT_ioXKHID);
GetListCtrlSel(0));
PostMessage(this->
GetSafeHwnd(),MYMESSAGE_ioXXSDJ_ioXSETTHEFOCUS,0,0);
default:
if(pNewWnd!
=NULL)
if(pNewWnd->
GetDlgCtrlID()==m_ioXpoplist->
GetDlgCtrlID()||
pNewWnd->
GetDlgCtrlID()==ID_ioXPOP_iofvISTCTRL);
elsethis->
m_ioXKill=NORMALKILL;
Addyourmessagehandlercodehere
OnChange()
if(m_ioXbSetValue)return;
CStringstr;
GetWindowText(str);
if(iID==IDC_ioXEDIT_ioXKHID)
RefreshListCtrlView(0,str);
elseif(iID==IDC_ioXEDIT_ioXKHNAME)
CStringid;
CWndeditid;
editid=this->
editid->
GetWindowText(id);
RefreshListCtrlView(1,str,id,0);
if(!
GetWindowRect(&
m_ioXrectWindow);
SetShowPosition(this->
m_ioXrectWindow,this);
ShowListPop();
SelectPopList(CListCtrlPoppoplist)
ASSERT(poplist!
m_ioXpoplist=poplist;
OnParentMoved()
if(this->
this==this->
GetCurEditWnd())
SetShowPosition(m_ioXrectWindow,this);
SetValueUnOnChange(CStringtext)
m_ioXbSetValue=true;
SetWindowText(text);
m_ioXbSetValue=false;
OnPaint()
CPaintDCdc(this);
devicecontextforpainting
CRectrect;
GetClientRect(&
rect);
dc.FillSolidRect(&
rect,RGB(254,254,254));
dc.MoveTo(rect.left,rect.bottom-8);
dc.LineTo(rect.right,rect.bottom-8);
CFontfont=this->
GetFont();
dc.SelectObject(font);
dc.TextOut(0,0,str);
//MachinegeneratedIDispatchwrapperclass(es)createdbyMicrosoftVisualC++
//NOTE:
Donotmodifythecontentsofthisfile.Ifthisclassisregeneratedby
//MicrosoftVisualC++,yourmodificationswillbeoverwritten.
#include"
stdafx.h"
vcframe.h"
//Dispatchinterfacesreferencedbythisinterface
VcColor.h"
CVcFrameproperties
CVcFrameoperations
longCVcFrame:
GetStyle()
longresult;
InvokeHelper(0x1,DISPATCH_ioXPROPERTYGET,VT_ioXI4,(void)&
result,NULL);
returnresult;
voidCVcFrame:
SetStyle(longnNewValue)
staticBYTEparms[]=
VTS_ioXI4;
InvokeHelper(0x1,DISPATCH_ioXPROPERTYPUT,VT_ioXEMPTY,NULL,parms,
nNewValue);
CVcColorCVcFrame:
GetFrameColor()
LPDISPATCHpDispatch;
InvokeHelper(0x2,DISPATCH_ioXPROPERTYGET,VT_ioXDISPATCH,(void)&
pDispatch,
NULL);
returnCVcColor(pDispatch);
GetSpaceColor()
InvokeHelper(0x3,DISPATCH_ioXPROPERTYGET,VT_ioXDISPATCH,(void)&
floatCVcFrame:
GetWidth()
floatresult;
InvokeHelper(0x4,DISPATCH_ioXPROPERTYGET,VT_ioXR4,(void)&
SetWidth(floatnewValue)
VTS_ioXR4;
InvokeHelper(0x4,DISPATCH_ioXPROPERTYPUT,VT_ioXEMPTY,NULL,parms,
newValue);
}
//xkh.cpp:
implementationfile
khmanager.h"
xkh.h"
ado.h"
#ifdef_ioXDEBUG
#definenewDEBUG_ioXNEW
#undefTHIS_ioXFILE
staticcharTHIS_ioXFILE[]=_ioXFILE_ioX;
#endif