mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 14:39:46 +00:00
Right-to-Left mirroring fixes for various applications by Baruch Rutman
CORE-7015 #resolve #comment Committed in revision r59241, thanks for help. svn path=/trunk/; revision=59242
This commit is contained in:
parent
3e3200acef
commit
0a65846d43
12 changed files with 91 additions and 6 deletions
reactos/base/applications
fontview
kbswitch
magnify
mscutils
notepad
rapps
regedit
|
@ -95,6 +95,16 @@ WinMain (HINSTANCE hThisInstance,
|
||||||
PGFRI GetFontResourceInfoW;
|
PGFRI GetFontResourceInfoW;
|
||||||
LPCWSTR fileName;
|
LPCWSTR fileName;
|
||||||
|
|
||||||
|
switch (GetUserDefaultUILanguage())
|
||||||
|
{
|
||||||
|
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||||
|
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
g_hInstance = hThisInstance;
|
g_hInstance = hThisInstance;
|
||||||
|
|
||||||
/* Get unicode command line */
|
/* Get unicode command line */
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
|
#include <winnls.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
|
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
|
@ -516,6 +516,17 @@ _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPTSTR lpCmdLine, INT nCmdSh
|
||||||
{
|
{
|
||||||
WNDCLASS WndClass = {0};
|
WNDCLASS WndClass = {0};
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
|
||||||
|
switch (GetUserDefaultUILanguage())
|
||||||
|
{
|
||||||
|
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||||
|
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
HANDLE hMutex;
|
HANDLE hMutex;
|
||||||
|
|
||||||
hMutex = CreateMutex(NULL, FALSE, szKbSwitcherName);
|
hMutex = CreateMutex(NULL, FALSE, szKbSwitcherName);
|
||||||
|
|
|
@ -46,6 +46,16 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
|
||||||
MSG msg;
|
MSG msg;
|
||||||
HACCEL hAccelTable;
|
HACCEL hAccelTable;
|
||||||
|
|
||||||
|
switch (GetUserDefaultUILanguage())
|
||||||
|
{
|
||||||
|
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||||
|
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||||
|
|
||||||
|
@ -271,7 +281,8 @@ void Draw(HDC aDc)
|
||||||
blitAreaY,
|
blitAreaY,
|
||||||
blitAreaWidth,
|
blitAreaWidth,
|
||||||
blitAreaHeight,
|
blitAreaHeight,
|
||||||
rop);
|
rop | NOMIRRORBITMAP);
|
||||||
|
|
||||||
|
|
||||||
/* Cleanup.*/
|
/* Cleanup.*/
|
||||||
if (iinfo.hbmMask)
|
if (iinfo.hbmMask)
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <winreg.h>
|
#include <winreg.h>
|
||||||
#include <wingdi.h>
|
#include <wingdi.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
#include <winnls.h> //test
|
||||||
|
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,16 @@ _tWinMain(HINSTANCE hThisInstance,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (GetUserDefaultUILanguage())
|
||||||
|
{
|
||||||
|
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||||
|
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
hInstance = hThisInstance;
|
hInstance = hThisInstance;
|
||||||
ProcessHeap = GetProcessHeap();
|
ProcessHeap = GetProcessHeap();
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include <winuser.h>
|
#include <winuser.h>
|
||||||
#include <winreg.h>
|
#include <winreg.h>
|
||||||
#include <wingdi.h>
|
#include <wingdi.h>
|
||||||
|
#include <winnls.h>
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#include <setupapi.h>
|
#include <setupapi.h>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
#include <wingdi.h>
|
#include <wingdi.h>
|
||||||
|
#include <winnls.h>
|
||||||
#include <winsvc.h>
|
#include <winsvc.h>
|
||||||
#include <winuser.h>
|
#include <winuser.h>
|
||||||
#include <windowsx.h> /* GET_X/Y_LPARAM */
|
#include <windowsx.h> /* GET_X/Y_LPARAM */
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "precomp.h"
|
#include "precomp.h"
|
||||||
|
|
||||||
HINSTANCE hInstance;
|
HINSTANCE hInstance;
|
||||||
HANDLE ProcessHeap;
|
HANDLE ProcessHeap;
|
||||||
|
|
||||||
|
@ -24,6 +23,16 @@ _tWinMain(HINSTANCE hThisInstance,
|
||||||
int Ret = 1;
|
int Ret = 1;
|
||||||
INITCOMMONCONTROLSEX icex;
|
INITCOMMONCONTROLSEX icex;
|
||||||
|
|
||||||
|
switch (GetUserDefaultUILanguage())
|
||||||
|
{
|
||||||
|
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||||
|
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
hInstance = hThisInstance;
|
hInstance = hThisInstance;
|
||||||
ProcessHeap = GetProcessHeap();
|
ProcessHeap = GetProcessHeap();
|
||||||
|
|
||||||
|
|
|
@ -555,6 +555,16 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE prev, LPTSTR cmdline, int sh
|
||||||
MONITORINFO info;
|
MONITORINFO info;
|
||||||
INT x, y;
|
INT x, y;
|
||||||
|
|
||||||
|
switch (GetUserDefaultUILanguage())
|
||||||
|
{
|
||||||
|
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||||
|
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
static const TCHAR className[] = _T("NPClass");
|
static const TCHAR className[] = _T("NPClass");
|
||||||
static const TCHAR winName[] = _T("Notepad");
|
static const TCHAR winName[] = _T("Notepad");
|
||||||
|
|
||||||
|
|
|
@ -764,6 +764,16 @@ wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nSh
|
||||||
HANDLE hMutex = NULL;
|
HANDLE hMutex = NULL;
|
||||||
MSG Msg;
|
MSG Msg;
|
||||||
|
|
||||||
|
switch (GetUserDefaultUILanguage())
|
||||||
|
{
|
||||||
|
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||||
|
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
hInst = hInstance;
|
hInst = hInstance;
|
||||||
|
|
||||||
if (!IsUserAnAdmin())
|
if (!IsUserAnAdmin())
|
||||||
|
|
|
@ -207,6 +207,16 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||||
LoadStringW(hInstance, IDC_REGEDIT_FRAME, szFrameClass, MAX_LOADSTRING);
|
LoadStringW(hInstance, IDC_REGEDIT_FRAME, szFrameClass, MAX_LOADSTRING);
|
||||||
LoadStringW(hInstance, IDC_REGEDIT, szChildClass, MAX_LOADSTRING);
|
LoadStringW(hInstance, IDC_REGEDIT, szChildClass, MAX_LOADSTRING);
|
||||||
|
|
||||||
|
|
||||||
|
switch (GetUserDefaultUILanguage())
|
||||||
|
{
|
||||||
|
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||||
|
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
/* Store instance handle in our global variable */
|
/* Store instance handle in our global variable */
|
||||||
hInst = hInstance;
|
hInst = hInstance;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue