mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
[WIP] Added forcing taskbar edge ability
This commit is contained in:
@ -26,8 +26,8 @@ using System.Resources;
|
||||
[assembly: Guid("e4ceaf5e-ad01-4695-b179-31168eb74c48")]
|
||||
|
||||
// Version information
|
||||
[assembly: AssemblyVersion("2.2.0.154")]
|
||||
[assembly: AssemblyFileVersion("2.2.0.154")]
|
||||
[assembly: AssemblyVersion("2.2.0.157")]
|
||||
[assembly: AssemblyFileVersion("2.2.0.157")]
|
||||
[assembly: NeutralResourcesLanguageAttribute( "en" )]
|
||||
[assembly: CLSCompliant(true)]
|
||||
|
||||
|
@ -653,6 +653,7 @@ namespace DisplayMagicianShared.Windows
|
||||
windowsDisplayConfig.DisplayConfigModes = modes;
|
||||
windowsDisplayConfig.GdiDisplaySettings = GetGdiDisplaySettings();
|
||||
windowsDisplayConfig.TaskBarLayout = taskBarStuckRectangles;
|
||||
windowsDisplayConfig.OriginalTaskBarLayout = new List<TaskBarStuckRectangle>(taskBarStuckRectangles);
|
||||
windowsDisplayConfig.TaskBarSettings = taskBarSettings;
|
||||
|
||||
return windowsDisplayConfig;
|
||||
@ -1385,6 +1386,17 @@ namespace DisplayMagicianShared.Windows
|
||||
{
|
||||
if (tbsr.Version >= 2 && tbsr.Version <= 3)
|
||||
{
|
||||
// Reset the Binary string back to when we grabbed it
|
||||
tbsr.OriginalBinary.CopyTo(tbsr.Binary, 0);
|
||||
|
||||
// If we have any forced edge, then force it!
|
||||
if (displayConfig.TaskBarForcedEdge != TaskBarForcedEdge.None)
|
||||
{
|
||||
// Force the edge if it needs forcing
|
||||
tbsr.Edge = (TaskBarStuckRectangle.TaskBarEdge)displayConfig.TaskBarForcedEdge;
|
||||
}
|
||||
|
||||
// Write the changes to registry
|
||||
tbsr.WriteToRegistry();
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user