Y
ydzi_
Unregistered / Unconfirmed
GUEST, unregistred user!
class CDRM : public CWnd
{
protected:
DECLARE_DYNCREATE(CDRM)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x645806a5, 0x6552, 0x4a4f, { 0xa9, 0xfe, 0xd5, 0x83, 0xaf, 0x75, 0x53, 0xae } };
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); }
}
请问怎么把上面的代码转为DELPHI啊,谢谢
{
protected:
DECLARE_DYNCREATE(CDRM)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x645806a5, 0x6552, 0x4a4f, { 0xa9, 0xfe, 0xd5, 0x83, 0xaf, 0x75, 0x53, 0xae } };
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); }
}
请问怎么把上面的代码转为DELPHI啊,谢谢