Using Win32 functions in Visual FoxPro Image Gallery
Font and Text
..msdn
CreateFont
DrawText
GetCharABCWidths
GetTextAlign
GetTextCharacterExtra
GetTextColor
GetTextExtentPoint32
GetTextFace
GetTextMetrics
SetTextAlign
SetTextCharacterExtra
SetTextColor
TextOut
Code examples:
Placing On-screen Alert on top of all windows
Subclassing CommandButton control to create BackColor property
Using the DrawText function
DrawText
..msdn    Add comment     W32 Constants      Translate this page
The DrawText function draws formatted text in the specified rectangle. It formats the text according to the specified method (expanding tabs, justifying characters, breaking lines, and so forth).
Code examples:
Subclassing CommandButton control to create BackColor property
Placing On-screen Alert on top of all windows
Using the DrawText function
Declaration:
int DrawText(
  HDC hDC,          // handle to DC
  LPCTSTR lpString, // text to draw
  int nCount,       // text length
  LPRECT lpRect,    // formatting dimensions
  UINT uFormat      // text-drawing options
);
FoxPro declaration:
DECLARE INTEGER DrawText IN user32;
    INTEGER   hDC,;
    STRING    lpString,;
    INTEGER   nCount,;
    STRING  @ lpRect,;
    INTEGER   uFormat
Parameters:
hDC
[in] Handle to the device context.

lpString
[in] Pointer to the string that specifies the text to be drawn.

nCount
[in] Specifies the length of the string.

lpRect
[in/out] Pointer to a RECT structure that contains the rectangle (in logical coordinates) in which the text is to be formatted.

uFormat
[in] Specifies the method of formatting the text.

Return value:
If the function succeeds, the return value is the height of the text in logical units.
If the function fails, the return value is zero.
My comment:
See also: TextOut, CreateFont
Word Index links for the DrawText :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-04-20 14:54:09
Modified: 2005-12-19 08:03:08
Visited in last 7 days: 34
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.226.34.209)
13 sec.Function: 'AddPort'
26 sec.Function: 'SetPrinter'
38 sec.Function: 'GetWindowContextHelpId'
52 sec.Function: 'StrCmpC'
1.07 min.Function: 'GetWorldTransform'
1.27 min.Function: 'CeRapiFreeBuffer'
1.48 min.Function: 'PathIsRelative'
1.7 min.Function: 'CeRegDeleteValue'
1.92 min.Function: 'GetSystemTime'
2.13 min.Function: 'GetHGlobalFromStream'
Google
Advertise here!