|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
class CDataCombo : public CWnd
{
protected:
DECLARE_DYNCREATE(CDataCombo)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xf0d2f21c, 0xccb0, 0x11d0, { 0xa3, 0x16, 0x0, 0xaa, 0x0, 0x68, 0x8b, 0x10 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey); }
// Attributes
public:
// Operations
public:
CString GetListField();
void SetListField(LPCTSTR lpszNewValue);
CString GetBoundText();
void SetBoundText(LPCTSTR lpszNewValue);
CString GetBoundColumn();
void SetBoundColumn(LPCTSTR lpszNewValue);
long GetStyle();
void SetStyle(long nNewValue);
long GetMousePointer();
void SetMousePointer(long nNewValue);
BOOL GetLocked();
void SetLocked(BOOL bNewValue);
CPicture GetMouseIcon();
void SetMouseIcon(LPDISPATCH newValue);
void SetRefMouseIcon(LPDISPATCH newValue);
BOOL GetIntegralHeight();
void SetIntegralHeight(BOOL bNewValue);
long GetSelStart();
void SetSelStart(long nNewValue);
long GetSelLength();
void SetSelLength(long nNewValue);
CString GetSelText();
void SetSelText(LPCTSTR lpszNewValue);
long GetMatchEntry();
void SetMatchEntry(long nNewValue);
VARIANT GetSelectedItem();
short GetVisibleCount();
CString GetText();
void SetText(LPCTSTR lpszNewValue);
unsigned long GetBackColor();
void SetBackColor(unsigned long newValue);
unsigned long GetForeColor();
void SetForeColor(unsigned long newValue);
COleFont GetFont();
void SetRefFont(LPDISPATCH newValue);
BOOL GetEnabled();
void SetEnabled(BOOL bNewValue);
BOOL GetMatchedWithList();
long GetAppearance();
void SetAppearance(long nNewValue);
long GetHwnd();
BOOL GetRightToLeft();
void SetRightToLeft(BOOL bNewValue);
LPUNKNOWN GetRowSource();
void SetRefRowSource(LPUNKNOWN newValue);
CString GetRowMember();
void SetRowMember(LPCTSTR lpszNewValue);
long GetOLEDragMode();
void SetOLEDragMode(long nNewValue);
long GetOLEDropMode();
void SetOLEDropMode(long nNewValue);
void ReFill();
VARIANT GetVisibleItems(short nIndex);
void Refresh();
void OLEDrag();
};
顺便问一下CDataCombo类怎么用的? |
|