Article ID: 177796
Article Last Modified on 7/11/2005
case WM_PAINT:
{
HDC hdc;
PAINTSTRUCT ps;
GCP_RESULTS gcp;
static char szOut[40];
int dx[13];
int pos;
int order[13];
UINT glyphs;
HFONT hPrevFont;
ZeroMemory(&gcp,sizeof(GCP_RESULTS));
gcp.lStructSize = sizeof(GCP_RESULTS);
gcp.lpOutString = szOut;
gcp.lpDx = &dx[0];
gcp.lpCaretPos = &pos;
gcp.lpOrder = &order[0];
gcp.lpGlyphs = (unsigned short *)&glyphs;
gcp.nGlyphs = 12;
hdc = BeginPaint(hWnd, &ps);
hPrevFont = SelectObject(hdc, hFont);
GetCharacterPlacement(hdc, "AVAVAVAVAVAV", 12, 0,
&gcp, GCP_USEKERNING);
DeleteObject(SelectObject(hdc, hPrevFont));
EndPaint(hWnd, &ps);
break;
}
Keywords: kbbug kbpending KB177796