ReactOS  0.4.14-dev-833-g5f692ed
lpk.c File Reference
#include "ros_lpk.h"
Include dependency graph for lpk.c:

Go to the source code of this file.

Macros

#define PREFIX   38
 
#define ALPHA_PREFIX   30 /* Win16: Alphabet prefix */
 
#define KANA_PREFIX   31 /* Win16: Katakana prefix */
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (bidi)
 
static int PSM_FindLastPrefix (LPCWSTR str, int count)
 
static void PSM_PrepareToDraw (LPCWSTR str, INT count, LPWSTR new_str, LPINT new_count)
 
static void LPK_DrawUnderscore (HDC hdc, int x, int y, LPCWSTR str, int count, int offset)
 
static void LPK_ApplyMirroring ()
 
BOOL WINAPI DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
 
BOOL WINAPI LpkDllInitialize (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
 
BOOL WINAPI LpkExtTextOut (HDC hdc, int x, int y, UINT fuOptions, const RECT *lprc, LPCWSTR lpString, UINT uCount, const INT *lpDx, INT unknown)
 
DWORD WINAPI LpkGetCharacterPlacement (HDC hdc, LPCWSTR lpString, INT uCount, INT nMaxExtent, LPGCP_RESULTSW lpResults, DWORD dwFlags, DWORD dwUnused)
 
INT WINAPI LpkPSMTextOut (HDC hdc, int x, int y, LPCWSTR lpString, int cString, DWORD dwFlags)
 
BOOL WINAPI LpkGetTextExtentExPoint (HDC hdc, LPCWSTR lpString, INT cString, INT nMaxExtent, LPINT lpnFit, LPINT lpnDx, LPSIZE lpSize, DWORD dwUnused, int unknown)
 

Variables

LPK_LPEDITCONTROL_LIST LpkEditControl
 

Macro Definition Documentation

◆ ALPHA_PREFIX

#define ALPHA_PREFIX   30 /* Win16: Alphabet prefix */

Definition at line 19 of file lpk.c.

◆ KANA_PREFIX

#define KANA_PREFIX   31 /* Win16: Katakana prefix */

Definition at line 20 of file lpk.c.

◆ PREFIX

#define PREFIX   38

Definition at line 18 of file lpk.c.

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HANDLE  hDll,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 164 of file lpk.c.

168 {
169 
170  return LpkDllInitialize(hDll,dwReason,lpReserved);
171 }
DWORD dwReason
Definition: misc.cpp:154
BOOL WINAPI LpkDllInitialize(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
Definition: lpk.c:175

◆ LPK_ApplyMirroring()

static void LPK_ApplyMirroring ( )
static

Definition at line 121 of file lpk.c.

122 {
123  static const WCHAR translationW[] = { '\\','V','a','r','F','i','l','e','I','n','f','o',
124  '\\','T','r','a','n','s','l','a','t','i','o','n', 0 };
125  static const WCHAR filedescW[] = { '\\','S','t','r','i','n','g','F','i','l','e','I','n','f','o',
126  '\\','%','0','4','x','%','0','4','x',
127  '\\','F','i','l','e','D','e','s','c','r','i','p','t','i','o','n',0 };
129 #ifdef __REACTOS__
130  DWORD i, version_layout = 0;
131  UINT len;
132 #else
133  DWORD i, len, version_layout = 0;
134 #endif
135  DWORD user_lang = GetUserDefaultLangID();
136  DWORD *languages;
137  void *data = NULL;
138 
140  if (!(len = GetFileVersionInfoSizeW( buffer, NULL ))) goto done;
141  if (!(data = HeapAlloc( GetProcessHeap(), 0, len ))) goto done;
142  if (!GetFileVersionInfoW( buffer, 0, len, data )) goto done;
143  if (!VerQueryValueW( data, translationW, (void **)&languages, &len ) || !len) goto done;
144 
145  len /= sizeof(DWORD);
146  for (i = 0; i < len; i++) if (LOWORD(languages[i]) == user_lang) break;
147  if (i == len) /* try neutral language */
148  for (i = 0; i < len; i++)
149  if (LOWORD(languages[i]) == MAKELANGID( PRIMARYLANGID(user_lang), SUBLANG_NEUTRAL )) break;
150  if (i == len) i = 0; /* default to the first one */
151 
152  sprintfW( buffer, filedescW, LOWORD(languages[i]), HIWORD(languages[i]) );
153  if (!VerQueryValueW( data, buffer, (void **)&str, &len )) goto done;
154  TRACE( "found description %s\n", debugstr_w( str ));
155  if (str[0] == 0x200e && str[1] == 0x200e) version_layout = LAYOUT_RTL;
156 
157 done:
158  HeapFree( GetProcessHeap(), 0, data );
159  SetProcessDefaultLayout(version_layout);
160 }
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
Definition: loader.c:609
#define LAYOUT_RTL
Definition: wingdi.h:1370
GLuint buffer
Definition: glext.h:5915
#define SUBLANG_NEUTRAL
Definition: nls.h:167
#define DWORD
Definition: nt_native.h:44
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
Definition: glfuncs.h:248
#define debugstr_w
Definition: kernel32.h:32
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
BOOL WINAPI SetProcessDefaultLayout(DWORD dwDefaultLayout)
Definition: window.c:1716
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:26
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR filename, LPDWORD handle)
Definition: version.c:611
GLenum GLsizei len
Definition: glext.h:6722
#define sprintfW
Definition: unicode.h:58
unsigned int UINT
Definition: ndis.h:50
BOOL WINAPI GetFileVersionInfoW(LPCWSTR filename, DWORD handle, DWORD datasize, LPVOID data)
Definition: version.c:845
#define HIWORD(l)
Definition: typedefs.h:246
#define MAKELANGID(p, s)
Definition: nls.h:15
LANGID WINAPI GetUserDefaultLangID(void)
Definition: lang.c:734
#define LOWORD(l)
Definition: pedump.c:82
#define HeapFree(x, y, z)
Definition: compat.h:402
BOOL WINAPI VerQueryValueW(LPCVOID pBlock, LPCWSTR lpSubBlock, LPVOID *lplpBuffer, PUINT puLen)
Definition: version.c:1049
#define PRIMARYLANGID(l)
Definition: nls.h:16

Referenced by LpkDllInitialize().

◆ LPK_DrawUnderscore()

static void LPK_DrawUnderscore ( HDC  hdc,
int  x,
int  y,
LPCWSTR  str,
int  count,
int  offset 
)
static

Definition at line 66 of file lpk.c.

67 {
69  DWORD dwSSAFlags = SSA_GLYPHS;
70  int prefix_x;
71  int prefix_end;
72  int pos;
73  SIZE size;
74  HPEN hpen;
75  HPEN oldPen;
76  HRESULT hr = S_FALSE;
77 
78  if (offset == -1)
79  return;
80 
82  {
84  dwSSAFlags |= SSA_RTL;
85 
86  hr = ScriptStringAnalyse(hdc, str, count, (3 * count / 2 + 16),
87  -1, dwSSAFlags, -1, NULL, NULL, NULL, NULL, NULL, &ssa);
88  }
89 
90  if (hr == S_OK)
91  {
93  prefix_x = x + pos;
95  prefix_end = x + pos;
96  ScriptStringFree(&ssa);
97  }
98  else
99  {
101  prefix_x = x + size.cx;
103  prefix_end = x + size.cx - 1;
104  }
106  oldPen = SelectObject(hdc, hpen);
107  MoveToEx(hdc, prefix_x, y, NULL);
108  LineTo(hdc, prefix_end, y);
109  SelectObject(hdc, oldPen);
111 }
#define TRUE
Definition: types.h:120
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
#define LAYOUT_RTL
Definition: wingdi.h:1370
HRESULT hr
Definition: shlfolder.c:183
HRESULT WINAPI ScriptIsComplex(const WCHAR *chars, int len, DWORD flag)
Definition: usp10.c:3074
GLuint GLuint GLsizei count
Definition: gl.h:1545
HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString, int cGlyphs, int iCharset, DWORD dwFlags, int iReqWidth, SCRIPT_CONTROL *psControl, SCRIPT_STATE *psState, const int *piDx, SCRIPT_TABDEF *pTabdef, const BYTE *pbInClass, SCRIPT_STRING_ANALYSIS *pssa)
Definition: usp10.c:1985
GLintptr offset
Definition: glext.h:5920
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
static HPEN hpen
#define SSA_RTL
Definition: usp10.h:41
BOOL WINAPI MoveToEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
UINT WINAPI GetTextAlign(_In_ HDC)
Definition: text.c:808
#define PS_SOLID
Definition: wingdi.h:585
#define S_FALSE
Definition: winerror.h:2357
COLORREF WINAPI GetTextColor(_In_ HDC)
Definition: text.c:831
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa)
Definition: usp10.c:2556
GLsizeiptr size
Definition: glext.h:5919
#define SIC_COMPLEX
Definition: usp10.h:56
LONG HRESULT
Definition: typedefs.h:77
unsigned long DWORD
Definition: ntddk_ex.h:95
HDC hdc
Definition: main.c:9
#define S_OK
Definition: intsafe.h:59
DWORD WINAPI GetLayout(_In_ HDC hdc)
Definition: coord.c:741
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
HRESULT WINAPI ScriptStringCPtoX(SCRIPT_STRING_ANALYSIS ssa, int icp, BOOL fTrailing, int *pX)
Definition: usp10.c:2411
#define SSA_GLYPHS
Definition: usp10.h:40
#define TA_RTLREADING
Definition: wingdi.h:933
BOOL WINAPI GetTextExtentPointW(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE lpsz)

