winhlp32: Fix main window title.
Main window title was incorrect in a couple of cases:
- the value displayed when the .HLP file didn't contain nor the main window caption nor the default help file title was incorrect (they are different patterns used, but the trigger was incorrect)
- some titles were cropped (because incorrectly stored in main window caption - which is of fixed size)
Changes made:
- never generate a caption when none present on file, but always fallback to the help file title in this case
- generate default titles when none are present on file (title pattern depends on file version)
- in pattern displaying filename, only show the basename.
These changes give the same result for the main window's title on all the .hlp files from my test database. (except for some cases where 'Wine help' is used instead of 'help', but I didn't bother adding a new entry in string table).
Signed-off-by: Eric Pouech epouech@codeweavers.com