Fixed dialog layout with RTL languages

This commit is contained in:
Birunthan Mohanathas
2012-06-19 13:52:07 +03:00
parent 431fa7b736
commit 15380f1697
41 changed files with 10 additions and 22 deletions

View File

@ -65,11 +65,6 @@ INT_PTR CDialog::OnActivate(WPARAM wParam, LPARAM lParam)
return FALSE;
}
void CDialog::SetDialogRTL(HWND window)
{
SetWindowLongPtr(window, GWL_EXSTYLE, GetWindowLongPtr(window, GWL_EXSTYLE) | WS_EX_LAYOUTRTL);
}
/*
** Sets dialog font to UI font.
**

View File

@ -53,9 +53,6 @@ protected:
INT_PTR OnActivate(WPARAM wParam, LPARAM lParam);
void SetDialogRTL(HWND window);
void SetDialogRTL() { SetDialogRTL(m_Window); }
void SetDialogFont(HWND window);
void SetDialogFont() { SetDialogFont(m_Window); }

View File

@ -260,12 +260,6 @@ INT_PTR CDialogAbout::OnInitDialog(WPARAM wParam, LPARAM lParam)
HICON hIcon = GetIcon(IDI_RAINMETER);
SendMessage(m_Window, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
if (*GetString(ID_STR_ISRTL) == L'1')
{
// Use RTL layout if using a RTL language
SetDialogRTL();
}
item = GetDlgItem(m_Window, IDC_ABOUT_TAB);
TCITEM tci = {0};
tci.mask = TCIF_TEXT;

View File

@ -212,12 +212,6 @@ INT_PTR CDialogManage::OnInitDialog(WPARAM wParam, LPARAM lParam)
HICON hIcon = GetIcon(IDI_RAINMETER);
SendMessage(m_Window, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
if (*GetString(ID_STR_ISRTL) == L'1')
{
// Use RTL layout if using a RTL language
SetDialogRTL();
}
item = GetDlgItem(m_Window, IDC_MANAGE_TAB);
TCITEM tci = {0};
tci.mask = TCIF_TEXT;