- ms_hwndTT = (WXHWND)::CreateWindow(TOOLTIPS_CLASS,
- (LPSTR)NULL,
- TTS_ALWAYSTIP,
- CW_USEDEFAULT, CW_USEDEFAULT,
- CW_USEDEFAULT, CW_USEDEFAULT,
- NULL, (HMENU)NULL,
- wxGetInstance(),
- NULL);
+ WXDWORD exflags = 0;
+ if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
+ {
+ exflags |= WS_EX_LAYOUTRTL;
+ }
+
+ // we want to show the tooltips always (even when the window is not
+ // active) and we don't want to strip "&"s from them
+ ms_hwndTT = (WXHWND)::CreateWindowEx(exflags,
+ TOOLTIPS_CLASS,
+ (LPCTSTR)NULL,
+ TTS_ALWAYSTIP | TTS_NOPREFIX,
+ CW_USEDEFAULT, CW_USEDEFAULT,
+ CW_USEDEFAULT, CW_USEDEFAULT,
+ NULL, (HMENU)NULL,
+ wxGetInstance(),
+ NULL);