|
0 registered members (),
3,467
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: add_buffer() + 32.ico
[Re: amy]
#271518
06/13/09 17:21
06/13/09 17:21
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
doesnt it work when you change the icon of the acknex.exe with reshacker and then publish your project?
3333333333
|
|
|
Re: add_buffer() + 32.ico
[Re: jcl]
#273700
06/23/09 22:47
06/23/09 22:47
|
Joined: May 2002
Posts: 7,441
ventilator
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2002
Posts: 7,441
|
The application icon (displayed in the taskbar) is now set from the acknex.exe icon, and can be changed to any custom icon with an icon editor. does this also work with my own exe if i use the engine from c++ or other languages or does this only work with the original acknex.exe?
|
|
|
Re: add_buffer() + 32.ico
[Re: ventilator]
#273719
06/24/09 06:14
06/24/09 06:14
|
Joined: Jul 2000
Posts: 28,108 Frankfurt
jcl

Chief Engineer
|

Chief Engineer
Joined: Jul 2000
Posts: 28,108
Frankfurt
|
It works with the original compiled EXE, but when you use your own, you can set the icon anyway:
HICON app_icon = LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON)); // use your ICON ID here SendMessage(ev->hWnd, WM_SETICON, ICON_SMALL,(LPARAM)app_icon); SendMessage(ev->hWnd, WM_SETICON, ICON_BIG,(LPARAM)app_icon);
|
|
|
Re: add_buffer() + 32.ico
[Re: jcl]
#275140
06/30/09 09:38
06/30/09 09:38
|
Joined: May 2002
Posts: 7,441
ventilator
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2002
Posts: 7,441
|
thanks! i tried this and it works but there is a small problem. in my exe i have this resource:
Icon Group
1
English (United States)
32x32 16 Colour
16x16 16 Colour
32x32 256 Colour
16x16 256 Colour
48x48 32 Bit Colour
32x32 32 Bit Colour
16x16 32 Bit Colour
i get the icon like that: HICON app_icon = LoadIcon(hInstance,MAKEINTRESOURCE(1)); but then a 32x32 icon gets used for ICON_SMALL and ICON_BIG. 32x32 doesn't look good on the window where it's supposed to be 16x16! (that's also why the default a7 icon is so ugly on the window.) maybe you or someone else knows how to get a 16x16 icon for ICON_SMALL?
|
|
|
|