|
초보 님이 쓰신 글 :
: void __fastcall TForm1::FormMouseMove(TObject *Sender, TShiftState Shift,
: int X, int Y)
: {
: ...
: HCURSOR hCursor = LoadCursor(HInstance,MAKEINTRESOURCE(IDC_WAIT));
: SetCursor(hCursor); --> 이 부분 에러
: ...
: }
:
: [C++ Error] aa.cpp(531): E2247 '_fastcall TControl::SetCursor(TCursor)' is not accessible
:
:
: --> 위부부에서 커서를 바꾸고 싶은데.
: 위와 같은 에러가 나옵니다..
: LoadCursor한뒤에 SetCursor로 커서를 바꿔주는게 아니가여?
:
다음처럼 고치니까 되네요.. ^^;; 확인해 보세요.
//---------------------------------------------------------------------------
void __fastcall TForm1::FormMouseMove(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y)
{
HCURSOR hCursor = ::LoadCursor(NULL,MAKEINTRESOURCE(IDC_WAIT));
if( hCursor )
::SetCursor(hCursor);
}
|