www.pudn.com > 智能内码识别,支持屏幕取词翻译的程序.zip > MYFUNC.H


#ifdef __cplusplus 
extern "C" { 
#endif 
 
BOOL __export FAR PASCAL MyTextOut(  
					HDC hdc , int nXStart , int nYStart ,  
				   LPCSTR lpString , int cbString ) ;   
BOOL __export FAR PASCAL MyExtTextOut(  
					HDC hdc , int nXStart , int nYStart ,  
				   UINT fuOptions , const RECT FAR* lprc , 
				   LPCSTR lpString , UINT cbString , 
				   int FAR* lpDx ) ; 
int __export FAR PASCAL MyDrawText(	 
						HDC hdc ,	/* handle of device context	*/ 
						LPCSTR lpsz ,	/* address of string to draw	*/ 
						int cb ,	/* string length	*/ 
						RECT FAR* lprc ,	/* address of structure with formatting dimensions	*/ 
						UINT fuFormat )	;/* text-drawing flags	*/ 
BOOL __export FAR PASCAL MyGetCharWidth( 
							HDC hdc ,	/* handle of device context	*/ 
							UINT uFirstChar,	/* first character in range to query	*/ 
							UINT uLastChar,	/* last character in range to query	*/ 
							int FAR* lpnWidths ) ;	/* address of buffer for widths	*/ 
BOOL __export FAR PASCAL MyGetCharABCWidths( 
							HDC hdc ,	/* handle of device context	*/ 
							UINT uFirstChar,	/* first character in range to query	*/ 
							UINT uLastChar,	/* last character in range to query	*/ 
							LPABC lpabc ) ;	/* address of buffer for widths	*/ 
DWORD __export FAR PASCAL MyGetTextExtent( 
										HDC hdc,	/* handle of device context	*/ 
										LPCSTR lpszString,	/* address of string	*/ 
										int cbString ) ;	/* number of bytes in string	*/ 
int __export FAR PASCAL MyGetSystemMetrics( int nIndex ) ;										 
//BOOL __export FAR PASCAL MyGetTextMetrics( 
//	HDC hdc ,	/* handle of device context	*/ 
//	TEXTMETRIC FAR* lptm ) ;	/* pointer to structure for font metrics	*/ 
//---------------------------------------------------------------------// 
int	GetOneLine( HDC hdc , int nStart , LPCSTR lpsz , int cb ,  
				int nRectWidth , UINT fuFormat ) ; 
 
#ifdef __cplusplus 
} 
#endif