flat assembler
Message board for the users of flat assembler.
Index
> Windows > Who can support cursor resource macro define ? |
Author |
|
JohnFound 09 Feb 2004, 10:45
Here is one from Fresh macro library. I use it before to turn to use of .res files. I hope it will be usefull.
Code: macro cursor [group,_label,cursor_file] { forward local _header, _data,_size,_position,_hotX, _hotY, _xsize, _ysize load _xsize byte from cursor_file:$06 load _ysize byte from cursor_file:$07 load _hotX word from cursor_file:$0a load _hotY word from cursor_file:$0c load _size dword from cursor_file:$0e load _position dword from cursor_file:$12 align 4 group dd RVA _header, $14, 0, 0 _header dw 0, 2, 1 dw _xsize, _ysize dw $1 ; Planes ??? dw $00 ; Bit count ??? dd _size+4 ; Resource len filter_id = RVA _label dw _label#.resid _label dd RVA _data, _size+4, 0, 0 _data dw _hotX, _hotY file cursor_file:_position,_size } |
|||
09 Feb 2004, 10:45 |
|
Kevin_Zheng 09 Feb 2004, 11:23
Dear Johnfound:
Thank you very much. It worked normally. The attached file is my test icon and cursor program. It's worked OK.
|
|||||||||||
09 Feb 2004, 11:23 |
|
FrozenKnight 29 Jun 2005, 11:04
can someone please update this to v1.62 macro format?
I'm still learning the macros. |
|||
29 Jun 2005, 11:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.