Posted By: ElucidWeb | Jul 8th, 2006 @ 1:44 PM
page 1 of 1
Comments: 17 | Views: 40185
So I have finished my prototype of mimicking Expose in Windows Vista and I must say it looks very nice. 

It has a TON of work that I need to do still such as maintaining constraints, variable sizing based on window focus, etc. but it at least proves that this is feasible.

Alot of my work is based on the work from Sven at http://channel9.msdn.com/ShowPost.aspx?PostID=202208

So I would like to give him credit for his job well done, I have extended his code even further to give me what I needed.

So yeah right now no hotkey support but if you just create a shortcut on your desktop and assign it a hotkey it will work just fine!

http://www.elucidweb.com/files/winpose.zip

Ok anyways, hope you like...It will evolve from here if I get good feedback I assure you!  Keep in mind this is a prototype so most of this code will be redone and refactored for the final product.

Thanks,
Eric
W3bbo
W3bbo
The Master of Baiters
We demand screenshots!
So far it's cool, but it needs a few things changed.

1) Don't minimize every windows and then maximize just the selected window... instead just bring the selected window into focus
2) Make the window previews much bigger
3) Make the window previews more opaque; they are fairly difficult to see
4) Add some kind of rollover effect to the window previews such as making the window grow or make the preview opaque...
5) Add a preview of the desktop like Flip3D has so you can go straight to the desktop
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
ElucidWeb wrote:
Edit: Ok I figured it out, if the window is minimized you dont get live previews.  Even the taskbar previews dont work properly for Video if the window is mimized, this has got to be a bug.

No it's not. It's the way Windows has worked since forever. Minimised windows do not get repainted. They have an effective size of 0x0 (if the application should query it while the window is minimised), and don't get any WM_PAINT messages. This behaviour isn't going to change.
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
ElucidWeb wrote:
Actually Sven with Composition turned on in Vista windows dont get WM_PAINT messages anymore, they dont need to handle repaint events.

Not entirely true. Windows won't get a WM_PAINT message anymore when they become visible from behind another window, but they will still get a WM_PAINT message when the window is first show, when the window is resized and when InvalidateRect is explicitly called.

Probably I was wrong, and the window does receive a WM_PAINT after it's minimised (because it's a resize operation), but like Greg's post said only for the 130x30 or something size, so the DWM is right not to use the result of that paint operation for the thumbnail (it can happen though that such a small thumbnail is created, for instance when a window was minimised when the DWM was started).
Sorry to bother, but all I seem to get from this program is a darkened desktop shot. I'm using Vista RC1 on a FireGL card with Aero support, but I don't seem to be having any luck getting winpose to work. Assuming there's no planned updates for the small app Wink , does anyone know of any alternatives on Vista that handle this functionality? =3
littleguru
littleguru
<3 Seattle
I'm getting this error in Vista RC1:

PInvokeStackImbalance was detected
Message: A call to PInvoke function 'Winpose!Winpose.Helpers.NativeMethods::DwmRegisterThumbnail' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

Seems like something has changed from beta 2 to rc 1.
littleguru wrote:
I'm getting this error in Vista RC1:

PInvokeStackImbalance was detected
Message: A call to PInvoke function 'Winpose!Winpose.Helpers.NativeMethods::DwmRegisterThumbnail' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

Seems like something has changed from beta 2 to rc 1.


Probably the number or type of arguments in one of the 'native' calls.
littleguru
littleguru
<3 Seattle
Rossj wrote:

littleguru wrote: I'm getting this error in Vista RC1:

PInvokeStackImbalance was detected
Message: A call to PInvoke function 'Winpose!Winpose.Helpers.NativeMethods::DwmRegisterThumbnail' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

Seems like something has changed from beta 2 to rc 1.


Probably the number or type of arguments in one of the 'native' calls.


Yeah. I was looking in the Microsoft documentation - but I couldn't find where any changes... Strange error. I haven't got such an error before. Mostly when trying to do a pinvoke with invalid arguments did not return any error or throw an exception: EntryPointNotFound (something like that).
mVPstar
mVPstar
I'm white because I smelt an onion.

I don't get that error in RC1.

All I get is a darkened desktop shot as mentioned before by a poster. Sad


EDIT: It works in XP, just darkens the background before throwing an error.  Interesting. Expressionless

page 1 of 1
Comments: 17 | Views: 40185
Microsoft Communities