Displaying Strings in Virtual BuffersThe fg_print() function can display strings in either the client area or the active virtual buffer. After calling fg_vbinit(), you can direct strings to the active virtual buffer by passing the fg_getdc() return value to fg_fontdc(), as shown here:
C/C++:
Delphi:
Visual Basic:
This technique works only for virtual buffers created with fg_vballoc(); you cannot display strings in virtual buffers created with fg_vbdefine(). Passing fg_fontdc() the device context handle originally passed to fg_setdc() restores string output to the client area.
|
 
copyright 2001 Ted Gruber Software, Inc.