76 return (
int)
msg.wParam;
191 const WCHAR szString[] = {
ALEF,
BET,
GIMEL,
DALET,
HEY,
'A',
'B',
'C',
'D',
VAV,
ZAYIN,
HET,
TET,
YUD, 0};
192 const WCHAR szReversedString[] = {
HEY,
DALET,
GIMEL,
BET,
ALEF,
'A',
'B',
'C',
'D',
YUD,
TET,
HET,
ZAYIN,
VAV, 0};
194 int i, xpos, tempLength;
195 WCHAR tempString[20] = { 0 };
196 WCHAR Glyphs[100] = { 0 };
197 WCHAR OutString[100] = { 0 };
198 INT lpCaretPos[100] = { 0 };
199 UINT lpOrder[100] = { 0 };
211 TextOutW(
hdc, 10, 10,
L"Proper (string being used):", 27);
216 TextOutW(
hdc, 10, 50,
L"String with NULL LpkETO call (not reversed):", 44);
219 TextOutW(
hdc, 10, 90,
L"String with ETO_IGNORELANGUAGE LpkETO call (not reversed):", 58);
222 TextOutW(
hdc, 10, 130,
L"String with GCP_REORDER and ETO_GLYPH_INDEX LpkGCP call (not reversed):", 71);
225 TextOutW(
hdc, 10, 170,
L"String with GCP_REORDER and ETO_IGNORELANGUAGE LpkGCP call (not reversed, lpOutString):", 87);
228 TextOutW(
hdc, 10, 210,
L"String without GCP_REORDER and ETO_GLYPH_INDEX LpkGCP call (reversed):", 70);
231 TextOutW(
hdc, 10, 250,
L"String without GCP_REORDER and ETO_IGNORELANGUAGE LpkGCP call (reversed, lpOutString):", 86);
234 TextOutW(
hdc, 10, 290,
L"String with ETO_IGNORELANGUAGE ETO call (reversed, not Lpk direct call!):", 73);
237 TextOutW(
hdc, 10, 330,
L"String with ETO_RTLREADING LpkETO call (slight order change)", 60);
240 TextOutW(
hdc, 10, 370,
L"String with ETO_RTLREADING ETO call (slight order change)", 57);
244 TextOutW(
hdc, 10, 410,
L"Glyph positions with GCP_REORDER flag", 37);
247 for (
i = 0, xpos = 10;
i <
Len;
i++, xpos += 30)
269 TextOutW(
hdc, 10, 510,
L"Glyph positions without GCP_REORDER flag", 40);
271 for (
i = 0, xpos = 10;
i <
Len;
i++, xpos += 30)
void ShowAboutDialog(HWND owner)
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpszCmdLine, int nCmdShow)
LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK AboutDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL RegisterMainWindowClass()
static LPCTSTR MainWndClass
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
LPKGCP LpkGetCharacterPlacement
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define WS_OVERLAPPEDWINDOW
#define ICC_WIN95_CLASSES
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
DWORD WINAPI GetCharacterPlacementW(_In_ HDC hdc, _In_reads_(nCount) LPCWSTR lpString, _In_ int nCount, _In_ int nMexExtent, _Inout_ LPGCP_RESULTSW lpResults, _In_ DWORD dwFlags)
BOOL WINAPI ExtTextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_ UINT options, _In_opt_ const RECT *lprect, _In_reads_opt_(c) LPCWSTR lpString, _In_ UINT c, _In_reads_opt_(c) const INT *lpDx)
BOOL WINAPI TextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_reads_(c) LPCWSTR lpString, _In_ int c)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
BOOL WINAPI UpdateWindow(_In_ HWND)
_In_ int _Inout_ LPRECT lprc
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define TranslateAccelerator
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)