52 lines
986 B
C++
52 lines
986 B
C++
// HCButton.cpp : 구현 파일입니다.
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "ConsoleApp.h"
|
|
#include "HCButton.h"
|
|
|
|
|
|
// CHCButton
|
|
|
|
IMPLEMENT_DYNAMIC(CHCButton, CBitmapButton)
|
|
CHCButton::CHCButton()
|
|
{
|
|
}
|
|
|
|
CHCButton::~CHCButton()
|
|
{
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CHCButton, CBitmapButton)
|
|
ON_WM_MOUSEMOVE()
|
|
ON_WM_SETCURSOR()
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CHCButton 메시지 처리기입니다.
|
|
void CHCButton::OnMouseMove(UINT nFlags, CPoint point)
|
|
{
|
|
//::SetCursor(AfxGetApp()->LoadCursor(IDC_HAND));
|
|
HCURSOR hCursor;
|
|
hCursor = AfxGetApp()->LoadStandardCursor(IDC_HAND);
|
|
|
|
::SetCursor(hCursor);
|
|
|
|
CBitmapButton::OnMouseMove(nFlags, point);
|
|
}
|
|
|
|
|
|
BOOL CHCButton::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
|
|
{
|
|
// TODO: 여기에 메시지 처리기 코드를 추가 및/또는 기본값을 호출합니다.
|
|
|
|
HCURSOR hCursor;
|
|
hCursor = AfxGetApp()->LoadStandardCursor(IDC_HAND);
|
|
|
|
::SetCursor(hCursor);
|
|
|
|
return TRUE;
|
|
return CBitmapButton::OnSetCursor(pWnd, nHitTest, message);
|
|
}
|