XhmikosR / notepad2-mod

LOOKING FOR DEVELOPERS - Notepad2-mod, a Notepad2 fork, a fast and light-weight Notepad-like text editor with syntax highlighting
https://xhmikosr.github.io/notepad2-mod/
Other
1.45k stars 270 forks source link

center MessageBox to the window of the program #204

Open zufuliu opened 7 years ago

zufuliu commented 7 years ago

@XhmikosR center MessageBox to the window of the program.

XhmikosR commented 7 years ago

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

zufuliu commented 7 years ago

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

XhmikosR commented 7 years ago

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.

zufuliu commented 7 years ago

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

zufuliu commented 7 years ago

@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 commented 7 years ago

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

zufuliu commented 7 years ago

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