Referenced by LpkPSMTextOut().

◆ LpkDllInitialize()

BOOL WINAPI LpkDllInitialize ( HANDLE  hDll,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 175 of file lpk.c.

179 {
180  switch(dwReason)
181  {
182  case DLL_PROCESS_ATTACH:
184  /* Tell usp10 it is activated usp10 */
185  //LpkPresent();
187  break;
188 
189  default:
190  break;
191  }
192 
193  return TRUE;
194 }
#define TRUE
Definition: types.h:120
static void LPK_ApplyMirroring()
Definition: lpk.c:121
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
DWORD dwReason
Definition: misc.cpp:154

Referenced by DllMain().

◆ LpkExtTextOut()

BOOL WINAPI LpkExtTextOut ( HDC  hdc,
int  x,
int  y,
UINT  fuOptions,
const RECT lprc,
LPCWSTR  lpString,
UINT  uCount,
const INT lpDx,
INT  unknown 
)

Definition at line 202 of file lpk.c.

212 {
213  LPWORD glyphs = NULL;
214  LPWSTR reordered_str = NULL;
215  INT cGlyphs;
216  DWORD dwSICFlags = SIC_COMPLEX;
217  BOOL bResult, bReorder;
218 
220 
221  fuOptions |= ETO_IGNORELANGUAGE;
222 
223  /* Check text direction */
225  fuOptions |= ETO_RTLREADING;
226 
227  /* If text direction is RTL change flag to account neutral characters */
228  if (fuOptions & ETO_RTLREADING)
229  dwSICFlags |= SIC_NEUTRAL;
230 
231  /* Check if the string requires complex script processing and not a "glyph indices" array */
232  if (ScriptIsComplex(lpString, uCount, dwSICFlags) == S_OK && !(fuOptions & ETO_GLYPH_INDEX))
233  {
234  /* reordered_str is used as fallback in case the glyphs array fails to generate,
235  BIDI_Reorder() doesn't attempt to write into reordered_str if memory allocation fails */
236  reordered_str = HeapAlloc(GetProcessHeap(), 0, uCount * sizeof(WCHAR));
237 
238  bReorder = BIDI_Reorder(hdc, lpString, uCount, GCP_REORDER,
239  (fuOptions & ETO_RTLREADING) ? WINE_GCPW_FORCE_RTL : WINE_GCPW_FORCE_LTR,
240  reordered_str, uCount, NULL, &glyphs, &cGlyphs);
241 
242  /* Now display the reordered text if any of the arrays is valid and if BIDI_Reorder() succeeded */
243  if ((glyphs || reordered_str) && bReorder)
244  {
245  if (glyphs)
246  {
247  fuOptions |= ETO_GLYPH_INDEX;
248  uCount = cGlyphs;
249  }
250 
251  bResult = ExtTextOutW(hdc, x, y, fuOptions, lprc,
252  glyphs ? (LPWSTR)glyphs : reordered_str, uCount, lpDx);
253  }
254  else
255  {
256  WARN("BIDI_Reorder failed, falling back to original string.\n");
257  bResult = ExtTextOutW(hdc, x, y, fuOptions, lprc, lpString, uCount, lpDx);
258  }
259 
261  HeapFree(GetProcessHeap(), 0, reordered_str);
262 
263  return bResult;
264  }
265 
266  return ExtTextOutW(hdc, x, y, fuOptions, lprc, lpString, uCount, lpDx);
267 }
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)
_In_ int _Inout_ LPRECT lprc
Definition: winuser.h:4440
#define LAYOUT_RTL
Definition: wingdi.h:1370
HRESULT WINAPI ScriptIsComplex(const WCHAR *chars, int len, DWORD flag)
Definition: usp10.c:3074
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
_In_ FONTOBJ _In_ ULONG _In_ ULONG cGlyphs
Definition: winddi.h:3799
#define WARN(fmt,...)
Definition: debug.h:111
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define WINE_GCPW_FORCE_RTL
Definition: ros_lpk.h:90
#define WINE_GCPW_FORCE_LTR
Definition: ros_lpk.h:89
static UINT UINT LPWORD glyphs
Definition: font.c:44
int32_t INT
Definition: typedefs.h:56
UINT WINAPI GetTextAlign(_In_ HDC)
Definition: text.c:808
#define SIC_NEUTRAL
Definition: usp10.h:58
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
BOOL BIDI_Reorder(HDC hDC, LPCWSTR lpString, INT uCount, DWORD dwFlags, DWORD dwWineGCP_Flags, LPWSTR lpOutString, INT uCountOut, UINT *lpOrder, WORD **lpGlyphs, INT *cGlyphs)
Definition: bidi.c:320
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define SIC_COMPLEX
Definition: usp10.h:56
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: id3.c:18
HDC hdc
Definition: main.c:9
uint16_t * LPWORD
Definition: typedefs.h:54
#define S_OK
Definition: intsafe.h:59
DWORD WINAPI GetLayout(_In_ HDC hdc)
Definition: coord.c:741
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define GCP_REORDER
Definition: wingdi.h:842
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define TA_RTLREADING
Definition: wingdi.h:933
#define HeapFree(x, y, z)
Definition: compat.h:402

