mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-22 10:55:19 -04:00
[loc] fix various RTL issues
* Tooltips were not properly displaying * When displaying human readable size, the order for the size and suffix was wrong * First character of "0x##" in the BIOS ID would not display as zero on an Arabic machine
This commit is contained in:
parent
b6bc17b7f4
commit
34dd36d7c2
4 changed files with 16 additions and 14 deletions
|
@ -794,7 +794,7 @@ BOOL CreateTooltip(HWND hControl, const char* message, int duration)
|
|||
// Associate the tooltip to the control
|
||||
toolInfo.cbSize = sizeof(toolInfo);
|
||||
toolInfo.hwnd = ttlist[i].hTip; // Set to the tooltip itself to ease up subclassing
|
||||
toolInfo.uFlags = TTF_IDISHWND | TTF_SUBCLASS;
|
||||
toolInfo.uFlags = TTF_IDISHWND | TTF_SUBCLASS | ((right_to_left_mode)?TTF_RTLREADING:0);
|
||||
toolInfo.uId = (UINT_PTR)hControl;
|
||||
toolInfo.lpszText = LPSTR_TEXTCALLBACKW;
|
||||
SendMessageW(ttlist[i].hTip, TTM_ADDTOOLW, 0, (LPARAM)&toolInfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue