Open zufuliu opened 7 years ago
Thanks! Works but the mouse isn't moved to the OK button like in the About dialog.
on win10, I say both OK button is focused / highlighted, mouse isn't moved for both dialog.
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 keep this open,I will make some changes.
@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.
@XhmikosR snap to default button is done, based on the article at https://blogs.msdn.microsoft.com/oldnewthing/20130826-00/?p=3413/
@XhmikosR can you spend some time to review this PR on weekday?
@XhmikosR center MessageBox to the window of the program.