声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1986|回复: 0

[C/C++] 有高手能解释一下下面的程序吗?

[复制链接]
发表于 2009-4-21 07:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

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类怎么用的?
回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-6 08:14 , Processed in 0.057057 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表