wndcontrolview.h
来自「MFC下对窗口属性的操作控制的例子」· C头文件 代码 · 共 78 行
H
78 行
// WndControlView.h : interface of the CWndControlView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_WNDCONTROLVIEW_H__EB46992D_4F14_4F8D_ACC0_B392DE391A5B__INCLUDED_)
#define AFX_WNDCONTROLVIEW_H__EB46992D_4F14_4F8D_ACC0_B392DE391A5B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CWndControlView : public CView
{
protected: // create from serialization only
CWndControlView();
DECLARE_DYNCREATE(CWndControlView)
// Attributes
public:
CWndControlDoc* GetDocument();
COLORREF m_rgbBack;
BOOL m_bMoveOnView;
BOOL m_bTopMost;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWndControlView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CWndControlView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CWndControlView)
afx_msg void OnWndcontrolIcon();
afx_msg void OnWndcontrolCaption();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnWndcontrolBkclr();
afx_msg void OnWndcontrolTop();
afx_msg void OnWndcontrolMove();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnWndcontrolChildicon();
afx_msg void OnUpdateWndcontrolTop(CCmdUI* pCmdUI);
afx_msg void OnWndcontrolHotsnap();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in WndControlView.cpp
inline CWndControlDoc* CWndControlView::GetDocument()
{ return (CWndControlDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WNDCONTROLVIEW_H__EB46992D_4F14_4F8D_ACC0_B392DE391A5B__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?