From 4e16218dece00d9ed90b1e5ba6e8735896d89cad Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sat, 22 Dec 2012 11:18:53 +0200 Subject: [PATCH] Fixed dialog layout with RTL languages --- Library/DialogAbout.cpp | 2 +- Library/DialogManage.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/DialogAbout.cpp b/Library/DialogAbout.cpp index 8b4fc133..8eb3f5c1 100644 --- a/Library/DialogAbout.cpp +++ b/Library/DialogAbout.cpp @@ -62,7 +62,7 @@ void CDialogAbout::Open(int tab) GetString(ID_STR_ABOUTRAINMETER), 0, 0, 400, 210, DS_CENTER | WS_POPUP | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME, - WS_EX_APPWINDOW | WS_EX_CONTROLPARENT, + WS_EX_APPWINDOW | WS_EX_CONTROLPARENT | ((*GetString(ID_STR_ISRTL) == L'1') ? WS_EX_LAYOUTRTL : 0), Rainmeter->GetWindow()); // Fake WM_NOTIFY to change tab diff --git a/Library/DialogManage.cpp b/Library/DialogManage.cpp index 7ef08cf3..490b8cef 100644 --- a/Library/DialogManage.cpp +++ b/Library/DialogManage.cpp @@ -89,7 +89,7 @@ void CDialogManage::Open(int tab) GetString(ID_STR_MANAGERAINMETER), 0, 0, 500, 322, DS_CENTER | WS_POPUP | WS_MINIMIZEBOX | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME, - WS_EX_APPWINDOW | WS_EX_CONTROLPARENT, + WS_EX_APPWINDOW | WS_EX_CONTROLPARENT | ((*GetString(ID_STR_ISRTL) == L'1') ? WS_EX_LAYOUTRTL : 0), Rainmeter->GetWindow()); // Fake WM_NOTIFY to change tab