From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#1849: Windows 7 Taskbar Support Date: Mon, 9 Jan 2012 18:40:26 +0100 Message-ID: References: <87pqewjfxt.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326130924 27510 80.91.229.12 (9 Jan 2012 17:42:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2012 17:42:04 +0000 (UTC) Cc: 1849@debbugs.gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 09 18:42:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RkJEN-0005XY-2x for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 18:41:59 +0100 Original-Received: from localhost ([::1]:40130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkJEM-0006Ro-N9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 12:41:58 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkJEG-0006QE-9e for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 12:41:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkJEC-0002vn-4f for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 12:41:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkJEB-0002vj-WC for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 12:41:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RkJEQ-000531-2E for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 12:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2012 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1849 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: patch Original-Received: via spool by 1849-submit@debbugs.gnu.org id=B1849.132613090219374 (code B ref 1849); Mon, 09 Jan 2012 17:42:02 +0000 Original-Received: (at 1849) by debbugs.gnu.org; 9 Jan 2012 17:41:42 +0000 Original-Received: from localhost ([127.0.0.1]:51233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkJE2-00052O-Df for submit@debbugs.gnu.org; Mon, 09 Jan 2012 12:41:42 -0500 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:41090) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkJDs-000521-4L for 1849@debbugs.gnu.org; Mon, 09 Jan 2012 12:41:35 -0500 Original-Received: by dajz8 with SMTP id z8so2414447daj.3 for <1849@debbugs.gnu.org>; Mon, 09 Jan 2012 09:41:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=EbBnqJmsvVYrWOHxnZ0JcnGOW5bLfBbhtO/mgAjZhVc=; b=hYbV94gFpd3nmgfaxPUdCKGxW7Pf47tqCX/maeZ7n2eWM7KMF0UgJFp11g+jTo+Ty6 eHc5tALEC39kCNEm/G8xCGD2V4e1T4eSJ9QzxDQ+0/7oSLZ6aHxO3TYr53z91/TBW44a i1nRdlXRPC6JdORL8yNj6dxmuMdiJD442RImQ= Original-Received: by 10.68.211.161 with SMTP id nd1mr43115780pbc.50.1326130867484; Mon, 09 Jan 2012 09:41:07 -0800 (PST) Original-Received: by 10.142.247.28 with HTTP; Mon, 9 Jan 2012 09:40:26 -0800 (PST) In-Reply-To: <87pqewjfxt.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55580 Archived-At: On Sat, Jan 7, 2012 at 05:26, Jason Rumney wrote: > 2. Set the AppUserModel RelaunchCommand property of Emacs windows to > "runemacs.exe" so that pinning an running Emacs instance works as expecte= d > (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=3Dvs.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. =C2=A0 =C2=A0 Juanma