-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrtlmir.cpp
52 lines (47 loc) · 1.44 KB
/
rtlmir.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//+-------------------------------------------------------------------------
//
// TaskMan - NT TaskManager
// Copyright (C) Microsoft
//
// File: rtlmir.cpp
//
// History: Oct-11-24 aubymori Created
//
//--------------------------------------------------------------------------
#include "rtlmir.h"
const DWORD dwNoMirrorBitmap = NOMIRRORBITMAP;
const DWORD dwExStyleRTLMirrorWnd = WS_EX_LAYOUTRTL;
const DWORD dwExStyleNoInheritLayout = WS_EX_NOINHERITLAYOUT;
const DWORD dwPreserveBitmap = LAYOUT_BITMAPORIENTATIONPRESERVED;
/***************************************************************************\
* Mirror_IsEnabledOS
*
* returns TRUE if the mirroring APIs are enabled on the current OS.
*
* History:
* 02-Feb-1998 samera Created
\***************************************************************************/
BOOL Mirror_IsEnabledOS(void)
{
BOOL bRet = FALSE;
if (IsOS(OS_WIN2000ORGREATER))
{
bRet = TRUE;
}
else if (IsOS(OS_WIN98ORGREATER) && GetSystemMetrics(SM_MIDEASTENABLED)) {
bRet = TRUE;
}
return bRet;
}
/***************************************************************************\
* Mirror_IsWindowMirroredRTL
*
* returns TRUE if the window is RTL mirrored
*
* History:
* 02-Feb-1998 samera Created
\***************************************************************************/
BOOL Mirror_IsWindowMirroredRTL(HWND hWnd)
{
return (GetWindowLongA(hWnd, GWL_EXSTYLE) & WS_EX_LAYOUTRTL);
}