Easy money, quick turnaround, guaranteed top rating.
I need a C# class that will return the size and AccessibleState of each of the titlebar buttons on a window.? ? The trick is simply that it must work for both XP and Win7 (Aero).? ? ? ? I have done the legwork and know that? this involves sending a TITLEBARINFOEX message when running on W7 or simply TITLEBARINFO when running on XP.? ? ? I dont have access to W7 right now - so i am posting this as a project for someone that does.? ? This should be real easy if you have any experience with WinAPI PInvoke from .NET.
Proposed:? build-out this class
public? class TitleBarInfo
{
? ? ? ? public int TitleBarInfo(IntPtr hwnd) // constructor
? ? ? ? public int CloseButtonSize {get;}
? ? ? ? public int HelpButtonSize {get;}
? ? ? ? public int MinButtonSize {get;}
? ? ? ? public int MaxButtonSize {get;}
? ? ? ? public AccessibleState CloseButtonState {get;}
? ? ? ? public AccessibleState HelpButtonState {get;}
? ? ? ? public AccessibleState MinButtonState {get;}
? ? ? ? public AccessibleState MaxButtonState {get;}
}
## Deliverables
Must target/compile on? .NET 3.5 Platform