Windows XP application group icon

  • Thread starter Matthew Fitzpatrick
  • Start date
M

Matthew Fitzpatrick

when multiple similar forms are opened up, windows xp can group them into an
application group button on the start bar.

Unfortunately, this application group uses the icon of the application's
executable, and not the icon that has been specified by form.

another usenet post here (watch for URL wrap)

http://groups.google.com/groups?hl=...c3610c%243a0cb900%24a601280a%40phx.gbl&rnum=6

I am hoping that someone knows a handy way to set the icon used by
application groups (without changing the application's icon), either using
interop or some esoteric .net wizardry that i've been unable to find.

Failing that, i am hoping that someone knows a way to prevent multiple forms
from being grouped in the start bar, but on an application basis instead of
going into the start bar properties and setting it there. If this can be
accomplished by interop or .net wizardry i'd love to hear of it also.
 
M

Max

If you won't find anything better - try SetClassLong API function.
SetClassLong(YourForm.Handle,GCL_HICON, DesiredIcon.Handle)
and/or
SetClassLong(YourForm.Handle,GCL_HICONSM, DesiredIcon.Handle)
See platform SDK and Winuser.h for more information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top