mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed dialog layout with RTL languages
This commit is contained in:
@ -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.
|
||||
**
|
||||
|
@ -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); }
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user