Referenced by LpkPSMTextOut(), and MainWndProc().

◆ LpkGetCharacterPlacement()

DWORD WINAPI LpkGetCharacterPlacement ( HDC  hdc,
LPCWSTR  lpString,
INT  uCount,
INT  nMaxExtent,
LPGCP_RESULTSW  lpResults,
DWORD  dwFlags,
DWORD  dwUnused 
)

Definition at line 274 of file lpk.c.

282 {
283  DWORD ret = 0;
284  HRESULT hr;
286  LPWORD lpGlyphs = NULL;
287  SIZE size;
288  UINT nSet, i;
289  INT cGlyphs;
290 
291  UNREFERENCED_PARAMETER(dwUnused);
292 
293  /* Sanity check (most likely a direct call) */
294  if (!(dwFlags & GCP_REORDER))
295  return GetCharacterPlacementW(hdc, lpString, uCount, nMaxExtent, lpResults, dwFlags);
296 
297  nSet = (UINT)uCount;
298  if (nSet > lpResults->nGlyphs)
299  nSet = lpResults->nGlyphs;
300 
301  BIDI_Reorder(hdc, lpString, uCount, dwFlags, WINE_GCPW_FORCE_LTR, lpResults->lpOutString,
302  nSet, lpResults->lpOrder, &lpGlyphs, &cGlyphs);
303 
304  lpResults->nGlyphs = (UINT)cGlyphs;
305 
306  if (lpResults->lpGlyphs)
307  {
308  if (lpGlyphs)
309  StringCchCopyW(lpResults->lpGlyphs, cGlyphs, lpGlyphs);
310  else if (lpResults->lpOutString)
311  GetGlyphIndicesW(hdc, lpResults->lpOutString, nSet, lpResults->lpGlyphs, 0);
312  }
313 
314  if (lpResults->lpDx)
315  {
316  int c;
317 
318  /* If glyph shaping was requested */
319  if (dwFlags & GCP_GLYPHSHAPE)
320  {
321  if (lpResults->lpGlyphs)
322  {
323  for (i = 0; i < lpResults->nGlyphs; i++)
324  {
325  if (GetCharWidthI(hdc, 0, 1, (WORD *)&lpResults->lpGlyphs[i], &c))
326  lpResults->lpDx[i] = c;
327  }
328  }
329  }
330 
331  else
332  {
333  for (i = 0; i < nSet; i++)
334  {
335  if (GetCharWidth32W(hdc, lpResults->lpOutString[i], lpResults->lpOutString[i], &c))
336  lpResults->lpDx[i] = c;
337  }
338  }
339  }
340 
341  if (lpResults->lpCaretPos)
342  {
343  int pos = 0;
344 
345  hr = ScriptStringAnalyse(hdc, lpString, nSet, (3 * nSet / 2 + 16), -1, SSA_GLYPHS, -1,
346  NULL, NULL, NULL, NULL, NULL, &ssa);
347  if (hr == S_OK)
348  {
349  for (i = 0; i < nSet; i++)
350  {
351  if (ScriptStringCPtoX(ssa, i, FALSE, &pos) == S_OK)
352  lpResults->lpCaretPos[i] = pos;
353  }
354  ScriptStringFree(&ssa);
355  }
356  else
357  {
358  lpResults->lpCaretPos[0] = 0;
359  for (i = 1; i < nSet; i++)
360  {
361  if (GetTextExtentPoint32W(hdc, &(lpString[i - 1]), 1, &size))
362  lpResults->lpCaretPos[i] = (pos += size.cx);
363  }
364  }
365  }
366 
367  if (GetTextExtentPoint32W(hdc, lpString, uCount, &size))
368  ret = MAKELONG(size.cx, size.cy);
369 
370  HeapFree(GetProcessHeap(), 0, lpGlyphs);
371 
372  return ret;
373 }
LPWSTR lpGlyphs
Definition: wingdi.h:2436
HRESULT hr
Definition: shlfolder.c:183
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
_In_ FONTOBJ _In_ ULONG _In_ ULONG cGlyphs
Definition: winddi.h:3799
HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString, int cGlyphs, int iCharset, DWORD dwFlags, int iReqWidth, SCRIPT_CONTROL *psControl, SCRIPT_STATE *psState, const int *piDx, SCRIPT_TABDEF *pTabdef, const BYTE *pbInClass, SCRIPT_STRING_ANALYSIS *pssa)
Definition: usp10.c:1985
DWORD WINAPI GetCharacterPlacementW(_In_ HDC hdc, _In_reads_(nCount) LPCWSTR lpString, _In_ int nCount, _In_ int nMexExtent, _Inout_ LPGCP_RESULTSW lpResults, _In_ DWORD dwFlags)
#define WINE_GCPW_FORCE_LTR
Definition: ros_lpk.h:89
int32_t INT
Definition: typedefs.h:56
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
Definition: glfuncs.h:248
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:149
#define MAKELONG(a, b)
Definition: typedefs.h:248
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa)
Definition: usp10.c:2556
GLsizeiptr size
Definition: glext.h:5919
#define GetProcessHeap()
Definition: compat.h:403
BOOL WINAPI GetCharWidth32W(_In_ HDC hdc, _In_ UINT iFirst, _In_ UINT iLast, _Out_writes_(iLast+1 - iFirst) LPINT lpBuffer)
BOOL BIDI_Reorder(HDC hDC, LPCWSTR lpString, INT uCount, DWORD dwFlags, DWORD dwWineGCP_Flags, LPWSTR lpOutString, INT uCountOut, UINT *lpOrder, WORD **lpGlyphs, INT *cGlyphs)
Definition: bidi.c:320
LONG HRESULT
Definition: typedefs.h:77
const GLubyte * c
Definition: glext.h:8905
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
LPWSTR lpOutString
Definition: wingdi.h:2431
int ret
HDC hdc
Definition: main.c:9
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
uint16_t * LPWORD
Definition: typedefs.h:54
#define S_OK
Definition: intsafe.h:59
#define GCP_GLYPHSHAPE
Definition: wingdi.h:832
unsigned int UINT
Definition: ndis.h:50
UINT * lpOrder
Definition: wingdi.h:2432
#define GCP_REORDER
Definition: wingdi.h:842
DWORD WINAPI GetGlyphIndicesW(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpstr, _In_ int c, _Out_writes_(c) LPWORD pgi, _In_ DWORD fl)
#define c
Definition: ke_i.h:80
BOOL WINAPI GetCharWidthI(_In_ HDC hdc, _In_ UINT giFirst, _In_ UINT cgi, _In_reads_opt_(cgi) LPWORD pgi, _Out_writes_(cgi) LPINT piWidths)
HRESULT WINAPI ScriptStringCPtoX(SCRIPT_STRING_ANALYSIS ssa, int icp, BOOL fTrailing, int *pX)
Definition: usp10.c:2411
#define SSA_GLYPHS
Definition: usp10.h:40
#define HeapFree(x, y, z)
Definition: compat.h:402
INT * lpCaretPos
Definition: wingdi.h:2434
BOOL WINAPI GetTextExtentPoint32W(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE psizl)

◆ LpkGetTextExtentExPoint()

BOOL WINAPI LpkGetTextExtentExPoint ( HDC  hdc,
LPCWSTR  lpString,
INT  cString,
INT  nMaxExtent,
LPINT  lpnFit,
LPINT  lpnDx,
LPSIZE  lpSize,
DWORD  dwUnused,
int  unknown 
)

Definition at line 434 of file lpk.c.

444 {
446  HRESULT hr;
447  INT i, extent, *Dx;
448  TEXTMETRICW tm;
449 
450  UNREFERENCED_PARAMETER(dwUnused);
452 
453  if (cString < 0 || !lpSize)
454  return FALSE;
455 
456  if (cString == 0 || !lpString)
457  {
458  lpSize->cx = 0;
459  lpSize->cy = 0;
460  return TRUE;
461  }
462 
463  /* Check if any processing is required */
464  if (ScriptIsComplex(lpString, cString, SIC_COMPLEX) != S_OK)
465  goto fallback;
466 
467  hr = ScriptStringAnalyse(hdc, lpString, cString, 3 * cString / 2 + 16, -1,
468  SSA_GLYPHS, 0, NULL, NULL, NULL, NULL, NULL, &ssa);
469  if (hr != S_OK)
470  goto fallback;
471 
472  /* Use logic from TextIntGetTextExtentPoint() */
473  Dx = HeapAlloc(GetProcessHeap(), 0, cString * sizeof(INT));
474  if (!Dx)
475  {
476  ScriptStringFree(&ssa);
477  goto fallback;
478  }
479 
480  if (lpnFit)
481  *lpnFit = 0;
482 
484 
485  for (i = 0, extent = 0; i < cString; i++)
486  {
487  extent += Dx[i];
488 
489  if (extent <= nMaxExtent && lpnFit)
490  *lpnFit = i + 1;
491 
492  if (lpnDx)
493  lpnDx[i] = extent;
494  }
495 
496  HeapFree(GetProcessHeap(), 0, Dx);
497  ScriptStringFree(&ssa);
498 
499  if (!GetTextMetricsW(hdc, &tm))
500  return GetTextExtentExPointWPri(hdc, lpString, cString, 0, NULL, NULL, lpSize);
501 
502  lpSize->cx = extent;
503  lpSize->cy = tm.tmHeight;
504 
505  return TRUE;
506 
507 fallback:
508  return GetTextExtentExPointWPri(hdc, lpString, cString, nMaxExtent, lpnFit, lpnDx, lpSize);
509 }
#define TRUE
Definition: types.h:120
BOOL WINAPI GetTextMetricsW(_In_ HDC, _Out_ LPTEXTMETRICW)
Definition: text.c:221
HRESULT hr
Definition: shlfolder.c:183
HRESULT WINAPI ScriptIsComplex(const WCHAR *chars, int len, DWORD flag)
Definition: usp10.c:3074
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString, int cGlyphs, int iCharset, DWORD dwFlags, int iReqWidth, SCRIPT_CONTROL *psControl, SCRIPT_STATE *psState, const int *piDx, SCRIPT_TABDEF *pTabdef, const BYTE *pbInClass, SCRIPT_STRING_ANALYSIS *pssa)
Definition: usp10.c:1985
int32_t INT
Definition: typedefs.h:56
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
Definition: glfuncs.h:248
smooth NULL
Definition: ftsmooth.c:416
LONG cx
Definition: windef.h:334
BOOL WINAPI GetTextExtentExPointWPri(HDC hdc, LPCWSTR lpwsz, INT cwc, INT dxMax, LPINT pcCh, LPINT pdxOut, LPSIZE psize)
HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa)
Definition: usp10.c:2556
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define SIC_COMPLEX
Definition: usp10.h:56
LONG HRESULT
Definition: typedefs.h:77
Definition: id3.c:18
HRESULT WINAPI ScriptStringGetLogicalWidths(SCRIPT_STRING_ANALYSIS ssa, int *piDx)
Definition: usp10.c:3804
HDC hdc
Definition: main.c:9
Definition: time.h:76
#define S_OK
Definition: intsafe.h:59
#define SSA_GLYPHS
Definition: usp10.h:40
LONG cy
Definition: windef.h:335
#define HeapFree(x, y, z)
Definition: compat.h:402

