#define IDC_HAND MAKEINTRESOURCE(32649)
이렇게 해준다.
커서 바꾸는 건
BOOL CLemonViewerDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: 여기에 메시지 처리기 코드를 추가 및/또는 기본값을 호출합니다.
if ( (pWnd == GetDlgItem(IDC_BTNFILEOPEN)) || (pWnd == GetDlgItem(IDC_BTNSTART)) )
{
HCURSOR hCursor = AfxGetApp()->LoadStandardCursor(IDC_HAND);
::SetCursor(hCursor);
return 1;
}
else
return CDialog::OnSetCursor(pWnd, nHitTest, message);
}
이렇게 해준다.
커서 바꾸는 건
BOOL CLemonViewerDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: 여기에 메시지 처리기 코드를 추가 및/또는 기본값을 호출합니다.
if ( (pWnd == GetDlgItem(IDC_BTNFILEOPEN)) || (pWnd == GetDlgItem(IDC_BTNSTART)) )
{
HCURSOR hCursor = AfxGetApp()->LoadStandardCursor(IDC_HAND);
::SetCursor(hCursor);
return 1;
}
else
return CDialog::OnSetCursor(pWnd, nHitTest, message);
}
'프로그래밍 > VC++' 카테고리의 다른 글
| 이미지 회전변환 (0) | 2007.07.11 |
|---|---|
| GDI+ 사용하기 (0) | 2007.07.09 |
| XML 저장하기 (0) | 2007.06.27 |
| GDI+를 이용 Drop Shadow 주기 (0) | 2007.06.12 |
| 에디트박스에서 엔터키를 누르면 어떤 처리를 하도록. (0) | 2007.06.12 |