cwaitcursor.cpp

来自「日本的开源编辑器源码」· C++ 代码 · 共 43 行

CPP
43
字号
//	$Id: CWaitCursor.cpp,v 1.4 2001/12/19 04:19:19 genta Exp $
/*!	@file
	@brief 砂時計カーソル

	@author Norio Nakatani
	$Revision: 1.4 $
*/
/*
	Copyright (C) 1998-2001, Norio Nakatani

	This source code is designed for sakura editor.
	Please contact the copyright holder to use this code for other purpose.
*/

#include "CWaitCursor.h"

/*!
	現在のカーソルを保存し、カーソルを砂時計にする
*/
CWaitCursor::CWaitCursor( HWND hWnd )
{
	SetCapture( hWnd );
	m_hCursor = ::LoadCursor( NULL, IDC_WAIT );
	m_hCursorOld = ::SetCursor( m_hCursor );
	return;
}



/*!
	カーソル形状を元に戻す
*/
CWaitCursor::~CWaitCursor()
{
	ReleaseCapture();
	::SetCursor( m_hCursorOld );
	return;
}


/*[EOF]*/

⌨️ 快捷键说明

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