Windows XP application group icon

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matthew Fitzpatrick

    #1

    Windows XP application group icon

    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)



    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.


  • Puneet Taneja

    #2
    Windows XP application group icon

    Dear Matthew,

    However I am not very sure if this resolves your problem
    or not.... still I am just posting you my observation.

    That's very right that Windows XP groups multiple windows
    and the group icon is set to the Application's icon.

    For this you can set the application's icon from the
    project properties to an appropriate icon and then this
    new icon will be shown as the group icon for individual
    forms of your application.

    Also remember this Application icon will be set to group
    icon only in case of release mode. In debug mode, the
    same out-of-date icon will appear.

    Regards,
    Puneet Taneja


    [color=blue]
    >-----Original Message-----
    >when multiple similar forms are opened up, windows xp[/color]
    can group them into an[color=blue]
    >application group button on the start bar.
    >
    >Unfortunatel y, this application group uses the icon of[/color]
    the application's[color=blue]
    >executable, and not the icon that has been specified by[/color]
    form.[color=blue]
    >
    >another usenet post here (watch for URL wrap)
    >
    >http://groups.google.com/groups?hl=e...ang_en&ie=UTF-[/color]
    8&oe=UTF-8&safe=off&thre adm=01f901c3610 c%243a0cb900%
    24a601280a%40ph x.gbl&rnum=6&pr ev=/groups%3Fq%
    3Dapplication%2 Bgroup%2Bicon%2 Bc%2523%26hl%3D en%26lr%
    3Dlang_en%26ie% 3DUTF-8%26oe%3DUTF-8%26safe%3Doff% 26selm%
    3D01f901c3610c% 25243a0cb900%25 24a601280a%2540 phx.gbl%
    26rnum%3D6[color=blue]
    >
    >I am hoping that someone knows a handy way to set the[/color]
    icon used by[color=blue]
    >application groups (without changing the application's[/color]
    icon), either using[color=blue]
    >interop or some esoteric .net wizardry that i've been[/color]
    unable to find.[color=blue]
    >
    >Failing that, i am hoping that someone knows a way to[/color]
    prevent multiple forms[color=blue]
    >from being grouped in the start bar, but on an[/color]
    application basis instead of[color=blue]
    >going into the start bar properties and setting it[/color]
    there. If this can be[color=blue]
    >accomplished by interop or .net wizardry i'd love to[/color]
    hear of it also.[color=blue]
    >
    >
    >.
    >[/color]

    Comment

    • Max

      #3
      Re: Windows XP application group icon

      If you won't find anything better - try SetClassLong API function.
      SetClassLong(Yo urForm.Handle,G CL_HICON, DesiredIcon.Han dle)
      and/or
      SetClassLong(Yo urForm.Handle,G CL_HICONSM, DesiredIcon.Han dle)
      See platform SDK and Winuser.h for more information.



      "Matthew Fitzpatrick" <matt@eci.com > wrote in message
      news:u4%23g4N$w DHA.1912@TK2MSF TNGP09.phx.gbl. ..[color=blue]
      > when multiple similar forms are opened up, windows xp can group them into[/color]
      an[color=blue]
      > 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)
      >
      >[/color]
      http://groups.google.com/groups?hl=e...gbl%26rnum%3D6[color=blue]
      >
      > 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[/color]
      forms[color=blue]
      > from being grouped in the start bar, but on an application basis instead[/color]
      of[color=blue]
      > 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.
      >
      >[/color]


      Comment

      • Max

        #4
        Re: Windows XP application group icon

        If you won't find anything better - try SetClassLong API function.
        SetClassLong(Yo urForm.Handle,G CL_HICON, DesiredIcon.Han dle)
        and/or
        SetClassLong(Yo urForm.Handle,G CL_HICONSM, DesiredIcon.Han dle)
        See platform SDK and Winuser.h for more information.



        "Matthew Fitzpatrick" <matt@eci.com > wrote in message
        news:u4%23g4N$w DHA.1912@TK2MSF TNGP09.phx.gbl. ..[color=blue]
        > when multiple similar forms are opened up, windows xp can group them into[/color]
        an[color=blue]
        > 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)
        >
        >[/color]
        http://groups.google.com/groups?hl=e...gbl%26rnum%3D6[color=blue]
        >
        > 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[/color]
        forms[color=blue]
        > from being grouped in the start bar, but on an application basis instead[/color]
        of[color=blue]
        > 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.
        >
        >[/color]


        Comment

        • Matthew Fitzpatrick

          #5
          Re: Windows XP application group icon

          I have a configuration file i'm using to "theme" my application. I want
          everyone to be able to configure the app to look how they want it to, so i
          need runtime (not compile-time) options. a super-hero named max showed me a
          nifty interop function i can try. I'll post the results shortly!

          "Puneet Taneja" <PuneetT@NIIT.C om> wrote in message
          news:07e401c3c4 5d$6ecd8070$a10 1280a@phx.gbl.. .[color=blue]
          > Dear Matthew,
          >
          > However I am not very sure if this resolves your problem
          > or not.... still I am just posting you my observation.
          >
          > That's very right that Windows XP groups multiple windows
          > and the group icon is set to the Application's icon.
          >
          > For this you can set the application's icon from the
          > project properties to an appropriate icon and then this
          > new icon will be shown as the group icon for individual
          > forms of your application.
          >
          > Also remember this Application icon will be set to group
          > icon only in case of release mode. In debug mode, the
          > same out-of-date icon will appear.
          >
          > Regards,
          > Puneet Taneja
          >
          >
          >[color=green]
          > >-----Original Message-----
          > >when multiple similar forms are opened up, windows xp[/color]
          > can group them into an[color=green]
          > >application group button on the start bar.
          > >
          > >Unfortunatel y, this application group uses the icon of[/color]
          > the application's[color=green]
          > >executable, and not the icon that has been specified by[/color]
          > form.[color=green]
          > >
          > >another usenet post here (watch for URL wrap)
          > >
          > >http://groups.google.com/groups?hl=e...ang_en&ie=UTF-[/color]
          > 8&oe=UTF-8&safe=off&thre adm=01f901c3610 c%243a0cb900%
          > 24a601280a%40ph x.gbl&rnum=6&pr ev=/groups%3Fq%
          > 3Dapplication%2 Bgroup%2Bicon%2 Bc%2523%26hl%3D en%26lr%
          > 3Dlang_en%26ie% 3DUTF-8%26oe%3DUTF-8%26safe%3Doff% 26selm%
          > 3D01f901c3610c% 25243a0cb900%25 24a601280a%2540 phx.gbl%
          > 26rnum%3D6[color=green]
          > >
          > >I am hoping that someone knows a handy way to set the[/color]
          > icon used by[color=green]
          > >application groups (without changing the application's[/color]
          > icon), either using[color=green]
          > >interop or some esoteric .net wizardry that i've been[/color]
          > unable to find.[color=green]
          > >
          > >Failing that, i am hoping that someone knows a way to[/color]
          > prevent multiple forms[color=green]
          > >from being grouped in the start bar, but on an[/color]
          > application basis instead of[color=green]
          > >going into the start bar properties and setting it[/color]
          > there. If this can be[color=green]
          > >accomplished by interop or .net wizardry i'd love to[/color]
          > hear of it also.[color=green]
          > >
          > >
          > >.
          > >[/color][/color]


          Comment

          • Matthew Fitzpatrick

            #6
            Re: Windows XP application group icon

            I have a configuration file i'm using to "theme" my application. I want
            everyone to be able to configure the app to look how they want it to, so i
            need runtime (not compile-time) options. a super-hero named max showed me a
            nifty interop function i can try. I'll post the results shortly!

            "Puneet Taneja" <PuneetT@NIIT.C om> wrote in message
            news:07e401c3c4 5d$6ecd8070$a10 1280a@phx.gbl.. .[color=blue]
            > Dear Matthew,
            >
            > However I am not very sure if this resolves your problem
            > or not.... still I am just posting you my observation.
            >
            > That's very right that Windows XP groups multiple windows
            > and the group icon is set to the Application's icon.
            >
            > For this you can set the application's icon from the
            > project properties to an appropriate icon and then this
            > new icon will be shown as the group icon for individual
            > forms of your application.
            >
            > Also remember this Application icon will be set to group
            > icon only in case of release mode. In debug mode, the
            > same out-of-date icon will appear.
            >
            > Regards,
            > Puneet Taneja
            >
            >
            >[color=green]
            > >-----Original Message-----
            > >when multiple similar forms are opened up, windows xp[/color]
            > can group them into an[color=green]
            > >application group button on the start bar.
            > >
            > >Unfortunatel y, this application group uses the icon of[/color]
            > the application's[color=green]
            > >executable, and not the icon that has been specified by[/color]
            > form.[color=green]
            > >
            > >another usenet post here (watch for URL wrap)
            > >
            > >http://groups.google.com/groups?hl=e...ang_en&ie=UTF-[/color]
            > 8&oe=UTF-8&safe=off&thre adm=01f901c3610 c%243a0cb900%
            > 24a601280a%40ph x.gbl&rnum=6&pr ev=/groups%3Fq%
            > 3Dapplication%2 Bgroup%2Bicon%2 Bc%2523%26hl%3D en%26lr%
            > 3Dlang_en%26ie% 3DUTF-8%26oe%3DUTF-8%26safe%3Doff% 26selm%
            > 3D01f901c3610c% 25243a0cb900%25 24a601280a%2540 phx.gbl%
            > 26rnum%3D6[color=green]
            > >
            > >I am hoping that someone knows a handy way to set the[/color]
            > icon used by[color=green]
            > >application groups (without changing the application's[/color]
            > icon), either using[color=green]
            > >interop or some esoteric .net wizardry that i've been[/color]
            > unable to find.[color=green]
            > >
            > >Failing that, i am hoping that someone knows a way to[/color]
            > prevent multiple forms[color=green]
            > >from being grouped in the start bar, but on an[/color]
            > application basis instead of[color=green]
            > >going into the start bar properties and setting it[/color]
            > there. If this can be[color=green]
            > >accomplished by interop or .net wizardry i'd love to[/color]
            > hear of it also.[color=green]
            > >
            > >
            > >.
            > >[/color][/color]


            Comment

            Working...