<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
Hi, Michael - <br>
<br>
Can I ask you to put this question up over on Ask.Mozilla.Org? You
may have better results over there.<br>
<br>
Thanks,<br>
<br>
- mhoye<br>
<br>
On 2014-12-09 1:48 PM, Josh Matthews wrote:<br>
</div>
<blockquote
cite="mid:CAOvJiVVgLgWtU6yLpWkFSK8Suyk3wBXfUBQPqmmye14FugEA7g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi Michael,<br>
It's unclear from this message what your question actually is.
You did provide some useful context, which is appreciated, but
what is the issue you're encountering on which you would like
input?<br>
<br>
Cheers,<br>
</div>
Josh<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 8 December 2014 at 21:34, M V <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:mvocom@gmail.com" target="_blank">mvocom@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="rtl">
<div dir="ltr">Hello,<br>
<br>
</div>
<div dir="ltr">I've posted the following question in
various forums, but never received a good answer. <br>
</div>
<div dir="ltr">If you are familiar with the issue, I would
truly be grateful for your help.<br>
<br>
***<br>
I use a toolbar button to toggle between normal and
private windows.<br>
Here is the code:<br>
<br>
OpenBrowserWindow({private:
!PrivateBrowsingUtils.isWindowPrivate(window)});<code><br>
setTimeout(BrowserTryToCloseWindow, 80);<br>
<br>
</code><br>
I use 'setTimeout' in order to prevent some flickering.<br>
<br>
When the new window opens, it gets the focus.<br>
When the command 'BrowserTryToCloseWindow' is executed,
the focus returns to the old window.<br>
When the old window is closed, the new one <b>does have
the focus</b>, but it isn't 'checked / active' in
Windows Task Bar.<br>
<br>
I suppose I need to use <a moz-do-not-send="true"
href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb774644%28v=vs.85%29.aspx"
target="_blank">ITaskbarList::ActivateTab</a> in order
to activate the new window in the task bar.<br>
I have the (very) basic direction:<br>
<br>
Components.utils.import(<a class="moz-txt-link-rfc2396E" href="resource://gre/modules/ctypes.jsm">"resource://gre/modules/ctypes.jsm"</a>);<br>
var lib = ctypes.open("shell32.dll");<br>
var taskBar = lib.declare(---<br>
taskBar---<code><br>
lib.close();<br>
<br>
*<br>
</code><br>
Win 7, 32-bit, <b>Classic Theme</b>.<br>
<br>
***<br>
</div>
<div dir="ltr">Best regards,<br>
</div>
<div dir="ltr">Michael<br>
</div>
</div>
<br>
_______________________________________________<br>
firefox-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br>
<a moz-do-not-send="true"
href="https://mail.mozilla.org/listinfo/firefox-dev"
target="_blank">https://mail.mozilla.org/listinfo/firefox-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
firefox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a>
<a class="moz-txt-link-freetext" href="https://mail.mozilla.org/listinfo/firefox-dev">https://mail.mozilla.org/listinfo/firefox-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>