Cleanup of User32 Code, added setter for the ExtendedWindowStyle and changed the WindowPlacement to use get/set

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2396 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-12-20 08:48:01 +00:00
commit 635ee507f8
3 changed files with 30 additions and 31 deletions

View file

@ -96,7 +96,7 @@ namespace Greenshot {
// Make sure the editor is placed on the same location as the last editor was on close
WindowDetails thisForm = new WindowDetails(this.Handle);
thisForm.SetWindowPlacement(editorConfiguration.GetEditorPlacement());
thisForm.WindowPlacement = editorConfiguration.GetEditorPlacement();
// init surface
Surface = iSurface;
@ -706,7 +706,7 @@ namespace Greenshot {
}
}
// persist our geometry string.
editorConfiguration.SetEditorPlacement(new WindowDetails(this.Handle).GetWindowPlacement());
editorConfiguration.SetEditorPlacement(new WindowDetails(this.Handle).WindowPlacement);
IniConfig.Save();
// remove from the editor list