singleocx.h
来自「深入浅出Visual C++入门进阶与应用实例 随书光盘 作者 何志丹」· C头文件 代码 · 共 57 行
H
57 行
#if !defined(AFX_SINGLEOCX_H__74926C59_A094_44FD_8240_B7A25FAFDF23__INCLUDED_)
#define AFX_SINGLEOCX_H__74926C59_A094_44FD_8240_B7A25FAFDF23__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine 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.
/////////////////////////////////////////////////////////////////////////////
// CSingleOcx wrapper class
class CSingleOcx : public CWnd
{
protected:
DECLARE_DYNCREATE(CSingleOcx)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x9336be03, 0xe76a, 0x4950, { 0x84, 0xab, 0x98, 0x9e, 0x85, 0x4e, 0x7c, 0xdd } };
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:
short GetXPos();
void SetXPos(short);
short GetYPos();
void SetYPos(short);
// Operations
public:
void SetText(LPCTSTR lpText);
void AboutBox();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SINGLEOCX_H__74926C59_A094_44FD_8240_B7A25FAFDF23__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?