📄 ctipwnd.h
字号:
// $Id: CTipWnd.h,v 1.10 2004/04/11 07:07:52 genta Exp $
/*! @file
@brief ツールチップ
@author Norio Nakatani
@date 1998/10/30 新規作成
$Revision: 1.10 $
*/
/*
Copyright (C) 1998-2001, Norio Nakatani
Copyright (C) 2001, asa-o
This source code is designed for sakura editor.
Please contact the copyright holder to use this code for other purpose.
*/
class CTipWnd;
#ifndef _CTIPWND_H_
#define _CTIPWND_H_
#include "CWnd.h"
#include "CMemory.h"
/*-----------------------------------------------------------------------
クラスの宣言
-----------------------------------------------------------------------*/
class SAKURA_CORE_API CTipWnd : public CWnd
{
public:
/*
|| Constructors
*/
CTipWnd();
~CTipWnd();
void Create( HINSTANCE, HWND ); /* 初期化 */
/*
|| Attributes & Operations
*/
void Show( int, int, char*, RECT* pRect = NULL ); /* Tipを表示 */
void Hide( void ); /* Tipを消す */
void GetWindowSize(LPRECT pRect); // 2001/06/19 asa-o ウィンドウのサイズを得る
void ChangeFont( LOGFONT* lf ){
if ( m_hFont ){
::DeleteObject( m_hFont );
}
m_hFont = ::CreateFontIndirect( lf );
};
protected: // 2002/2/10 aroka アクセス権変更
char* m_pszClassName; /* Mutex作成用?ウィンドウクラス名 */
HFONT m_hFont;
public:
CMemory m_cKey; /* キーの内容データ */
BOOL m_KeyWasHit; /* キーがヒットしたか */
CMemory m_cInfo; /* Tipの内容データ */
protected:
/*
|| 実装ヘルパ関数
*/
void ComputeWindowSize( HDC, HFONT, const char*, RECT* ); /* ウィンドウのサイズを決める */
void DrawTipText( HDC, HFONT, const char* ); /* ウィンドウのテキストを表示 */
/* 仮想関数 */
/* 仮想関数 メッセージ処理 詳しくは実装を参照 */
LRESULT OnPaint( HWND, UINT, WPARAM, LPARAM );/* 描画処理 */
};
///////////////////////////////////////////////////////////////////////
#endif /* _CTIPWND_H_ */
/*[EOF]*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -