Resource DLLs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Derek Lakin

    #1

    Resource DLLs

    I'm in the middle of extending my Collapsible Panel
    (http://www.codeproject.com/cs/miscct...lePanelBar.asp) control to
    support XP Themes & Styles. So I need to paint it according to the bitmaps
    that are stored in the current shellstyle.dll.

    Using uxtheme.dll I can get the current theme and work out the path to the
    current shellstyle.dll, but how can I extract the bitmaps from it? It's not
    a .NET resource file (satellite dll) so I can't use ResourceManager or
    ResourceReader. Any ideas?

    Derek.


  • Mick Doherty

    #2
    Re: Resource DLLs

    Its VB6 but it may help:



    "Derek Lakin" <derek_lakin@li neone.net> wrote in message
    news:%23vC7WMNX DHA.1748@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > I'm in the middle of extending my Collapsible Panel
    > (http://www.codeproject.com/cs/miscct...lePanelBar.asp) control[/color]
    to[color=blue]
    > support XP Themes & Styles. So I need to paint it according to the bitmaps
    > that are stored in the current shellstyle.dll.
    >
    > Using uxtheme.dll I can get the current theme and work out the path to the
    > current shellstyle.dll, but how can I extract the bitmaps from it? It's[/color]
    not[color=blue]
    > a .NET resource file (satellite dll) so I can't use ResourceManager or
    > ResourceReader. Any ideas?
    >
    > Derek.
    >
    >[/color]


    Comment

    • Derek Lakin

      #3
      Re: Resource DLLs

      Yeah, I read that already. That's how I worked out how to find the current
      shellstyle.dll.
      I just thought there would be a way to read bitmaps out of a dll that didn't
      involve making direct calls to Win32 :/

      Derek.

      "Mick Doherty" <mdaudi100@nosp am.ntlworld.com > wrote in message
      news:uNET7TNXDH A.2524@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Its VB6 but it may help:
      >[/color]
      http://www.vbaccelerator.com/home/VB...ol/article.asp[color=blue]
      >
      >
      > "Derek Lakin" <derek_lakin@li neone.net> wrote in message
      > news:%23vC7WMNX DHA.1748@TK2MSF TNGP12.phx.gbl. ..[color=green]
      > > I'm in the middle of extending my Collapsible Panel
      > > (http://www.codeproject.com/cs/miscct...lePanelBar.asp) control[/color]
      > to[color=green]
      > > support XP Themes & Styles. So I need to paint it according to the[/color][/color]
      bitmaps[color=blue][color=green]
      > > that are stored in the current shellstyle.dll.
      > >
      > > Using uxtheme.dll I can get the current theme and work out the path to[/color][/color]
      the[color=blue][color=green]
      > > current shellstyle.dll, but how can I extract the bitmaps from it? It's[/color]
      > not[color=green]
      > > a .NET resource file (satellite dll) so I can't use ResourceManager or
      > > ResourceReader. Any ideas?
      > >
      > > Derek.
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...