📄 wrapwin.h
字号:
// WrapWin.h: interface for the CWrapWin class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WRAPWIN_H__2CDF6180_6107_11D5_8DCF_9D36791C493D__INCLUDED_)
#define AFX_WRAPWIN_H__2CDF6180_6107_11D5_8DCF_9D36791C493D__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include <assert.h>
#include "AbWin.h"
#include "WrapChild.h"
//#include "TextWin.h"
class CWrapWin : public CAbWin
{
CWrapChild *m_pcChildWin;
HWND m_hButton;
DWORD m_dwOldStyle;
DWORD m_dwStyle;
bool m_bIsMoveable;
static const CWinRect scm_BtnRect;
public:
CWrapWin();
CWrapWin(const CWrapChild *,const char *);
CWrapWin(const CWrapWin &c);
virtual ~CWrapWin();
virtual const char *GetTitle() const; //{ return "WrapWin"; }
virtual const char *GetClassName() const { return "CWrapWin"; }
virtual DWORD GetClassStyle() const { return (CS_GLOBALCLASS|CS_BYTEALIGNCLIENT|CS_DBLCLKS|CS_PARENTDC); }
virtual HBRUSH GetBgBrush() const { return (HBRUSH)(COLOR_HIGHLIGHTTEXT+1); }
// virtual HCURSOR GetCursor() const { return ::LoadCursor(NULL,IDC_CROSS); } //CPU??
// virtual DWORD GetExWinStyle() const { return (WS_EX_NOPARENTNOTIFY);}
virtual DWORD GetExWinStyle() const { return (WS_EX_TOOLWINDOW);}
virtual DWORD GetWinStyle() const { return m_dwStyle; }
// virtual DWORD GetWinStyle() const { return (WS_GROUP|WS_VISIBLE|WS_CHILD); }
// virtual DWORD GetWinStyle() const { return WS_VISIBLE|WS_BORDER|WS_CAPTION|WS_POPUP; }
bool IsEqualChild(CWrapChild const &c) { assert(m_pcChildWin); return m_pcChildWin->IsEqual(c); }
void ForgetHandle() { assert(m_pcChildWin); m_pcChildWin->ForgetHandle(); }
void ForgetPointer() { assert(m_pcChildWin); m_pcChildWin->ForgetPointer(); }
virtual void Init(HWND); //Creates the Class
virtual void PostCreate();
virtual void DeInit();
virtual LRESULT WindowProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
void SetChildData(const CWrapChild *);
bool MakeWindowMoveable();
bool IsMoveable() const { return m_bIsMoveable; }
void SetMoveable(bool b) { m_bIsMoveable=b; }
};
#endif // !defined(AFX_WRAPWIN_H__2CDF6180_6107_11D5_8DCF_9D36791C493D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -