Index   Commented   Search   About

DisplayGuesses

The DisplayGuesses function writes the guesses returned from the default recognizer. The guesses appear in a column, listed in descending order of confidence. The for loop shown below converts the symbol values to characters, then calls the Windows function TextOut to display the text.

VOID DisplayGuesses( HDC hdc ) // DC handle

{

TEXTMETRIC tm;

int nX, nY; // Text coords

.

.

.

for (i = 0; i < MAX_GUESS; i++)

{

if (vcSyv[i])

{

SymbolToCharacter( (LPSYV) vsyvSymbol[i],

vcSyv[i],

(LPSTR) szText,

(LPINT) &cChar );

TextOut( hdc, nX, nY, (LPSTR) szText, cChar );

nY += tm.tmExternalLeading + tm.tmHeight;

}

}

}

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun