mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
UI tweaks.
This commit is contained in:
parent
28e8973439
commit
ccb3793689
@ -882,7 +882,7 @@ INT_PTR CDialogManage::CTabSkins::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
TrackPopupMenu(
|
TrackPopupMenu(
|
||||||
menu,
|
menu,
|
||||||
TPM_RIGHTBUTTON | TPM_LEFTALIGN,
|
TPM_RIGHTBUTTON | TPM_LEFTALIGN,
|
||||||
r.left,
|
(wcscmp(GetString(ID_STR_ISRTL), L"1") == 0) ? r.right : r.left,
|
||||||
--r.bottom,
|
--r.bottom,
|
||||||
0,
|
0,
|
||||||
m_Window,
|
m_Window,
|
||||||
@ -1046,7 +1046,7 @@ INT_PTR CDialogManage::CTabSkins::OnCommand(WPARAM wParam, LPARAM lParam)
|
|||||||
TrackPopupMenu(
|
TrackPopupMenu(
|
||||||
subMenu,
|
subMenu,
|
||||||
TPM_RIGHTBUTTON | TPM_LEFTALIGN,
|
TPM_RIGHTBUTTON | TPM_LEFTALIGN,
|
||||||
r.left,
|
(wcscmp(GetString(ID_STR_ISRTL), L"1") == 0) ? r.right : r.left,
|
||||||
--r.bottom,
|
--r.bottom,
|
||||||
0,
|
0,
|
||||||
m_Window,
|
m_Window,
|
||||||
@ -1649,19 +1649,12 @@ void CDialogManage::CTabSettings::Initialize()
|
|||||||
{
|
{
|
||||||
// Strip brackets in language name
|
// Strip brackets in language name
|
||||||
std::wstring text = fd.cFileName;
|
std::wstring text = fd.cFileName;
|
||||||
std::wstring::size_type pos = 0;
|
text += L" - ";
|
||||||
while ((pos = text.find_first_of(L"()")) != std::wstring::npos)
|
|
||||||
{
|
|
||||||
text.erase(pos, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
text += L" (";
|
|
||||||
GetLocaleInfo(lcid, LOCALE_SNATIVELANGUAGENAME, fd.cFileName, MAX_PATH);
|
GetLocaleInfo(lcid, LOCALE_SNATIVELANGUAGENAME, fd.cFileName, MAX_PATH);
|
||||||
|
|
||||||
// Some native language names don't start with a uppercase char..
|
// Some native language names don't start with a uppercase char..
|
||||||
fd.cFileName[0] = towupper(fd.cFileName[0]);
|
fd.cFileName[0] = towupper(fd.cFileName[0]);
|
||||||
text += fd.cFileName;
|
text += fd.cFileName;
|
||||||
text += L")";
|
|
||||||
|
|
||||||
int index = ComboBox_AddString(item, text.c_str());
|
int index = ComboBox_AddString(item, text.c_str());
|
||||||
ComboBox_SetItemData(item, index, (LPARAM)lcid);
|
ComboBox_SetItemData(item, index, (LPARAM)lcid);
|
||||||
|
Loading…
Reference in New Issue
Block a user