notepad2-mod icon indicating copy to clipboard operation
notepad2-mod copied to clipboard

center MessageBox to the window of the program

Open zufuliu opened this issue 8 years ago • 7 comments

@XhmikosR center MessageBox to the window of the program.

zufuliu avatar Aug 16 '17 06:08 zufuliu

Thanks! Works but the mouse isn't moved to the OK button like in the About dialog.

XhmikosR avatar Aug 16 '17 06:08 XhmikosR

on win10, I say both OK button is focused / highlighted, mouse isn't moved for both dialog.

zufuliu avatar Aug 16 '17 07:08 zufuliu

It is for me. Just change your mouse settings. Then you will see the OK button takes focus in the About dialog while it doesn't in cmd help one.

XhmikosR avatar Aug 16 '17 07:08 XhmikosR

@XhmikosR keep this open,I will make some changes.

zufuliu avatar Aug 16 '17 08:08 zufuliu

@XhmikosR the changes is updated, through the mouse bug not solved. I would identify it as wild behave of MessageBox. try to find some none existing text in Windows's Notepad, the Not found message box centered on the screen, the OK button does not get mouse.

zufuliu avatar Aug 16 '17 11:08 zufuliu

@XhmikosR snap to default button is done, based on the article at https://blogs.msdn.microsoft.com/oldnewthing/20130826-00/?p=3413/

zufuliu avatar Aug 16 '17 17:08 zufuliu

@XhmikosR can you spend some time to review this PR on weekday?

zufuliu avatar Aug 18 '17 08:08 zufuliu