Handle WM_MEASUREITEM message to set owner-drawn combo boxes height properly
commit9575d058ebdeb02adbbe6f05a9193acb10d9966f
authorKatsuhisa Yuasa <berupon@gmail.com>
Sun, 11 Dec 2016 05:53:32 +0000 (11 06:53 +0100)
committerSven Strickroth <email@cs-ware.de>
Tue, 13 Dec 2016 11:25:58 +0000 (13 12:25 +0100)
tree62e013c7473dd57650088ff4254d40fe74f88de5
parent8b50c02d5a86b647a9570d17d648a60733ffdbcc
Handle WM_MEASUREITEM message to set owner-drawn combo boxes height properly

Overriding CMFCFontComboBox::MeasureItem is not possible as this method is for calculating the list items heights (https://msdn.microsoft.com/library/12h9x0ch.aspx#ccombobox__measureitem). Also handling WM_MEASUREITEM in the control itself is not possible (https://msdn.microsoft.com/aa249909).

Signed-off-by: Katsuhisa Yuasa <berupon@gmail.com>
Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/TortoiseMerge/SetMainPage.cpp
src/TortoiseMerge/SetMainPage.h
src/TortoiseProc/Settings/SetDialogs.cpp
src/TortoiseProc/Settings/SetDialogs.h
src/TortoiseProc/Settings/SettingsTBlame.cpp
src/TortoiseProc/Settings/SettingsTBlame.h
src/TortoiseProc/Settings/SettingsTUDiff.cpp
src/TortoiseProc/Settings/SettingsTUDiff.h