◆ LpkPSMTextOut()

INT WINAPI LpkPSMTextOut ( HDC  hdc,
int  x,
int  y,
LPCWSTR  lpString,
int  cString,
DWORD  dwFlags 
)

Definition at line 389 of file lpk.c.

390 {
391  SIZE size;
392  TEXTMETRICW tm;
393  int prefix_offset, len;
394  LPWSTR display_str = NULL;
395 
396  if (!lpString || cString <= 0)
397  return 0;
398 
399  if (dwFlags & DT_NOPREFIX)
400  {
401  LpkExtTextOut(hdc, x, y, 0, NULL, lpString, cString, NULL, 0);
402  GetTextExtentPointW(hdc, lpString, cString, &size);
403  return size.cx;
404  }
405 
406  display_str = HeapAlloc(GetProcessHeap(), 0, (cString + 1) * sizeof(WCHAR));
407 
408  if (!display_str)
409  return 0;
410 
411  PSM_PrepareToDraw(lpString, cString, display_str, &len);
412 
413  if (!(dwFlags & DT_PREFIXONLY))
414  LpkExtTextOut(hdc, x, y, 0, NULL, display_str, len, NULL, 0);
415 
416  if (!(dwFlags & DT_HIDEPREFIX))
417  {
418  prefix_offset = PSM_FindLastPrefix(lpString, cString);
420  LPK_DrawUnderscore(hdc, x, y + tm.tmAscent + 1, display_str, len, prefix_offset);
421  }
422 
423  GetTextExtentPointW(hdc, display_str, len + 1, &size);
424  HeapFree(GetProcessHeap(), 0, display_str);
425 
426  return size.cx;
427 }
#define DT_HIDEPREFIX
Definition: winuser.h:547
BOOL WINAPI GetTextMetricsW(_In_ HDC, _Out_ LPTEXTMETRICW)
Definition: text.c:221
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define DT_NOPREFIX
Definition: winuser.h:537
#define DT_PREFIXONLY
Definition: winuser.h:548
smooth NULL
Definition: ftsmooth.c:416
static int PSM_FindLastPrefix(LPCWSTR str, int count)
Definition: lpk.c:22
GLsizeiptr size
Definition: glext.h:5919
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
BOOL WINAPI LpkExtTextOut(HDC hdc, int x, int y, UINT fuOptions, const RECT *lprc, LPCWSTR lpString, UINT uCount, const INT *lpDx, INT unknown)
Definition: lpk.c:202
HDC hdc
Definition: main.c:9
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
GLenum GLsizei len
Definition: glext.h:6722
Definition: time.h:76
static void LPK_DrawUnderscore(HDC hdc, int x, int y, LPCWSTR str, int count, int offset)
Definition: lpk.c:66
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static void PSM_PrepareToDraw(LPCWSTR str, INT count, LPWSTR new_str, LPINT new_count)
Definition: lpk.c:41
#define HeapFree(x, y, z)
Definition: compat.h:402
BOOL WINAPI GetTextExtentPointW(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE lpsz)

