mirror of
https://github.com/reactos/reactos.git
synced 2025-05-11 13:27:47 +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
|
@ -95,6 +95,16 @@ WinMain (HINSTANCE hThisInstance,
|
|||
PGFRI GetFontResourceInfoW;
|
||||
LPCWSTR fileName;
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
g_hInstance = hThisInstance;
|
||||
|
||||
/* Get unicode command line */
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include <stdarg.h>
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winnls.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
|
|
@ -516,6 +516,17 @@ _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPTSTR lpCmdLine, INT nCmdSh
|
|||
{
|
||||
WNDCLASS WndClass = {0};
|
||||
MSG msg;
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
HANDLE hMutex;
|
||||
|
||||
hMutex = CreateMutex(NULL, FALSE, szKbSwitcherName);
|
||||
|
|
|
@ -46,6 +46,16 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
|
|||
MSG msg;
|
||||
HACCEL hAccelTable;
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
|
@ -271,7 +281,8 @@ void Draw(HDC aDc)
|
|||
blitAreaY,
|
||||
blitAreaWidth,
|
||||
blitAreaHeight,
|
||||
rop);
|
||||
rop | NOMIRRORBITMAP);
|
||||
|
||||
|
||||
/* Cleanup.*/
|
||||
if (iinfo.hbmMask)
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <winreg.h>
|
||||
#include <wingdi.h>
|
||||
#include <tchar.h>
|
||||
#include <winnls.h> //test
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
|
|
|
@ -35,6 +35,16 @@ _tWinMain(HINSTANCE hThisInstance,
|
|||
return 0;
|
||||
}
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
hInstance = hThisInstance;
|
||||
ProcessHeap = GetProcessHeap();
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <winuser.h>
|
||||
#include <winreg.h>
|
||||
#include <wingdi.h>
|
||||
#include <winnls.h>
|
||||
#include <windowsx.h>
|
||||
#include <tchar.h>
|
||||
#include <setupapi.h>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <winnls.h>
|
||||
#include <winsvc.h>
|
||||
#include <winuser.h>
|
||||
#include <windowsx.h> /* GET_X/Y_LPARAM */
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
HINSTANCE hInstance;
|
||||
HANDLE ProcessHeap;
|
||||
|
||||
|
@ -24,6 +23,16 @@ _tWinMain(HINSTANCE hThisInstance,
|
|||
int Ret = 1;
|
||||
INITCOMMONCONTROLSEX icex;
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
hInstance = hThisInstance;
|
||||
ProcessHeap = GetProcessHeap();
|
||||
|
||||
|
|
|
@ -555,6 +555,16 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE prev, LPTSTR cmdline, int sh
|
|||
MONITORINFO info;
|
||||
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 winName[] = _T("Notepad");
|
||||
|
||||
|
|
|
@ -764,6 +764,16 @@ wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nSh
|
|||
HANDLE hMutex = NULL;
|
||||
MSG Msg;
|
||||
|
||||
switch (GetUserDefaultUILanguage())
|
||||
{
|
||||
case MAKELANGID(LANG_HEBREW, SUBLANG_DEFAULT):
|
||||
SetProcessDefaultLayout(LAYOUT_RTL);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
hInst = hInstance;
|
||||
|
||||
if (!IsUserAnAdmin())
|
||||
|
|
|
@ -207,6 +207,16 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
|||
LoadStringW(hInstance, IDC_REGEDIT_FRAME, szFrameClass, 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 */
|
||||
hInst = hInstance;
|
||||
|
||||
|
|
Loading…
Reference in a new issue