[ui] more info field fixes

* Prevent text selection and try to force a redraw, to ensure the text is centered on update
* Also update the libcdio 'AL' workaround
This commit is contained in:
Pete Batard 2017-07-26 11:47:02 +01:00
parent 0a3c04379b
commit bb00e220ac
4 changed files with 15 additions and 10 deletions

View file

@ -427,7 +427,8 @@ static uint64_t last_msg_time[2] = { 0, 0 };
static void PrintInfoMessage(char* msg) {
SetWindowTextU(hInfo, msg);
Edit_SetSel(hInfo, -1, 0);
// Make sure our field gets redrawn
SendMessage(hInfo, WM_PAINT, 0, 0);
}
static void PrintStatusMessage(char* msg) {
SendMessageLU(hStatus, SB_SETTEXTW, SBT_OWNERDRAW | SB_SECTION_LEFT, msg);