120{
122 {
124 {
126
127 switch (id)
128 {
130 {
132 return 0;
133 }
134
136 {
138 return 0;
139 }
140 }
141 break;
142 }
143
145 {
146
150
151 return 0;
152 }
153
154
156 {
158
159 switch (id)
160 {
161
163 {
165 return 0;
166 }
167 }
168 break;
169 }
170
172 {
174
176
177 enum
178 {
189 };
190
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 };
201
208
210
211 TextOutW(
hdc, 10, 10,
L"Proper (string being used):", 27);
215
216 TextOutW(
hdc, 10, 50,
L"String with NULL LpkETO call (not reversed):", 44);
218
219 TextOutW(
hdc, 10, 90,
L"String with ETO_IGNORELANGUAGE LpkETO call (not reversed):", 58);
221
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);
227
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);
233
234 TextOutW(
hdc, 10, 290,
L"String with ETO_IGNORELANGUAGE ETO call (reversed, not Lpk direct call!):", 73);
236
237 TextOutW(
hdc, 10, 330,
L"String with ETO_RTLREADING LpkETO call (slight order change)", 60);
239
240 TextOutW(
hdc, 10, 370,
L"String with ETO_RTLREADING ETO call (slight order change)", 57);
242
244 TextOutW(
hdc, 10, 410,
L"Glyph positions with GCP_REORDER flag", 37);
245
246
247 for (
i = 0, xpos = 10;
i <
Len;
i++, xpos += 30)
248 {
252
256
260
262 }
267
269 TextOutW(
hdc, 10, 510,
L"Glyph positions without GCP_REORDER flag", 40);
270
271 for (
i = 0, xpos = 10;
i <
Len;
i++, xpos += 30)
272 {
276
280
284
286 }
291
293 break;
294 }
295
297 {
299 return 0;
300 }
301 }
302
304}
void ShowAboutDialog(HWND owner)
LPKGCP LpkGetCharacterPlacement
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
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
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 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)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI DestroyWindow(_In_ HWND)