Bug 588735 - Mirror glass caption buttons for rtl windows. r=roc, a=blocking-betaN.

This commit is contained in:
Jim Mathies 2010-09-07 16:25:30 -05:00
parent ecee39e261
commit 101ee0e330

View File

@ -596,6 +596,11 @@ nsWindow::Create(nsIWidget *aParent,
return NS_ERROR_FAILURE;
}
if (mIsRTL && nsUXThemeData::dwmSetWindowAttributePtr) {
DWORD dwAttribute = TRUE;
nsUXThemeData::dwmSetWindowAttributePtr(mWnd, DWMWA_NONCLIENT_RTL_LAYOUT, &dwAttribute, sizeof dwAttribute);
}
if (nsWindow::sTrackPointHack &&
mWindowType != eWindowType_plugin &&
mWindowType != eWindowType_invisible) {