Minimized window position in WPF
Posted
by DrLazer
on Stack Overflow
See other posts from Stack Overflow
or by DrLazer
Published on 2010-05-04T15:34:56Z
Indexed on
2010/05/04
15:48 UTC
Read the original article
Hit count: 203
I am trying to save the position of a custom dialog to the users registry, so that when they reload the same dialog, it appears in the same place they moved or resized it to previously. I am saving the windows X position Y position Width and Height. It all works fine except for when the dialog is minimized. If the dialog is minimized and the user right clicks the dialogs representation on the taskbar (windows 7) they can click "close this window". Strangely, the number -32030 gets saved in the registry as the X and Y positions but the width and height get saved correctly. Any idea where this number comes from and what to do in this situation thx
© Stack Overflow or respective owner