⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mybutton.cpp

📁 网络游戏龙族服务器端管理工具 rmtool 源代码
💻 CPP
字号:
// MyButton.cpp : implementation file
//

#include "stdafx.h"
#include "rmtool.h"
#include "MyButton.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyButton

CMyButton::CMyButton()
{
}

CMyButton::~CMyButton()
{
}


BEGIN_MESSAGE_MAP(CMyButton, CButton)
	//{{AFX_MSG_MAP(CMyButton)
	ON_WM_NCHITTEST()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyButton message handlers

UINT CMyButton::OnNcHitTest(CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	if(m_prevPoint != point)
	{
		char str[ 128 ];
		m_prevPoint = point;

		ScreenToClient(&point);
		
		::SendMessage(m_hWnd,WM_GETTEXT,128,(LPARAM)str);
		::SendMessage(GetParent()->m_hWnd,UM_BUTTON_HIT,(WPARAM)m_hWnd,(LPARAM)str);
	}	

	return CButton::OnNcHitTest(point);
}

⌨️ 快捷键说明

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