Welcome, Guest
Please Login or Register.    Lost Password?

pin to desktop support in win 7
(1 viewing) (1) Guest
Go to bottomPage: 1234
TOPIC: pin to desktop support in win 7
#9318
pin to desktop support in win 7 5 Years, 7 Months ago  
so I know that the developers are aware of the issue when trying to pin the windows to the desktop in vista or newer OSes; I get a warning in v. 2.5 of rainlendar that vista renders things poorly when I try to select it. and if I do select it, transparency stops working and the rendering does indeed get weird.

I just wanted to point out that, in windows 7, there is a button on the far right side of the taskbar that highlights the desktop by turning all open windows into outlines when you hover the mouse over it (the feature is called "preview desktop," and is a sub-function of aero peek):

www.winsupersite.com/win7/ff_aero_peek.asp

needless to say, it would be awesome if rainlendar was preserved when I did this, so that I could check my calendar by hovering over this button.
foxhedgehog
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/16 02:43 By foxhedgehog.
The administrator has disabled public write access.
 
#9331
Re:pin to desktop support in win 7 5 Years, 7 Months ago  
Yes, it would be great if the calendar stayed visible with the aero peek so let's hope that Microsoft releases an API or instructions how this can be accomplished.
Rainy
Moderator
Posts: 5971
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9350
Re:pin to desktop support in win 7 5 Years, 7 Months ago  
hi rainy

for what it's worth I cross-posted this question at a windows 7 forum and they suggested that the only way to do this at present was to develop rainlendar under the microsofy gadget architecture:

www.sevenforums.com/customization/5388-preview-desktop-question-new-post.html

so yeah, I'm definitely hoping for the release of the API
foxhedgehog
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10671
Re:pin to desktop support in win 7 5 Years, 2 Months ago  
Hey rainy ... here's the code you need

Code:


using System;
using System.Runtime.InteropServices;

namespace Huddled {
   public static class Dwm {
      [DllImport("dwmapi.dll", PreserveSig = false)]
      public static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);

      [Flags]
      public enum DwmWindowAttribute
      {
         NCRenderingEnabled = 1,
         NCRenderingPolicy,
         TransitionsForceDisabled,
         AllowNCPaint,
         CaptionButtonBounds,
         NonClientRtlLayout,
         ForceIconicRepresentation,
         Flip3DPolicy,
         ExtendedFrameBounds,
         HasIconicBitmap,
         DisallowPeek,
         ExcludedFromPeek,
         Last
      }

      [Flags]
      public enum DwmNCRenderingPolicy
      {
         UseWindowStyle,
         Disabled,
         Enabled,
         Last
      }

      public static void RemoveFromAeroPeek(IntPtr Hwnd) //Hwnd is the handle to your window
      {
         int renderPolicy = (int)DwmNCRenderingPolicy.Enabled;
         DwmSetWindowAttribute(Hwnd, (int)DwmWindowAttribute.ExcludedFromPeek, ref renderPolicy, sizeof(int));
      }
   }
}

Jaykul
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Jaykul Huddled Masses Jaykul@HuddledMasses.org Jaykul@HuddledMasses.org Jaykul Birthday: 05/22
The administrator has disabled public write access.
 
#10672
Re:pin to desktop support in win 7 5 Years, 2 Months ago  
Oh, and as a bonus ... while you wait for Rainy, here's a PowerShell 2.0 script which will fix all the Rainlendar windows so they don't hide during Aero Peek on Windows 7

I wrote this up as a PowerShell script/function to make it a little easier to use to apply this trick to whatever other apps you may have ... http://huddledmasses.org/fun-with-pinvoke-and-aero-peek/
Jaykul
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Jaykul Huddled Masses Jaykul@HuddledMasses.org Jaykul@HuddledMasses.org Jaykul Birthday: 05/22
Last Edit: 2009/08/23 19:40 By Jaykul.Reason: Removed code and add link to blog post explaining it better
The administrator has disabled public write access.
 
#10675
Re:pin to desktop support in win 7 5 Years, 2 Months ago  
Some quick instructions about how and where should we add this?

Thanks
cristianciofu
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Cristian Ciofu Location: Romania Birthday: 09/10
The administrator has disabled public write access.
Rainlendar PRO - proud owner

www.iamChris.info
 
Go to topPage: 1234
get the latest posts directly to your desktop