Previously the window size and position was obtained in such a way that
when the window is closed while minimized, it would be hidden when the
program is started again. Closing a maximized window would save the
size of the maximized window and use it as the normal/restored size when
the program is started again.
Player names can be 31 characters long in Windows, so winemine should
now be able to read any of the player names in the registry created from
the minesweeper in the native Windows.
There were a few lines of code that I removed that explicitly kept the
number of mines and the timer unlit before the game started. This isn't
consistent with Windows, so I don't know what the purpose was for doing
this. In fact, it prevents the number of mines from being shown ahead
of time, which is useful information.
The first choice never is on a mine in Windows. This can be tested by
making a custom game with as many mines as possible, and then playing
the start of many games, and the first choice will never be on a mine.
This is done to make the game reasonable, since after the first choice
there will at least be some information given to make the next choice.
The combobox to select the alignment in the paragraph format dialog
did not have enough height to display the dropdown list. Also, code was
missing to set the alignment when OK button is pressed. This patch fixes
these issues.
The changes were previously being applied only when the combobox's edit
control lost focus notifying an end edit event. In addition, the
selection of an item from the dropdown list should also cause the
changes to be applied. New functions were created to handle the
duplication in expected behaviour for these two events.
When run with the native richedit control the selection will be hidden
when focus is lost without the ES_NOHIDESEL style applied to the
richedit control. This can be annoying in native windows when focus is
on a combobox in the toolbar, because it won't show what text will be
changed. This patch adds the ES_NOHIDESEL style to be consistent with
native wordpad.