www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - win32 resources

reply Mike <vertex gmx.at> writes:
Hi!

I've now spent about 3 hours just to find out how to change the title the  
shell displays in the taskbar when it groups windows of the same  
application. FYI:

http://blogs.msdn.com/oldnewthing/archive/2004/04/08/109775.aspx

The important part is this: "The name for grouped taskbar buttons comes  
 from the version resource of the underlying program. You can view this  
directly by viewing the properties of the executable program and looking  
on the Version tab."

Now, assuming that this is a Visual Studio property (just to double-check  
I changed every possible property of my exe via the context menu with no  
effect) ... how can I tell DMD to create such a version resource?

Thanks.

-Mike (obsessed with stupid little details like that)

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Feb 02 2008
parent reply Sergey Gromov <snake.scaly gmail.com> writes:
Mike Wrote:

 The important part is this: "The name for grouped taskbar buttons comes  
  from the version resource of the underlying program. You can view this  
 directly by viewing the properties of the executable program and looking  
 on the Version tab."
It's a regular Windows resource of type VERSIONINFO: http://msdn2.microsoft.com/en-us/library/aa381058.aspx You'll have to link it into your application in order to get a Version tab in app properties and whatever comes with it. SnakE
Feb 03 2008
parent Mike <vertex gmx.at> writes:
With some further reading I found rc.exe - never had anything to do with  
resource files before, so it's kinda hard to figure out what to do, but I  
think I get the idea. Thanks.

<rant>After googling a bit for it I have to say that those resource files  
rank high among the ugliest things I've ever seen - like a bastard child  
of QuickBasic and the C preprocessor. Hmm. My new sworn enemy, the Windows  
API, makes me want to wash my hands every 15 minutes anyway, so those rc  
files fit into the overall theme quite nicely.</rant>

On Sun, 03 Feb 2008 14:17:57 +0100, Sergey Gromov <snake.scaly gmail.com>  
wrote:

 It's a regular Windows resource of type VERSIONINFO:
 http://msdn2.microsoft.com/en-us/library/aa381058.aspx
 You'll have to link it into your application in order to get a Version  
 tab
 in app properties and whatever comes with it.

 SnakE
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Feb 03 2008