Referenced by DrawTest().

◆ PSM_FindLastPrefix()

static int PSM_FindLastPrefix ( LPCWSTR  str,
int  count 
)
static

Definition at line 22 of file lpk.c.

23 {
24  int i, prefix_count = 0, index = -1;
25 
26  for (i = 0; i < count - 1; i++)
27  {
28  if (str[i] == PREFIX && str[i + 1] != PREFIX)
29  {
30  index = i - prefix_count;
31  prefix_count++;
32  }
33  else if (str[i] == PREFIX && str[i + 1] == PREFIX)
34  {
35  i++;
36  }
37  }
38  return index;
39 }
GLuint GLuint GLsizei count
Definition: gl.h:1545
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
Definition: glfuncs.h:248
const WCHAR * str
GLuint index
Definition: glext.h:6031
#define index(s, c)
Definition: various.h:29
#define PREFIX
Definition: lpk.c:18

Referenced by LpkPSMTextOut().

◆ PSM_PrepareToDraw()

static void PSM_PrepareToDraw ( LPCWSTR  str,
INT  count,
LPWSTR  new_str,
LPINT  new_count 
)
static

Definition at line 41 of file lpk.c.

42 {
43  int len, i = 0, j = 0;
44 
45  while (i < count)
46  {
47  if (str[i] == PREFIX || (iswspace(str[i]) && str[i] != L' '))
48  {
49  if (i < count - 1 && str[i + 1] == PREFIX)
50  new_str[j++] = str[i++];
51  else
52  i++;
53  }
54  else
55  {
56  new_str[j++] = str[i++];
57  }
58  }
59 
60  new_str[j] = L'\0';
61  len = wcslen(new_str);
62  *new_count = len;
63 }
GLuint GLuint GLsizei count
Definition: gl.h:1545
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
Definition: glfuncs.h:248
const WCHAR * str
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 GLint GLint j
Definition: glfuncs.h:250
#define iswspace(_c)
Definition: ctype.h:669
static const WCHAR L[]
Definition: oid.c:1250
GLenum GLsizei len
Definition: glext.h:6722
#define PREFIX
Definition: lpk.c:18
size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)

