1、C源码Kit3P3C源码(Kit3907_P3)BOOL CGeneralEdit:PreTranslateMessage(MSG pMsg) TODO: Add your specialized code here andor call the base classif(pMsg-message=WM_ioXKEYDOWN)switch(pMsg-wParam)case 13:pMsg-message=WM_ioXKILLFOCUS;m_ioXKill=RETURNKILL;break;case 27:if(m_ioXpoplist-IsWindowVisible()this-m_ioXpo
2、plist-ShowWindow(false);pMsg-wParam=VK_ioXCONTROL;break;case VK_ioXUP:case VK_ioXDOWN:case VK_ioXNEXT:case VK_ioXPRIOR:this-m_ioXpoplist-SendTheUDNPMessage(pMsg-wParam);pMsg-wParam=VK_ioXCONTROL;break;return CEdit:PreTranslateMessage(pMsg);void CGeneralEdit:OnSetFocus(CWnd pOldWnd) ASSERT(this-m_ioX
3、poplist!=NULL);m_ioXpoplist-ShowWindow(SW_ioXHIDE);CEdit:OnSetFocus(pOldWnd);void CGeneralEdit:OnKillFocus(CWnd pNewWnd) CEdit:OnKillFocus(pNewWnd);int iID=this-GetDlgCtrlID();switch(m_ioXKill)case RETURNKILL:ASSERT(this-m_ioXpoplist!=NULL);if(m_ioXpoplist-IsWindowVisible()&m_ioXpoplist-GetSelectedM
4、ark()=0)this-m_ioXpoplist-ShowWindow(SW_ioXHIDE);CGeneralEdit edit;edit=(CGeneralEdit )this-GetParent()-GetDlgItem(IDC_ioXEDIT_ioXKHNAME);edit-SetValueUnOnChange(m_ioXpoplist-GetListCtrlSel(1);edit-Invalidate();edit=(CGeneralEdit )this-GetParent()-GetDlgItem(IDC_ioXEDIT_ioXKHID);edit-SetValueUnOnCha
5、nge(m_ioXpoplist-GetListCtrlSel(0);edit-Invalidate();this-m_ioXpoplist-ShowWindow(SW_ioXHIDE);:PostMessage(this-GetParent()-GetParent()-GetSafeHwnd(),MYMESSAGE_ioXXSDJ_ioXSETTHEFOCUS,0,0);break;default:if(pNewWnd!=NULL)if(pNewWnd-GetDlgCtrlID()=m_ioXpoplist-GetDlgCtrlID()|pNewWnd-GetDlgCtrlID()=ID_i
6、oXPOP_iofvISTCTRL);else this-m_ioXpoplist-ShowWindow(SW_ioXHIDE);break;m_ioXKill=NORMALKILL; TODO: Add your message handler code herevoid CGeneralEdit:OnChange() if(m_ioXbSetValue) return;ASSERT(this-m_ioXpoplist!=NULL);CString str;this-GetWindowText(str);int iID=this-GetDlgCtrlID();if(iID=IDC_ioXED
7、IT_ioXKHID)this-m_ioXpoplist-RefreshListCtrlView(0,str);else if(iID=IDC_ioXEDIT_ioXKHNAME)CString id;CWnd editid;editid=this-GetParent()-GetDlgItem(IDC_ioXEDIT_ioXKHID);editid-GetWindowText(id);m_ioXpoplist-RefreshListCtrlView(1,str,id,0);if(!m_ioXpoplist-IsWindowVisible()this-GetWindowRect(&m_ioXre
8、ctWindow);this-m_ioXpoplist-SetShowPosition(this-m_ioXrectWindow,this);m_ioXpoplist-ShowListPop();void CGeneralEdit:SelectPopList(CListCtrlPop poplist)ASSERT(poplist!=NULL);this-m_ioXpoplist=poplist;void CGeneralEdit:OnParentMoved()this-GetWindowRect(&this-m_ioXrectWindow);if(this-m_ioXpoplist-IsWin
9、dowVisible()&this=this-m_ioXpoplist-GetCurEditWnd()this-m_ioXpoplist-SetShowPosition(m_ioXrectWindow,this);this-m_ioXpoplist-ShowListPop();void CGeneralEdit:SetValueUnOnChange(CString text)this-m_ioXbSetValue=true;this-SetWindowText(text);this-m_ioXbSetValue=false;void CGeneralEdit:OnPaint() CPaintD
10、C dc(this); device context for paintingCRect rect;this-GetClientRect(&rect);dc.FillSolidRect(&rect,RGB(254,254,254);dc.MoveTo(rect.left,rect.bottom-8);dc.LineTo(rect.right,rect.bottom-8);CString str;this-GetWindowText(str);CFont font=this-GetFont();dc.SelectObject(font);dc.TextOut(0,0,str);/Machine
11、generated IDispatch wrapper class(es) created by Microsoft Visual C+/NOTE: Do not modify the contents of this file. If this class is regenerated by/Microsoft Visual C+, your modifications will be overwritten.#include stdafx.h#include vcframe.h/Dispatch interfaces referenced by this interface#include
12、 VcColor.h CVcFrame properties CVcFrame operationslong CVcFrame:GetStyle()long result;InvokeHelper(0x1, DISPATCH_ioXPROPERTYGET, VT_ioXI4, (void)&result, NULL);return result;void CVcFrame:SetStyle(long nNewValue)static BYTE parms =VTS_ioXI4;InvokeHelper(0x1, DISPATCH_ioXPROPERTYPUT, VT_ioXEMPTY, NUL
13、L, parms, nNewValue);CVcColor CVcFrame:GetFrameColor()LPDISPATCH pDispatch;InvokeHelper(0x2, DISPATCH_ioXPROPERTYGET, VT_ioXDISPATCH, (void)&pDispatch, NULL);return CVcColor(pDispatch);CVcColor CVcFrame:GetSpaceColor()LPDISPATCH pDispatch;InvokeHelper(0x3, DISPATCH_ioXPROPERTYGET, VT_ioXDISPATCH, (v
14、oid)&pDispatch, NULL);return CVcColor(pDispatch);float CVcFrame:GetWidth()float result;InvokeHelper(0x4, DISPATCH_ioXPROPERTYGET, VT_ioXR4, (void)&result, NULL);return result;void CVcFrame:SetWidth(float newValue)static BYTE parms =VTS_ioXR4;InvokeHelper(0x4, DISPATCH_ioXPROPERTYPUT, VT_ioXEMPTY, NULL, parms, newValue); /xkh.cpp : implementation file#include stdafx.h#include khmanager.h#include xkh.h#include ado.h#ifdef _ioXDEBUG#define new DEBUG_ioXNEW#undef THIS_ioXFILEstatic char THIS_ioXFILE = _ioXFILE_ioX;#endif
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1