|
프로젝트 파일에 추가하셨다면 도움말에 내용대로 사용가능할것 같습니다.
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;
}
이돈진 님이 쓰신 글 :
: 제목처럼 .res 파일에서 정의한 cursor를 읽어오는 방법을 알고 싶습니다..
:
: Image Editor에서 Cursor1이라는 커서를 만들어 두고...
:
: test.res화일로 저장한 후 이화일을 프로젝트에 추가하였습니다..
:
: 이럴 경우.. Cursor1을 불러 들여서
:
: 메인 폼의 커서로 할려면,,어떤 코드를 작성해야 하나요...
:
: TStreamResource를 쓰라고,,임프님이...도움말을 달아놓으신것 같은데..
:
: 잘 모르겠네요..
:
: 미리 감사드립니다..
|