The Assembly Programming Master Book

The approach here is identical to the one used with icons. I'll just provide the resource file, where both a cursor and an icon are defined.

#define IDI_ICON1 1 #define IDI_CUR1 2 IDI_ICON1 ICON "Cdrom01.ico" IDI_CUR1 CURSOR "4way01.cur"

Here is a fragment of a program that calls both the cursor and the icon:

;----------Window icon PUSH 1 ; Icon identifier PUSH [HINST] CALL LoadIconA@8 MOV [WC.CLSHICON], EAX ;---------- Window cursor PUSH 2 ; Cursor identifier PUSH [HINST] CALL LoadCursorA@8 MOV [WC.CLSHCURSOR], EAX

Similar to icons, the BRCC32.EXE program is capable of processing cursor definitions included into the code of the resource file.

Категории