[loc] fix tooltip justification for RTL languages

* Left alignment was used instead of right
* Also improve device tooltip display
This commit is contained in:
Pete Batard 2018-05-10 12:07:21 +01:00
parent 070e28aa5a
commit db6a5bb749
3 changed files with 14 additions and 9 deletions

View file

@ -1112,7 +1112,8 @@ BOOL CreateTooltip(HWND hControl, const char* message, int duration)
}
// Create the tooltip window
ttlist[i].hTip = CreateWindowExW(0, TOOLTIPS_CLASS, NULL, WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP,
ttlist[i].hTip = CreateWindowExW(right_to_left_mode ? WS_EX_LAYOUTRTL : 0,
TOOLTIPS_CLASS, NULL, WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, hMainDialog, NULL,
hMainInstance, NULL);