[C con Clase] Warning W8065

William Morales wmormar en yahoo.com.mx
Mie Ene 10 21:14:23 CET 2007


Amigos,

antes que nada, saludarlos y desearles un buen año.

Realmente es mi primer post, pues he sido un ferviente lector de esta lista.

Ahora, estoy tratando de modificar un archivo en C que tengo por ahí (aclaro, no lo he hecho yo), me manda el siguiente warning que quisiera eliminar.

Warning W8065: Call to function 'GetTextExtent' with no prototype in function HB_FUN_DRAWRADIO

Alguien podria decirme que significa?

He tratado de buscar información en "san google", pero no he encontrado algo que realmente me aclare la duda.

Agredeciendole sus finas atenciones de antemano.

William Morales

PD. esta es parte del código

HB_FUNC( DRAWRADIO ) // ( hDC, nTop, nLeft, cText, hFont, lChecked, nClrBtn,
                     //   nClrText, nClrLight, nClrDark, lDisable, l3D,
                     //   lFocused, nStyle, lDrawFocus, lTwice, hBitMap )
{
   HDC hDC            = ( HDC ) hb_parni( 1 ) ;
   int iTop           = hb_parni( 2 ) ;
   int iLeft          = hb_parni( 3 ) ;
   LPSTR cText        = hb_parc( 4 ) ;
   HFONT hFont        =  ( HFONT ) hb_parni( 5 ) ;
   BOOL bSelect       = hb_parl( 6 ) ;
   COLORREF nClrBtn   = ( COLORREF ) hb_parnl( 7 ) ;
   COLORREF nClrText  = ( COLORREF ) hb_parnl( 8 ) ;
   COLORREF nClrLight = ( COLORREF ) hb_parnl( 9 ) ;
   COLORREF nClrDark  = ( COLORREF ) hb_parnl( 10 ) ;
   BOOL bDisable      = hb_parl( 11 ) ;
   BOOL b3DInv        = ( ISLOG( 12 ) ? ! hb_parl( 12 ) : FALSE ) ;
   BOOL b3D           = ( ISLOG( 12 ) ? TRUE : FALSE ) ;
   BOOL bFocus        = ( ISLOG( 13 ) ? hb_parl( 13 ) : FALSE ) ;
   int iStyle         = hb_parni( 14 ) ;
   BOOL bDraw         = hb_parl( 15 ) ;
   BOOL bTwice        = hb_parl( 16 ) ;
   HBITMAP hBitMap    = (HBITMAP) hb_parni( 17 ) ;
   int iBmpW          = hb_parni( 18 ) + 2 ;
   int iBmpH          = hb_parni( 19 ) ;
   HFONT hOldFont = SelectObject( hDC, hFont ) ;

   COLORREF nClr2  = MakeDarker( nClrBtn, 48 ) ;
   COLORREF nClr3  = MakeDarker( nClrBtn, -48 ) ;

   HPEN hPDark  = CreatePen( PS_SOLID, 1, nClr2 ) ;
   HPEN hPNull  = CreatePen( PS_NULL, 0, 0 ) ;
   HPEN hPLight = CreatePen( PS_SOLID, 1, nClr3 ) ;
   HPEN hPWhite = CreatePen( PS_SOLID, 1, RGB( 221, 221, 221 ) );
   HPEN hPGray = CreatePen( PS_SOLID, 1, RGB( 128, 128, 128 ) ) ;
   HPEN hPNegra = CreatePen( PS_SOLID, 1, 0 ) ;
   HPEN hPHGray = CreatePen( PS_SOLID, 1, RGB( 192, 192, 192 ) ) ;
   HPEN hPBlack = CreatePen( PS_SOLID, 1, bDisable ? GetSysColor( COLOR_BTNSHADOW ) : 0 ) ;
   HPEN hPOld   = SelectObject( hDC, iStyle == 3 || iStyle != 4 ? hPBlack : hPDark ) ;

   LOGBRUSH lb ;
   HBRUSH hBNull ;
   HBRUSH hBBlack = CreateSolidBrush( bDisable ? GetSysColor( COLOR_BTNSHADOW ) : 0 ) ;
   HBRUSH hBGray  = CreateSolidBrush( bDisable ? GetSysColor( COLOR_BTNFACE ) : nClrBtn ) ;
   HBRUSH hBDisab = CreateSolidBrush( GetSysColor( COLOR_BTNSHADOW ) ) ;
   HBRUSH hBWhite = CreateSolidBrush( RGB( 241, 241, 241 ) ) ;
   HBRUSH hBOld   = SelectObject( hDC, hBGray ) ;

   POINT aB[ 4 ] ;
   POINT aP[ 7 ] ;
   RECT rct ;
   int iBkOld, iExt ;
   int iLen = hb_parclen( 4 ) ;
   TEXTMETRIC tm ;
   GetTextMetrics( hDC, &tm ) ;

   lb.lbStyle = BS_NULL ;
   hBNull  = CreateBrushIndirect( &lb ) ;

   CDC
   iExt       = LOWORD( GetTextExtent( hDC, cText, iLen ) ) ;
 
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.conclase.net/pipermail/cconclase_listas.conclase.net/attachments/20070110/b86c2471/attachment.html>


Más información sobre la lista de distribución Cconclase