Referenced by LpkPSMTextOut().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( bidi  )

Variable Documentation

◆ LpkEditControl

LPK_LPEDITCONTROL_LIST LpkEditControl
Initial value:
DWORD WINAPI EditVerifyText(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5, DWORD x6)
Definition: stub.c:110
DWORD WINAPI EditMouseToIch(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5)
Definition: stub.c:73
DWORD WINAPI EditAdjustCaret(DWORD x1, DWORD x2, DWORD x3, DWORD x5)
Definition: stub.c:140
DWORD WINAPI EditCreateCaret(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5)
Definition: stub.c:134
DWORD WINAPI EditGetLineWidth(DWORD x1, DWORD x2, DWORD x3, DWORD x4)
Definition: stub.c:86
DWORD WINAPI EditNextWord(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5, DWORD x6, DWORD x7)
Definition: stub.c:116
DWORD WINAPI EditProcessMenu(DWORD x1, DWORD x2)
Definition: stub.c:128
DWORD WINAPI EditDrawText(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5, DWORD x6, DWORD x7)
Definition: stub.c:92
DWORD WINAPI EditSetMenu(DWORD x1, DWORD x2)
Definition: stub.c:122
DWORD WINAPI EditIchToXY(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5)
Definition: stub.c:67
DWORD WINAPI EditHScroll(DWORD x1, DWORD x2, DWORD x3)
Definition: stub.c:98
DWORD WINAPI EditMoveSelection(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5)
Definition: stub.c:104
DWORD WINAPI EditCchInWidth(DWORD x1, DWORD x2, DWORD x3, DWORD x4, DWORD x5)
Definition: stub.c:79
DWORD WINAPI EditCreate(DWORD x1, DWORD x2)
Definition: stub.c:61

Definition at line 13 of file lpk.c.