--- In [email protected], "brucexs" <bswit...@...> wrote:
>
> -
> > 1. Pin to desktop, so the bar is never on top of other things.
>
> Based on info so far, does not seem to be possible for win7 64 given powerpro
> is 32. (If you are a programmer, try writing a short program to display a 64
> bit tool window and see if you can use the trick with that one).
I have done so, and the 64bit dialog does pin to the Win7-x64 desktop by using
win.setparent(win.handle("MyDialog"),win.handle("Program Manager")). It does
not minimize on "Show Desktop".
But after a bit of time the dialog stops responding to mouse interaction.
Reparenting might not be a safe choice.
http://blogs.msdn.com/oldnewthing/archive/2004/02/24/79212.aspx
> Just a standard system call. I uploaded an exe only which tries to do it; I
> have no way of testing but this should show a debug window if it fails.
>
>
> http://powerpro.webeddie.com/download/powerpro.exe
This works to resist Aero Peek. Thanks.
> > 3. Resist Show Desktop/Win+D (and Win+M?).
> >
> > This thread suggests there is a DTM_RAISE message (WM_USER), but I didn't
> > notice one in Winspector.
>
>
> Again, does not seem to be possible.
>
> The message referred to in above thread is said to be going to Progman
> window. As stated there, it would be possible to see when progman gets this
> message by hooking progman window, but then what? You would know that win+d
> was pressed but what could you do about it? And, this type of hooking is not
> something I'd want to play with for now remotely.
>
It might end up being impossible but I can't give up yet; I prefer to think of
it as a challenge.
Some threads suggest looping and immediately restoring if state is detected as
minimized. (Although there is no Windows Message telling you it was minimized,
the state might have changed, and if so can be restored.) It is ugly, and
might be a bit cleaner with that global hook on progman's DTM_RAISE so you know
when to restore, but it is a start.
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21594755.html
(google cache of this page lets you read it)
Perhaps such a loop could also check window activation state and push it to the
back of the z-order to make it like a pinned window. (Even more ugly.)
Maybe there are better solutions out there somewhere but I haven't found them
in my searches.
Can I easily create a script loop that only runs while my bar is running and
restores if state is minimized?
Some more threads for future searchers:
http://www.rainlendar.net/cms/index.php?option=com_kunena&Itemid=42&func=view&catid=8&id=9318
http://www.codeguru.com/forum/showthread.php?t=416271
http://www.autohotkey.com/forum/topic28746.html
http://www.autoitscript.com/forum/index.php?showtopic=70539
http://channel9.msdn.com/forums/TechOff/252168-How-to-quotpinquot-to-desktop-in-Vista/