suppressstyle.h

来自「3D reconstruction, medical image process」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef SUPPRESS_STYLE_H#define SUPPRESS_STYLE_H///////////////////////////////	Objects of this class will suppress a window style//  from construction until destruction.////	Author: Dave Lorde	(dlorde@cix.compulink.co.uk)////          Copyright January 2000//class RxSuppressStyle{private:	DWORD	m_Style;	DWORD	m_OldStyle;	HWND	m_hWnd;public:	RxSuppressStyle(HWND hWnd, DWORD style)		:m_hWnd(hWnd), m_Style(style), m_OldStyle(0)	{		m_OldStyle = ::GetWindowLong(m_hWnd, GWL_STYLE);		if (m_OldStyle & m_Style)			SetWindowLong(m_hWnd, GWL_STYLE, m_OldStyle & ~m_Style); 	}	~RxSuppressStyle()	{		if (m_OldStyle & m_Style)			SetWindowLong(m_hWnd, GWL_STYLE, m_OldStyle);	}};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?