hintwin.cpp

来自「支持Windows 3.x、Windows 9x平台上的中文(GB、Big5)、」· C++ 代码 · 共 50 行

CPP
50
字号
// hintwin.cpp : implementation file
//

#include "stdafx.h"
#include "hintwin.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CHintWin

CHintWin::CHintWin( LPCSTR lpcsWndName )
{
	CreateEx( 	WS_EX_TOPMOST ,
				AfxRegisterWndClass( NULL ) ,
				lpcsWndName ,
				WS_POPUP ,
				CW_USEDEFAULT , CW_USEDEFAULT , 
				CW_USEDEFAULT , CW_USEDEFAULT , 
//				hParentWnd , NULL ) ;
				NULL , NULL ) ;
}

CHintWin::~CHintWin()
{
	DestroyWindow() ;
}

/*BOOL CHintWin::PreCreateWindow( CREATESTRUCT& cs )
{
	cs.style	=WS_POPUP ;
	cs.dwExStyle	=WS_EX_TOPMOST ;
	
	return	1 ;//CWnd::PreCreateWindow( cs ) ;
}
*/

BEGIN_MESSAGE_MAP(CHintWin, CWnd)
	//{{AFX_MSG_MAP(CHintWin)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CHintWin message handlers

⌨️ 快捷键说明

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