This might sound funny. But I am new to Win32Asm. How do I make the App I compile have got an icon? It is no problem for me to put it into the resource but how do I make it the standard Icon? I hope one of you nice guys can help me out with this ... sign CyBerian
Posted on 2001-02-11 16:28:00 by CyBerian
Simple - just make the first icon (in terms of number order) the icon you want for the prog. Then when you compile it becomes your program icon automatically (for explorer etc)... If you want the icon for the alt-tab and WindowText bar, use LoadIcon with ICON_BIG and ICON_SMALL as 2 calls - there are smaples of this around. James http://james.ezylink.net.au
Posted on 2001-02-11 16:48:00 by James
Hi, If you want to have the icon in the left top corner of your window (where you get close, minimize...), look : .data? hIcon dd ? .code invoke LoadIcon,hInstance,200 ;Instance of the window and ;200=id of the icon defined in the rc file mov hIcon,eax ;put the icon handle in hIcon ...rest of the code... Vom-bonjour:-()
Posted on 2001-02-11 17:03:00 by Vom-bonjour:-()
thx.
Posted on 2001-02-12 05:18:00 by CyBerian
I am starting to love Win32Asm it's great :)
Posted on 2001-02-12 05:19:00 by CyBerian