unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Jason Rumney <jasonr@gnu.org>
Cc: 1849@debbugs.gnu.org
Subject: bug#1849: Windows 7 Taskbar Support
Date: Mon, 9 Jan 2012 18:40:26 +0100	[thread overview]
Message-ID: <CAAeL0SR_2CvxV7_bMOqUpeczXpE9x8+yasJFGi+5K7SjLR8BQw@mail.gmail.com> (raw)
In-Reply-To: <87pqewjfxt.fsf@gnu.org>

On Sat, Jan 7, 2012 at 05:26, Jason Rumney <jasonr@gnu.org> wrote:

> 2. Set the AppUserModel RelaunchCommand property of Emacs windows to
> "runemacs.exe" so that pinning an running Emacs instance works as expected
> (launch via runemacs.exe so the command window does not show).
>
> Unfortunately both of these require directly using the IPropertyStore
> interface,

If I'm reading the docs right, this also means that, instead of
SetCurrentProcessExplicitUserModelID, we'll have to use the
IPropertyStore to set the AppUserModelID at the window level:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx

"When an application sets an explicit AppUserModelID at the window
level, the application can provide the specifics of its relaunch
command for its taskbar button."

Doc for SHGetPropertyStoreForWindow says: "A window's properties must
be removed before the window is closed. If this is not done, the
resources used by those properties are not returned to the system. A
property is removed by setting it to the PROPVARIANT type VT_EMPTY."

So it seems like there will be initialization and cleanup for every
frame creation/destruction.

    Juanma





  reply	other threads:[~2012-01-09 17:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4A4A35DF.4040106@f2s.com>
2009-01-10 18:33 ` bug#1849: Windows 7 Taskbar Support Michael Kleehammer
2009-01-11 14:21   ` Jason Rumney
2009-01-11 14:30     ` Processed: " Emacs bug Tracking System
2009-06-30 16:05   ` bug#1849: marked as done (Windows 7 Taskbar Support) Emacs bug Tracking System
2012-01-07  4:26   ` bug#1849: Windows 7 Taskbar Support Jason Rumney
2012-01-09 17:40     ` Juanma Barranquero [this message]
2016-02-29  4:20   ` Lars Ingebrigtsen
2016-02-29 15:26     ` Eli Zaretskii
2021-09-19 16:20       ` Stefan Kangas
2021-09-19 17:13         ` Eli Zaretskii
2021-09-19 17:38           ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAeL0SR_2CvxV7_bMOqUpeczXpE9x8+yasJFGi+5K7SjLR8BQw@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=1849@debbugs.gnu.org \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).