[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Window titles

From: Thomas Hruska <thruska_at_cubiclesoft.com>
Date: 2006-02-08 02:23:59 CET

Simon Large wrote:
> Lübbe Onken wrote:
>
>> I hadn't even noticed the change before this discussion started, but
>> just to
>> add my 0.02€:
>>
>>> Add - %path% : TortoiseSVN
>>
>>
>> would be my preferred order of elements in the window title. The most
>> important information should come first.
>>
>> Looking at my taskbar right now, I can see that at least firefox,
>> thunderbird and outlook do it this way.
>
>
>
> Changing to "Add - TortoiseSVN - %path%" is trivial because it is just a
> resource change. Anything else needs code changes.
>
> Best of all (IMHO) would be:
> Title: Add - %path% - TortoiseSVN
> Taskbar: Add - %file/folder-without-path%
> although I don't know if this is even possible, or how much work it
> would be.

Simon, what you propose _is_ possible, but can be tricky to implement.
 From MSDN Library:

"The Shell creates a button on the taskbar whenever an application
creates a window that isn't owned. To ensure that the window button is
placed on the taskbar, create an unowned window with the WS_EX_APPWINDOW
extended style. To prevent the window button from being placed on the
taskbar, create the unowned window with the WS_EX_TOOLWINDOW extended
style. As an alternative, you can create a hidden window and make this
hidden window the owner of your visible window."

To do what you propose would probably require at least two windows.

--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
Safe C++ Design Principles (First Edition)
Learn how to write memory leak-free, secure,
portable, and user-friendly software.
Learn more and view a sample chapter:
http://www.CubicleSoft.com/SafeCPPDesign/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Feb 8 02:24:08 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.