You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.1 KiB
81 lines
2.1 KiB
// RatCtl.h : Declaration of the CRatCtrl OLE control class.
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CRatCtrl : See RatCtl.cpp for implementation.
|
|
|
|
class CRatCtrl : public COleControl
|
|
{
|
|
DECLARE_DYNCREATE(CRatCtrl)
|
|
|
|
// Constructor
|
|
public:
|
|
CRatCtrl();
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CRatCtrl)
|
|
public:
|
|
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
|
|
virtual void DoPropExchange(CPropExchange* pPX);
|
|
virtual void OnResetState();
|
|
virtual void OnClick(USHORT iButton);
|
|
virtual void OnFontChanged();
|
|
virtual void OnGetControlInfo(LPCONTROLINFO pControlInfo);
|
|
virtual void OnTextChanged();
|
|
virtual void OnMnemonic(LPMSG pMsg);
|
|
virtual void OnAmbientPropertyChange(DISPID dispid);
|
|
virtual void OnKeyUpEvent(USHORT nChar, USHORT nShiftState);
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
~CRatCtrl();
|
|
|
|
DECLARE_OLECREATE_EX(CRatCtrl) // Class factory and guid
|
|
DECLARE_OLETYPELIB(CRatCtrl) // GetTypeInfo
|
|
DECLARE_PROPPAGEIDS(CRatCtrl) // Property page IDs
|
|
DECLARE_OLECTLTYPE(CRatCtrl) // Type name and misc status
|
|
|
|
// Subclassed control support
|
|
BOOL PreCreateWindow(CREATESTRUCT& cs);
|
|
BOOL IsSubclassedControl();
|
|
LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam);
|
|
|
|
// Message maps
|
|
//{{AFX_MSG(CRatCtrl)
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
// Dispatch maps
|
|
//{{AFX_DISPATCH(CRatCtrl)
|
|
afx_msg void SetAdminTarget(LPCTSTR szMachineName, LPCTSTR szMetaTarget);
|
|
afx_msg void SetUserData(LPCTSTR szUserName, LPCTSTR szUserPassword);
|
|
afx_msg void SetUrl(LPCTSTR szURL);
|
|
//}}AFX_DISPATCH
|
|
DECLARE_DISPATCH_MAP()
|
|
|
|
// Event maps
|
|
//{{AFX_EVENT(CRatCtrl)
|
|
//}}AFX_EVENT
|
|
DECLARE_EVENT_MAP()
|
|
|
|
// Dispatch and event IDs
|
|
public:
|
|
enum {
|
|
//{{AFX_DISP_ID(CRatCtrl)
|
|
dispidSetAdminTarget = 1L,
|
|
//}}AFX_DISP_ID
|
|
};
|
|
|
|
protected:
|
|
BOOL m_fUpdateFont;
|
|
CString m_szMachine;
|
|
CString m_szMetaObject;
|
|
CString m_szUserName;
|
|
CStrPassword m_szUserPassword;
|
|
CString m_szURL;
|
|
|
|
// the accelerator table
|
|
HACCEL m_hAccel;
|
|
WORD m_cAccel;
|
|
};
|