[ui] fix info box when downloading Syslinux/GRUB files

* Don't duplicate the PrintInfo() from DownloadFile()
* Make sure caret is disabled and displayed text will not appear selected
* Also update MSG_085 and remove unneeded MSG_240
This commit is contained in:
Pete Batard 2017-07-24 17:20:17 +01:00
parent 7ef65b551a
commit 93c2d7851e
5 changed files with 51 additions and 97 deletions

View file

@ -24,6 +24,7 @@
#endif
#include <windows.h>
#include <windowsx.h>
#include <stdio.h>
#include <wchar.h>
#include <string.h>
@ -426,6 +427,7 @@ static uint64_t last_msg_time[2] = { 0, 0 };
static void PrintInfoMessage(char* msg) {
SetWindowTextU(hInfo, msg);
Edit_SetSel(hInfo, -1, 0);
}
static void PrintStatusMessage(char* msg) {
SendMessageLU(hStatus, SB_SETTEXTW, SBT_OWNERDRAW | SB_SECTION_LEFT, msg);