@@ -22,23 +22,23 @@ internal WINDOWPLACEMENT ToWINDOWPLACEMENT()
2222 {
2323 return new WINDOWPLACEMENT
2424 {
25- length = ( uint ) Marshal . SizeOf < WINDOWPLACEMENT > ( ) ,
26- showCmd = ( SHOW_WINDOW_CMD ) this . showCmd ,
27- ptMinPosition = new System . Drawing . Point { X = ( int ) this . minPosition . X , Y = ( int ) this . minPosition . Y } ,
28- ptMaxPosition = new System . Drawing . Point { X = ( int ) this . maxPosition . X , Y = ( int ) this . maxPosition . Y } ,
29- rcNormalPosition = new RECT { left = ( int ) this . normalPosition . X , top = ( int ) this . normalPosition . Y , right = ( int ) this . normalPosition . Right , bottom = ( int ) this . normalPosition . Bottom }
25+ length = ( uint ) Marshal . SizeOf < WINDOWPLACEMENT > ( ) ,
26+ showCmd = ( SHOW_WINDOW_CMD ) this . showCmd ,
27+ ptMinPosition = new System . Drawing . Point { X = ( int ) this . minPosition . X , Y = ( int ) this . minPosition . Y } ,
28+ ptMaxPosition = new System . Drawing . Point { X = ( int ) this . maxPosition . X , Y = ( int ) this . maxPosition . Y } ,
29+ rcNormalPosition = new RECT { left = ( int ) this . normalPosition . X , top = ( int ) this . normalPosition . Y , right = ( int ) this . normalPosition . Right , bottom = ( int ) this . normalPosition . Bottom }
3030 } ;
3131 }
3232
3333 internal static WindowPlacementSetting FromWINDOWPLACEMENT ( WINDOWPLACEMENT windowplacement )
3434 {
3535 return new WindowPlacementSetting
36- {
37- showCmd = ( uint ) windowplacement . showCmd ,
38- minPosition = new Point ( windowplacement . ptMinPosition . X , windowplacement . ptMinPosition . Y ) ,
39- maxPosition = new Point ( windowplacement . ptMaxPosition . X , windowplacement . ptMaxPosition . Y ) ,
40- normalPosition = new Rect ( windowplacement . rcNormalPosition . left , windowplacement . rcNormalPosition . top , windowplacement . rcNormalPosition . GetWidth ( ) , windowplacement . rcNormalPosition . GetHeight ( ) ) ,
41- } ;
36+ {
37+ showCmd = ( uint ) windowplacement . showCmd ,
38+ minPosition = new Point ( windowplacement . ptMinPosition . X , windowplacement . ptMinPosition . Y ) ,
39+ maxPosition = new Point ( windowplacement . ptMaxPosition . X , windowplacement . ptMaxPosition . Y ) ,
40+ normalPosition = new Rect ( windowplacement . rcNormalPosition . left , windowplacement . rcNormalPosition . top , windowplacement . rcNormalPosition . GetWidth ( ) , windowplacement . rcNormalPosition . GetHeight ( ) ) ,
41+ } ;
4242 }
4343 }
4444
@@ -65,6 +65,12 @@ public interface IWindowPlacementSettings
6565 /// Stores the current values of the settings properties.
6666 /// </summary>
6767 void Save ( ) ;
68+
69+ /// <summary>
70+ /// Calls Reset on the providers.
71+ /// Providers must implement IApplicationSettingsProvider to support this.
72+ /// </summary>
73+ void Reset ( ) ;
6874 }
6975
7076 /// <summary>
0 commit comments