<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_SetStringType |
VOID FAR PASCAL sx_SetStringType
(USHORT uiStringType);
Indicate whether strings returned should be formatted as Visual Basic variable length strings or "C" type binary zero delimited strings.
The default value is to return Visual Basic strings. C programs must always set the string type in their initialization routine.
uiStringType: Set uiStringType to 1 if C strings are to be returned. A setting of 0 returns Visual Basic variable length strings.
// handle initialization procedures when window
// creation message is received
case WM_CREATE:
sx_SetStringType(1);
sx_SetDateFormat(ANSI);
sx_SetCentury(TRUE);
sx_SetDeleted(TRUE);
hdc = GetDC(hWnd);
GetTextMetrics(hdc, &tm);
icxChar = tm.tmAveCharWidth;
icyChar = tm.tmHeight + tm.tmExternalLeading;
ReleaseDC(hWnd, hdc);
break;