mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
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:
parent
ce77d05bc7
commit
635ee507f8
3 changed files with 30 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue