|
Project1.res말고 다른 res파일을 생성하세요.
이돈진 님이 쓰신 글 :
: 답변 감사드립니다..
:
: 박진훈 님이 쓰신 내용은 저도 해보았습니다만,,
:
: 잘 안되더군요..
:
: 아래는 밑의 소스에다가 약간 추가한겁니다..
:
: Project1.res 화일에 "Cursor1"이라는 커서를 하나 추가하였습니다...
:
: 그런후 브레이크 포인트를 걸어서 HCURSOR값을 보니 NULL을 리턴하더군요..
:
: void __fastcall TForm1::FormCreate(TObject *Sender)
: {
: const crMyCursor = 5;
: HCURSOR t=LoadCursor(HInstance, "Cursor1");
: Screen->Cursors[crMyCursor] = t;
: Cursor = crMyCursor;
: }
:
: 왜 그런지 이유를 모르겠습니다..
:
: 혹시 박진훈님께서 직접 해보셨는지...알고 싶습니다..
:
: 친절한 답변 감사드립니다..
:
:
: 박진훈 님이 쓰신 글 :
: : 프로젝트 파일에 추가하셨다면 도움말에 내용대로 사용가능할것 같습니다.
: :
: : This example shows how to add custom cursors to an application. It assumes that a custom cursor with the name NewCursor has been added to the resources (.RES file) of the application. You can add the cursor using the image editor. (Tools | Image Editor)
: : The following code makes this cursor available to the application via the constant crMyCursor, and sets it as the global cursor to the application.
: :
: :
: : const crMyCursor = 5;
: :
: : void __fastcall TForm1::FormCreate(TObject *Sender)
: : {
: : Screen->Cursors[crMyCursor] = LoadCursor(HInstance, "NewCursor");
: : Cursor = crMyCursor;
: : }
: :
:
|