topic
stringlengths
1
63
text
stringlengths
1
577k
Compilación mínima
por lo menos recuedor que agregand9o la lib "nordd" no se agrega ningun rdd.
Compilación mínima
Hola carlos, muchas gracias por contestar. Lo pruebo y comento. Saludos
Compilación mínima
Carlos, en Harbour la librería para no usar rdds es hbnulrdd. Si alguien tiene idea de como ir eliminando cosas, por favor, que lo comente. Saludos
Compilación para 12.05
!Estoy aquí regresando al redil! Acabo de estrenar la versión 12.05 de FWH y me encuentro con problema para compilar algunas clases de terceros. - WBrwLine.C de Hernan no pasa. Al parecer porque hay llamadas a funciones de Clipper. - Uso TScan de TheFull y Menus de Tamayo. Reportan 'Suspicious pointer conversion...' Me pregunto si alguna alma caritativa ya superó estas situaciones y/o me da línea para superarlas. Herramientas: FWH 12.05, xHarbour 1.2.1, BCC 5.82 Tengo por ahí algunos secretos que me gustaría compartir con ustedes interesados en trabajar con FWH y SQL, pero primero debo superar esto (snif!). Gracias.
Compilación para 12.05
Alfredo, wBrwLine.c, Yo la tengo compilada con xHarbour, osea tengo el wBewLine.obj, no recuerdo de que version, pero pasa en todas mis compilaciones sin problemas, trabajo con FWH 12.02 si gustas te lo envio para que lo pruebes.
Compilación para 12.05
Gracias Enrique, con gusto lo acepto. Mi correo: <!-- e --><a href="mailto:soporte@rc-extended.com.mx">soporte@rc-extended.com.mx</a><!-- e -->. No obstante, si me agradaría obtener la compilación con las herramientas actuales, saber si hace falta incluir algun archivo o ajustar el código.
Compilación para 12.05
Alfredo, Puedes copiar aqui ó enviarme por email el fichero wbrwline.c de Hernan ? gracias! Bienvenido nuevamente! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compilación para 12.05
Gracias por el interés Antonio. He aquí el código el problema de compilación se reporta en: static void near PaintTheLine . Envié a tu correo la TScan para ver lo de 'Suspicious pointer...' parece que hay que hacer algun tipo de declaración en los parámetros pero no me atrevo a hacerlo sin consultar. [code=fw:1w82ip7r]<div class="fw" id="{CB}" style="font-family: monospace;"><br />void * __conArrayGet<span style="color: #000000;">&#40;</span> void *, void *, ... <span style="color: #000000;">&#41;</span>;<br />long __conGetNL<span style="color: #000000;">&#40;</span> void *, long * <span style="color: #000000;">&#41;</span>;<br />long __conRelease<span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00D7D7;">#define</span> _HB_API_INTERNAL_<br /><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br />#ifdef __HARBOUR__<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbapi.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbapiitm.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbstack.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbvm.h><br />&nbsp; &nbsp;<span style="color: #B900B9;">// #include <hbfast.h></span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> MoveTo<span style="color: #000000;">&#40;</span> hDC, x, y <span style="color: #000000;">&#41;</span> MoveToEx<span style="color: #000000;">&#40;</span> hDC, x, y, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span> hb_vmPushSymbol<span style="color: #000000;">&#40;</span> &hb_symEval <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _xPushM &nbsp;hb_vmPush<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _PutLN &nbsp; hb_vmPushLong<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _xEval &nbsp; hb_vmDo<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _cEval0 &nbsp;hb_vmEvalBlock<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _Get_Sym hb_dynsymFindName<br />#endif<br /><br /><br /><span style="color: #00D7D7;">#define</span> HA_LEFT &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp;<span style="color: #B900B9;">// by CeSoTech Alineaciones Horizontales y Verticales</span><br /><span style="color: #00D7D7;">#define</span> HA_RIGHT &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HA_CENTER &nbsp;<span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> VA_TOP &nbsp; &nbsp; <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> VA_BOTTOM &nbsp;<span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> VA_CENTER &nbsp;<span style="color: #000000;">32</span><br /><br /><br /><span style="color: #00C800;">static</span> far BOOL bAdjLastCol &nbsp;; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bAdjBrowse &nbsp; ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawHeaders ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawFooters ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wHeaderHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wFooterHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wLineHeight &nbsp;; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> far BOOL bWorking;<br /><br />WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wAlign, int iLen, HFONT hFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeadFoot <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bFocused <span style="color: #000000;">&#41;</span> ;<br /><br />void MaskRegion<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, COLORREF cTrColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORREF cBackColor <span style="color: #000000;">&#41;</span>;<br /><br />FrameDot<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br /><br />extern void WndDrawBox<span style="color: #000000;">&#40;</span> HDC, LPRECT, HPEN, HPEN <span style="color: #000000;">&#41;</span>;<br />extern void DrawBitmap<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WORD wHeight, DWORD dwRaster <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAJustify, WORD wPressed,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeader, WORD nStyle,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD nFocus, BOOL bFocused,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wRowPos, WORD nHeightCtrl,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LONG nClrLine, BOOL bFooter,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bSelect, PCLIPVAR pFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span> ;<br /><br />void DrawMasked<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// LOW &nbsp; &nbsp;HIGH</span><br />extern int _dvtoi<span style="color: #000000;">&#40;</span> DWORD, DWORD <span style="color: #000000;">&#41;</span>;<br />void MsgStr<span style="color: #000000;">&#40;</span> long l <span style="color: #000000;">&#41;</span>;<br />LPSTR Str<span style="color: #000000;">&#40;</span> WORD w <span style="color: #000000;">&#41;</span>;<br /><br />#ifndef __FLAT__<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> far PCLIPSYMBOL pSkip = <span style="color: #000000;">0</span>;<br />#else<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> long near GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #B900B9;">// static far void * pSkip = 0;</span><br />&nbsp; &nbsp;PHB_DYNS pSkip = <span style="color: #00C800;">NULL</span>;<br />#endif<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void MaskRegion<span style="color: #000000;">&#40;</span> HDC hdc, RECT * rct, COLORREF cTransparentColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLORREF cBackgroundColor <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HDC &nbsp; &nbsp; &nbsp; &nbsp;hdcTemp, hdcObject, hdcBack, hdcMem;<br />&nbsp; &nbsp;POINT &nbsp; &nbsp; &nbsp;ptSize;<br />&nbsp; &nbsp;COLORREF &nbsp; cColor;<br />&nbsp; &nbsp;HBITMAP &nbsp; &nbsp;bmAndObject, bmAndBack, bmBackOld, bmObjectOld,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bmAndTemp, bmTempOld, bmAndMem, bmMemOld;<br />&nbsp; &nbsp;HBRUSH &nbsp; &nbsp; hBrush, hBrOld;<br /><br />&nbsp; &nbsp;ptSize.x = rct->right - rct->left + <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;ptSize.y = rct->bottom - rct->top + <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;hBrush &nbsp; &nbsp; &nbsp;= CreateSolidBrush<span style="color: #000000;">&#40;</span>cBackgroundColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hdcTemp &nbsp; &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcObject &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcBack &nbsp; &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcMem &nbsp; &nbsp; &nbsp;= CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;bmAndTemp &nbsp; = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndMem &nbsp; &nbsp;= CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndObject = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndBack &nbsp; = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;bmTempOld &nbsp; = SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmAndTemp<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmMemOld &nbsp; &nbsp;= SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmAndMem<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmBackOld &nbsp; = SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmAndBack<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmObjectOld = SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmAndObject<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hBrOld &nbsp; &nbsp; &nbsp;= SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrush<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdc, rct->left, rct->top, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;SetMapMode<span style="color: #000000;">&#40;</span>hdcTemp, GetMapMode<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;cColor = SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cTransparentColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, NOTSRCCOPY<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PatBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>, ptSize.x, ptSize.y, PATCOPY<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCPAINT<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdc, rct->left, rct->top, ptSize.x, ptSize.y, hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmTempOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmMemOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmBackOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmObjectOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcMem<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcBack<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcObject<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcTemp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifdef __CLIPPER__<br /><span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; int iRet = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; _cAt<span style="color: #000000;">&#40;</span> Array, wIndex, <span style="color: #000000;">-1</span>, ++_tos <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; iRet = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUM_FLOAT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; iRet = _dvtoi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer1, <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer2 <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; --_tos;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> iRet;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __XPP__<br /><span style="color: #00C800;">static</span> long GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;void * chItem = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;long l;<br /><br />&nbsp; &nbsp;__conArrayGet<span style="color: #000000;">&#40;</span> Array, chItem, wIndex, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;__conGetNL<span style="color: #000000;">&#40;</span> chItem, &l <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;__conRelease<span style="color: #000000;">&#40;</span> chItem <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> l;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __HARBOUR__<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> GetInt<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span> &nbsp;hb_arrayGetNL<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------=</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ÚÄ1ra Col.a Pintar</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ³</span><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAJustify, WORD wPressed,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeader, WORD nStyle,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wFocus, BOOL bFocused,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wRowPos, WORD nHeightCtrl,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LONG nClrLine, BOOL bFooter,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bSelect, PCLIPVAR pFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT box, wholebox, rctadj;<br />&nbsp; &nbsp;int iMaxRight = rct->right;<br /><br />&nbsp; &nbsp;WORD wLenJust = <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp;WORD wLen &nbsp; &nbsp; = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;CLV_WORD lJustify;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp;WORD wLen &nbsp; &nbsp; = hb_arrayLen<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HB_ITEM uElem;<br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;WORD wType, wcLen;<br />&nbsp; &nbsp;LONG lValue;<br />&nbsp; &nbsp;char * cValue;<br />&nbsp; &nbsp;HPEN hOldPen, hPen;<br />&nbsp; &nbsp;BITMAP bmp;<br />&nbsp; &nbsp;WORD wRow, wCol;<br />&nbsp; &nbsp;LONG lColor ;<br />&nbsp; &nbsp;HBRUSH hBrush;<br />&nbsp; &nbsp;LONG lTextColorOld = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;LONG lBkColorOld &nbsp; = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;PCLIPVAR pEvalOld ;<br />&nbsp; &nbsp;HFONT hFont ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;WORD wAlign ; <span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;LONG nClrLineC = <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">2</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">8</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nClrLine >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Desde Clipper manda color especifico linea</span><br />&nbsp; &nbsp; &nbsp; nClrLineC = nClrLine ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; bHeader = <span style="color: #00C800;">FALSE</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; bHeader = <span style="color: #00C800;">TRUE</span> ; <span style="color: #B900B9;">//-> Para que lo pinte con similar aspecto</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span>bHeader<span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct->top-- &nbsp; &nbsp; &nbsp; ;<br /><br />&nbsp; &nbsp;wholebox.top &nbsp; &nbsp;= rct->top<span style="color: #000000;">+1</span>;<br />&nbsp; &nbsp;wholebox.<span style="color: #0000ff;">left</span> &nbsp; = rct->left;<br />&nbsp; &nbsp;wholebox.bottom = rct->bottom;<br />&nbsp; &nbsp;wholebox.<span style="color: #0000ff;">right</span> &nbsp;= rct->right;<br /><br />&nbsp; &nbsp;rct->right &nbsp;= <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;box.top &nbsp; &nbsp;= rct->top ;<br />&nbsp; &nbsp;box.bottom = rct->bottom - <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wIndex | wIndex > wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;wIndex = <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wLenJust = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wLenJust = hb_arrayLen<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; uElem.type = HB_IT_NIL;</span><br />&nbsp; &nbsp; &nbsp; #endif<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; rct->left &nbsp; = rct->right;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; rct->right &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen ? iMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : <span style="color: #000000;">rct</span>->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech // Cuando estoy estoy en la ultima celda, NO pintar hasta</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// el final si no existe ajuste de ultima columna.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct->right &nbsp;= rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> +<span style="color: #000000;">&#40;</span>bHeader ? <span style="color: #000000;">1</span>: <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wholebox.<span style="color: #0000ff;">right</span> = rct->right ; <span style="color: #B900B9;">// Tambien ajusto el borde focus</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; wAlign = HA_LEFT | VA_CENTER ; &nbsp;<span style="color: #B900B9;">// Alineacion por defecto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; wcLen = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">///////// INICIO Toma de datos celda !!!</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cAt<span style="color: #000000;">&#40;</span> pAJustify, wIndex, 0xFFFF, <span style="color: #000000;">&#40;</span> PCLIPVAR <span style="color: #000000;">&#41;</span> &lJustify <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = lJustify.wWord ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cAt<span style="color: #000000;">&#40;</span> pAtext, wIndex, 0xFFFF, ++_tos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wType = _tos->wType;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lValue = <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValue = _VSTR<span style="color: #000000;">&#40;</span> _tos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wcLen = _tos->w2;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; #else<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uElem.type = HB_IT_NIL; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_arrayGet<span style="color: #000000;">&#40;</span> pAJustify, wIndex, &uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> hb_itemType<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span> & LOGICAL <span style="color: #000000;">&#41;</span> && hb_itemGetL<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = HA_RIGHT | VA_CENTER ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = hb_itemGetNL<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_itemClear<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;uElem.type = HB_IT_NIL; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_arrayGet<span style="color: #000000;">&#40;</span> pAtext, wIndex, &uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wType = hb_itemType<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lValue = hb_itemGetNL<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cValue = hb_itemGetC( &uElem );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValue = hb_itemGetCPtr<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wcLen = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_itemClear<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>; <br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">///////// FIN Toma de datos celda !!!</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wFocus > <span style="color: #000000;">0</span> && wIndex != wFocus <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _tos--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wIndex = wLen + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ++wIndex;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">continue</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bTree ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Si NO es columna oculta (x Freeze)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//(Es lo mismo no hacer esto,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// pero es para evitar hacer trabajar</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// al codigo sin sentido !!! )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wType & NUMERIC<span style="color: #000000;">&#41;</span> && bTree <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lValue <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FillRect<span style="color: #000000;">&#40;</span> hDC, rct, hBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> GetPixel<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->top <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawMasked<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct->top, rct->left <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp;<span style="color: #B900B9;">// Si es Numerico Bmp no Tree, o , es Character !!!!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Bloque de Color Fondo Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> _parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lBkColorOld = SetBkColor<span style="color: #000000;">&#40;</span> hDC, _parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Bloque de Color Texto Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> _parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lTextColorOld = SetTextColor<span style="color: #000000;">&#40;</span> hDC, _parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFont = <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Bloque de Font Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> _parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/////// CeSoTech ///////</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top ++;<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Es un BitMap</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct, nStyle, bSelect <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Es una Cadena</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FW_DrawText<span style="color: #000000;">&#40;</span> hDC, rct,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span> ? cValue : <span style="color: #ff0000;">""</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign, wcLen, hFont, bHeader <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/////// CeSoTech restauracion de colores //////</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lTextColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, lTextColorOld <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lTextColorOld = <span style="color: #000000;">-1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lBkColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, lBkColorOld <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lBkColorOld = <span style="color: #000000;">-1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/// CeSoTech ///</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Si hay modalidad ajustar el Browse y no hay ajuste de ultima</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// columna, deber‚ pintar hasta el final hasta cubrir toda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// el area, hasta llegar a la derecha del control. (Col.Ficticia)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bAdjBrowse && wIndex == wLen && !bAdjLastCol &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->right <= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.top &nbsp; &nbsp;= rct->top;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">left</span> &nbsp; = rct->right ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom = rct->bottom;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span> &nbsp;= wholebox.<span style="color: #0000ff;">right</span> &nbsp;;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctadj.top--;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wFocus == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Si No es CellStyle (Pinto hasta final)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, &rctadj, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bHeader && nStyle==<span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Pinto Bordes Header Falso</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span> &nbsp;= wholebox.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom = rctadj.bottom - <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span>++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; &nbsp;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Si es Footer (Linea Negra de Arriba Foot)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, rctadj.left<span style="color: #000000;">-1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, rctadj.right<span style="color: #000000;">+1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/// CeSoTech Fin ///</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">left</span> &nbsp; = rct->left;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex < wLen && rct->right <= iMaxRight ?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->right - <span style="color: #000000;">1</span> :<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">iMaxRight</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech // El Borde derecho de Box de la ultima columna,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// no estirarlo cuando no exista ajuste de ultima columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// PERO cuando nLineStyle (nStyle) es 7/8 (Lineas Horiz)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// queda anti-estetico cortar los renglones, cuando no hay</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// ajuste ult.col. y hay ajuste de browse. Por ello</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// se verificara que para cortar el borde no se de esta</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// condicion.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>! <span style="color: #000000;">&#40;</span>!bHeader && <span style="color: #000000;">&#40;</span>nStyle==<span style="color: #000000;">7</span> || nStyle==<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> && !bAdjLastCol && bAdjBrowse<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">right</span> &nbsp;= rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bTree <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wPressed && <span style="color: #000000;">&#40;</span> wIndex == wPressed <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hGrayPen, hWhitePen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><span style="color: #B900B9;">///////////// &nbsp;if(!bHeader)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!bHeader || <span style="color: #000000;">&#40;</span>bHeader && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nStyle <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">0</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">1</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp;hOldPen = SelectObject( hDC, GetStockObject( BLACK_PEN ) );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">2</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">3</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">WndDrawBox</span><span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">4</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">box</span>.bottom ++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span> ++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FrameDot<span style="color: #000000;">&#40;</span> hDC, &box <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span> --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">7</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">8</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">5</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">6</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">9</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">10</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>box.left><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawFooters && nStyle >= <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHeightCtrl - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle < <span style="color: #000000;">9</span> ? box.bottom<span style="color: #000000;">+1</span> : <span style="color: #000000;">nHeightCtrl</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp;<span style="color: #B900B9;">// Box para Headers !!!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">left</span> ++;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Linea negra sobre el Footer</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.left<span style="color: #000000;">-1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.right-- &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom-- ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span>++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">left</span> --;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">16</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech if( bFocused && wFocus > 0 && wIndex == wFocus )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDrawFocusRect && bFocused && wFocus > <span style="color: #000000;">0</span> &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wIndex == wFocus && nStyle != <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->left++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->top++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->left--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->top--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_tos--;<br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex = wLen + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;++wIndex;<br /><br /><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bDrawFocusRect && !bTree && bFocused && wFocus==<span style="color: #000000;">0</span> && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &wholebox <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWSELBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBRWSELBOX<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, nRow, nFirstCol, nCurCol,;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; lFocus, aSizes, hFont)</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wCol &nbsp; &nbsp; &nbsp; &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFocused &nbsp; &nbsp;= _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR pAsizes = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;HFONT hOldFont;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// By CeSoTech</span><br />&nbsp; &nbsp; &nbsp; wRow-- ;<br /><br />&nbsp; &nbsp;rct.top &nbsp; &nbsp;= tm.tmHeight * wRow ;<br />&nbsp; &nbsp;rct.bottom = tm.tmHeight * <span style="color: #000000;">&#40;</span> wRow + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex < wCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp;+= GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex++ <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= &nbsp;rct.<span style="color: #0000ff;">left</span>+GetInt<span style="color: #000000;">&#40;</span> pAsizes, wCol <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;MaskRegion<span style="color: #000000;">&#40;</span> hDC, &rct, GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>, GetSysColor<span style="color: #000000;">&#40;</span>COLOR_ACTIVECAPTION<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bFocused <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBRWLINE<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, nRow, aText, aSizes, nFirstItem, ;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// nClrFore, nClrBack, hFont, lTree, aJustify, nPressed,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// nStyle, nColAct, lFocused )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// bTextColor, bBkColor, nClrLine, lFooter, lSelect,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// bFont, lDrawFocusRect ) // New's by CesoTech</span><br />#endif<br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;WORD wHeight;<br />&nbsp; &nbsp;RECT rct, box;<br />&nbsp; &nbsp;PCLIPVAR bClrFore, bClrBack;<br />&nbsp; &nbsp;COLORREF clrFore = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;HPEN hGrayPen &nbsp; &nbsp;;<br />&nbsp; &nbsp;HPEN hWhitePen &nbsp; ;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;BOOL bTree &nbsp; &nbsp; &nbsp;= _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFooter = ISLOGICAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> ? _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> ; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;hGrayPen &nbsp; &nbsp;= CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />&nbsp; &nbsp;hWhitePen &nbsp; = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> PCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrFore = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> PCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrBack = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;nHeightCtrl = rct.bottom-rct.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Es una Cabecera</span><br />&nbsp; &nbsp; &nbsp; wHeight = wHeaderHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bFooter <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Es una Cabecera</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.top &nbsp; &nbsp;= <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.bottom = wHeaderHeight + <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; rct.bottom = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * wRow<span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= rct.bottom - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>, _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen, bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>wRow == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span>, _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bFooter, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISLOGICAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> ? _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span>, &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISLOGICAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> ? _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span>;<span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> rct.top, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_AWBRWROWDIM<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER AWBRWROWDIM<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC &nbsp;hDC &nbsp; &nbsp; &nbsp; = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow++, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow, &nbsp; <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseX<span style="color: #000000;">&#40;</span> WORD wX <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span> * wX / LOWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseY<span style="color: #000000;">&#40;</span> WORD wY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">8</span> * wY / HIWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwRect<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRow, aSizes, nFirstItem, nCol,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; nLineStyle, nWidthVScroll )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wHeight ;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD nStyle = ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ? _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><br />&nbsp; &nbsp;#ifdef __CLIPPER__<br />&nbsp; &nbsp; &nbsp; PCLIPVAR paSizes = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; WORD wLen &nbsp; &nbsp; &nbsp; &nbsp;= _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp; &nbsp; #ifdef __HARBOUR__<br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; void * paSizes = ( void * ) _param( 3, HB_IT_ARRAY );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wLen &nbsp; &nbsp; &nbsp;= _parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;void * paSizes = <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wLen &nbsp; &nbsp; &nbsp;= _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #endif<br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wCol &nbsp; &nbsp; &nbsp; &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wMaxRight;<br />&nbsp; &nbsp;LONG l;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wCol || wCol > wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span>;<br /><br /><br />&nbsp; &nbsp;GetWindowRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;wMaxRight = rct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;rct.top &nbsp; &nbsp;= rct.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br /><br />&nbsp; &nbsp;rct.bottom = rct.top + wHeight;<br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= rct.<span style="color: #0000ff;">left</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp; = rct.<span style="color: #0000ff;">right</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __FLAT__<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + GetInt<span style="color: #000000;">&#40;</span> paSizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> _parnl<span style="color: #000000;">&#40;</span>x,y<span style="color: #000000;">&#41;</span> PARNL<span style="color: #000000;">&#40;</span>x,params,y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l = _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, wIndex <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + l <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> >= wMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex = wCol + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">right</span> = wMaxRight;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex++;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;#ifdef __XPP__<br />&nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> _storni<span style="color: #000000;">&#40;</span> x, y, z <span style="color: #000000;">&#41;</span> STORNI<span style="color: #000000;">&#40;</span> x, params, y, z <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#endif<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top-- ; &nbsp;<span style="color: #B900B9;">// Las coord.de edicion deberan ser mas arriba tambien !!!</span><br /><br /><br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> rct.top, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">left</span>, &nbsp; <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wMaxRight <= rct.<span style="color: #0000ff;">right</span> <span style="color: #000000;">&#41;</span> ?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wMaxRight - _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">right</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWPANE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBRWPANE<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, Self, bLine, aSizes, nFirstItem,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; nClrFore, nClrBack, hFont, aJustify, nStyle</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; lCellStyle, lFocused ) -> nRowsSkipped</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; bTextColor, bBkColor, nClrLine, nColorFondo, bFont ) // New's by CesoTech</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRows;<br />&nbsp; &nbsp;WORD wLastBottom = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;WORD wSkipped &nbsp; &nbsp;= <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;PCLIPVAR <span style="color: #00C800;">Self</span> &nbsp; &nbsp;= _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR bLine &nbsp; = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR pASizes = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;WORD wHeight ;<br />&nbsp; &nbsp;RECT rct, box, <span style="color: #00C800;">client</span>;<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR bClrFore = <span style="color: #000000;">0</span>, bClrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrFore = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;HPEN hGrayPen &nbsp; &nbsp;= CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />&nbsp; &nbsp;HPEN hWhitePen &nbsp; = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br />&nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp;BOOL bColBlock &nbsp; = pASizes->wType & BLOCK;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp;BOOL bColBlock &nbsp; = pASizes->type & BLOCK;<br />&nbsp; &nbsp;HB_ITEM aLine; &nbsp; <br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;PCLIPVAR pAJustify = ISARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>: <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br />&nbsp; &nbsp;WORD nStyle = _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> PCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrFore = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> PCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrBack = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! pSkip <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;pSkip = _Get_Sym<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SKIP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Borremos el Area de la derecha no coubierta</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse && !bAdjLastCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> wIndex=wIndex ; wIndex <= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> _parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>; wIndex++ <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> += _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, wIndex <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">7</span> || nStyle == <span style="color: #000000;">8</span> || nStyle == <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span>++;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;wIndex = _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////</span><br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &client <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;nHeightCtrl = <span style="color: #00C800;">client</span>.bottom-<span style="color: #00C800;">client</span>.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;wRows = WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wRow <= wRows && wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= <span style="color: #00C800;">client</span>.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; rct.bottom = rct.top + wHeight;<br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #00C800;">client</span>.<span style="color: #0000ff;">right</span>;<br /><br />&nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xPushM<span style="color: #000000;">&#40;</span> _eval <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bColBlock <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, _tos,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bColBlock ? _eval : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_parni <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_tos--;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_PutSym<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xPushM<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_PutQ<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xSend<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aLine.type = HB_IT_NIL;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Esta extension de xHarbour no se puede aplicar en Harbour</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// hb_itemForwardValue( &aLine, hb_vmEvalBlock( bLine ) );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_itemCopy<span style="color: #000000;">&#40;</span> &aLine, hb_vmEvalBlock<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, &aLine,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bColBlock ? hb_vmEvalBlock<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_parnl <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_itemClear<span style="color: #000000;">&#40;</span> &aLine <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPushSymbol<span style="color: #000000;">&#40;</span> pSkip->pSymbol <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPush<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPushLong<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmDo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; wLastBottom = rct.bottom ;<br />&nbsp; &nbsp; &nbsp; wSkipped = _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wRow++;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Borremos el Area de Abajo no cubierta</span><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;rct.top = wLastBottom + <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wLastBottom == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// No Mostro Registros</span><br />&nbsp; &nbsp; &nbsp; rct.top = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;rct.bottom-= &nbsp;<span style="color: #000000;">1</span> + <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp;nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top--;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bDrawFooters <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.bottom++;<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rct.top < rct.bottom <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">////////////////////////</span><br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br /><br />&nbsp; &nbsp;_retni<span style="color: #000000;">&#40;</span> wRow <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWSET<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwSet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( lAdjLastCol, lAdjBrowse, lDrawHeaders, lDrawFooters )</span><br />#endif<br /><span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; bAdjLastCol &nbsp;= &nbsp;_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste o no de ultima columna al control.</span><br />&nbsp; &nbsp; bAdjBrowse &nbsp; = &nbsp;_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste del Browse a la derecha</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// cuando no existe ajuste de ultima columna.</span><br />&nbsp; &nbsp; bDrawHeaders = _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> &nbsp;; <span style="color: #B900B9;">// Si quiere visualizar Headers !!!</span><br />&nbsp; &nbsp; bDrawFooters = _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> &nbsp;; <span style="color: #B900B9;">// Si se quiere visualizar Footers !!!</span><br /><br />&nbsp; &nbsp; wHeaderHeight= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; wFooterHeight= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; wLineHeight &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Devuelve Nro. de Filas de Datos (No incluye Headers ni Footers)</span><br /><span style="color: #00C800;">static</span> WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;WORD wHeight;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD wRows;<br />&nbsp; &nbsp;BOOL bDCDestroy = <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDCDestroy = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;wRows = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.bottom - rct.top - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> -<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> -<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> / wHeight ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDCDestroy <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> wRows;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWROWS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwRows<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, hFont )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retni<span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWSCRL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwScrl<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRows, hFont, nLineStyle, hDC )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;int wRows &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC hDC = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>; &nbsp;<span style="color: #B900B9;">// &nbsp;= GetDC( hWnd );</span><br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD nStyle = _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawHeaders <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top += wHeaderHeight<span style="color: #000000;">+1</span> ;<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Defino Bottom de Area del Scroll</span><br />&nbsp; &nbsp;rct.bottom = <span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// El Area Scroll deber  entonces no tomar el separator (forma parte de ant)</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.bottom++; &nbsp; <span style="color: #B900B9;">// Debe tomarse dado que no pinta celda 1 una mas arriba</span><br /><br />&nbsp; <span style="color: #B900B9;">// ScrollWindowEx( hWnd, 0, -( (wLineHeight+1) * wRows ), 0, &rct, 0, 0, 0 );</span><br /><br />&nbsp; &nbsp;ScrollDC<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, -<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> * wRows <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, &rct, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; <span style="color: #B900B9;">// &nbsp;ReleaseDC( hWnd, hDC );</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWHEIGHT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwHeight<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hFont )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_retni<span style="color: #000000;">&#40;</span> tm.tmHeight <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wAlign, int iWidth,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HFONT hFont, BOOL bHeadFoot <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT rcttmp &nbsp; &nbsp; ;<br />&nbsp; &nbsp;int iHeight &nbsp; &nbsp; ;<br />&nbsp; &nbsp;UINT uiFlag &nbsp; &nbsp; ;<br />&nbsp; &nbsp;HFONT hOldFont &nbsp;;<br />&nbsp; &nbsp;int iFactor &nbsp; &nbsp; ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Alineaciones Verticales //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////////</span><br />&nbsp; &nbsp;iHeight = DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, DT_CALCRECT <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;iFactor = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_TOP <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; iFactor = <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_BOTTOM <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iFactor = <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight - <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;rcttmp.top &nbsp; &nbsp;= rct->top + iFactor ;<br />&nbsp; &nbsp;rcttmp.bottom = rct->bottom ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">left</span> &nbsp; = rct->left &nbsp; ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">right</span> &nbsp;= rct->right &nbsp;;<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rcttmp.top < rct->top <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.top = rct->top ;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">///////////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Alineaciones Horizontales //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">///////////////////////////////</span><br />&nbsp; &nbsp;uiFlag = DT_LEFT ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">left</span>+= <span style="color: #000000;">2</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_CENTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.left-= <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp;uiFlag = DT_CENTER ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_RIGHT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.left-= <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp;uiFlag = DT_RIGHT ;<br />&nbsp; &nbsp; &nbsp;rcttmp.right-= <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ETO_OPAQUE | ETO_CLIPPED, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, uiFlag | DT_NOPREFIX <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;WORD wWidth &nbsp; ;<br />&nbsp; &nbsp;WORD wHeight &nbsp;;<br />&nbsp; &nbsp;WORD wRow ;<br />&nbsp; &nbsp;WORD wCol ;<br />&nbsp; &nbsp;BITMAP bm;<br />&nbsp; &nbsp;LONG lBkColorBMP, lBkColor = GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFlag = <span style="color: #00C800;">FALSE</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">3</span> || nStyle == <span style="color: #000000;">5</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> && bSelect <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct->bottom-- ;<br />&nbsp; &nbsp; &nbsp; bFlag = <span style="color: #00C800;">TRUE</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;wWidth &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;wHeight = rct->bottom - rct->top ;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> hBmp, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wHeight > bm.bmHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wRow = rct->top + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wHeight - bm.bmHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; wHeight = bm.bmHeight ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wRow = rct->top ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wWidth > bm.bmWidth <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wCol = rct->left + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wWidth - bm.bmWidth <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; wWidth = bm.bmWidth ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wCol = rct->left ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;rct->bottom++;<br />&nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;rct->bottom--;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hBmp > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBmp, wRow, wCol, wWidth, wHeight, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> lBkColorBMP = GetPixel<span style="color: #000000;">&#40;</span> hDC, wCol, wRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != lBkColor<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MaskRegion<span style="color: #000000;">&#40;</span> hDC, rct, lBkColorBMP, lBkColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bFlag<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct->bottom++ ;<br /><br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #B900B9;">/*******<br /><br /><br />static void FW_DrawBitmapCenter( HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect )<br />{<br />&nbsp; &nbsp;WORD wWidth &nbsp; ;<br />&nbsp; &nbsp;WORD wHeight &nbsp;;<br />&nbsp; &nbsp;WORD wRow ;<br />&nbsp; &nbsp;WORD wCol ;<br />&nbsp; &nbsp;BITMAP bm;<br />&nbsp; &nbsp;LONG lBkColorBMP, lBkColor = GetBkColor( hDC ), lBkColorOld; <br />&nbsp; &nbsp;BOOL bFlag = FALSE ;<br /><br />&nbsp; &nbsp;RECT rRect ;<br />&nbsp; &nbsp;HDC hDC2 ; &nbsp; <br />&nbsp; &nbsp;HBITMAP hBmp2, hBmpOld ;<br /><br /><br />&nbsp; &nbsp;if ( (nStyle == 0 || nStyle == 3 || nStyle == 5 ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == 6 || nStyle == 9 || nStyle == 10) && bSelect )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; rct->bottom-- ;<br />&nbsp; &nbsp; &nbsp; bFlag = TRUE ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;///////////////////////////////<br />&nbsp; &nbsp;// Creo un buffer auxiliar ////<br />&nbsp; &nbsp;rRect.top &nbsp; &nbsp;= 0 ;<br />&nbsp; &nbsp;rRect.left &nbsp; = 0 ;<br />&nbsp; &nbsp;rRect.right &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;rRect.bottom = rct->bottom - rct->top ; &nbsp;<br /><br />&nbsp; &nbsp;hDC2 &nbsp; &nbsp;= CreateCompatibleDC( hDC );<br />&nbsp; &nbsp;hBmp2 &nbsp; = CreateCompatibleBitmap( hDC, rRect.right, rRect.bottom );<br />&nbsp; &nbsp;hBmpOld = SelectObject( hDC2, hBmp2 );<br />&nbsp; &nbsp;BitBlt( hDC2, 0, 0, rRect.right, rRect.bottom, hDC, 0, 0, SRCCOPY ); <br />&nbsp; &nbsp;///////////////////////////////<br /><br />&nbsp; <br />&nbsp; &nbsp;wWidth &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;wHeight = rct->bottom - rct->top ;<br />&nbsp; &nbsp;GetObject( hBmp, sizeof( BITMAP ), ( LPSTR ) &bm );<br /><br />&nbsp; &nbsp;if ( wHeight > bm.bmHeight )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wRow = 0 + ( ( wHeight - bm.bmHeight ) / 2 ) ;<br />&nbsp; &nbsp; &nbsp; wHeight = bm.bmHeight ;<br />&nbsp; &nbsp;} else<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wRow = 0 ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;if ( wWidth > bm.bmWidth )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wCol = 0 + ( ( wWidth - bm.bmWidth ) / 2 ) ;<br />&nbsp; &nbsp; &nbsp; wWidth = bm.bmWidth ;<br />&nbsp; &nbsp;} else<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wCol = 0 ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;rRect.bottom++;<br />&nbsp; &nbsp;lBkColorOld = SetBkColor( hDC2, lBkColor );<br />&nbsp; &nbsp;ExtTextOut( hDC2, 0, 0, ETO_OPAQUE, &rRect, "", 0, 0 );<br />&nbsp; &nbsp;rRect.bottom--;<br /><br />&nbsp; &nbsp;if ( hBmp > 0 )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; DrawBitmap( hDC2, hBmp, wRow, wCol, wWidth, wHeight, 0 ) ;<br />&nbsp; &nbsp; &nbsp; if( ( lBkColorBMP = GetPixel( hDC2, wCol, wRow ) ) != lBkColor)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MaskRegion( hDC2, &rRect, lBkColorBMP, lBkColor );<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;///////////////////////////////<br />&nbsp; &nbsp;// Pego el buffer auxiliar ////<br />&nbsp; &nbsp;BitBlt( hDC, rct->left, rct->top, rRect.right, rRect.bottom, hDC2, 0, 0, SRCCOPY ); &nbsp;<br />&nbsp; &nbsp;SetBkColor( hDC2, lBkColorOld );<br />&nbsp; &nbsp;SelectObject( hDC2, hBmpOld );<br />&nbsp; &nbsp;DeleteObject( hBmp2 );<br />&nbsp; &nbsp;DeleteObject( hBmpOld );<br />&nbsp; &nbsp;DeleteDC( hDC2 );<br />&nbsp; &nbsp;///////////////////////////////<br /><br />&nbsp; &nbsp;if (bFlag)<br />&nbsp; &nbsp; &nbsp; rct->bottom++ ;<br /><br />}<br /><br /><br />************/</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_FWDISPBEGIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER FWDISPBEGI<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />&nbsp; HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>; &nbsp; <br />&nbsp; HDC hDC2 ; &nbsp; <br />&nbsp; HBITMAP hBmp, hBmpOld ;<br />&nbsp; RECT rct;<br />&nbsp; <br />&nbsp; GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <br />&nbsp; hDC2 &nbsp; &nbsp;= CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />&nbsp; hBmp &nbsp; &nbsp;= CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; hBmpOld = SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmp <span style="color: #000000;">&#41;</span>;<br />&nbsp; BitBlt<span style="color: #000000;">&#40;</span> hDC2, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span>, rct.bottom, hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>; <br />&nbsp; <br />&nbsp; _reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; _stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hWnd &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; _stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC &nbsp; &nbsp;, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; _stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC2 &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; _stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmp &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; _stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmpOld, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_FWDISPEND<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER FWDISPEND<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// { hWnd, hDC, hDC2, hBmp, hBmpOld }</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT rct;<br />&nbsp; <br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top, <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; <br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> ;<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:1w82ip7r]
Compilación para 12.05
Alfredo, Con estos cambios compila bien. Ahora pruébalo para ver si funciona o da algun error. c:\bcc582\bin\bcc32 -c -Ic:\xharbour\include -D__HARBOUR__ wbrwline.c Aqui tienes el OBJ: [url:38ci72q9]http&#58;//min&#46;us/m6LdheRaI[/url:38ci72q9] No me llegó tu email con tscan wbrwline.c [code=fw:38ci72q9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />void * __conArrayGet<span style="color: #000000;">&#40;</span> void *, void *, ... <span style="color: #000000;">&#41;</span>;<br />long __conGetNL<span style="color: #000000;">&#40;</span> void *, long * <span style="color: #000000;">&#41;</span>;<br />long __conRelease<span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br /><br /><span style="color: #00D7D7;">#define</span> _HB_API_INTERNAL_<br /><br /><span style="color: #00D7D7;">#define</span> HB_OS_WIN<br /><span style="color: #00D7D7;">#define</span> HB_OS_WIN_USED<br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <hbapiitm.h><br /><span style="color: #00D7D7;">#include</span> <hbstack.h><br /><span style="color: #00D7D7;">#include</span> <hbvm.h><br /><span style="color: #B900B9;">// #include <extend.api></span><br /><span style="color: #00D7D7;">#define</span> MoveTo<span style="color: #000000;">&#40;</span> hDC, x, y <span style="color: #000000;">&#41;</span> MoveToEx<span style="color: #000000;">&#40;</span> hDC, x, y, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span> hb_vmPushSymbol<span style="color: #000000;">&#40;</span> &hb_symEval <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> _xPushM  hb_vmPush<br /><span style="color: #00D7D7;">#define</span> _PutLN   hb_vmPushLong<br /><span style="color: #00D7D7;">#define</span> _xEval   hb_vmDo<br /><span style="color: #00D7D7;">#define</span> _cEval0  hb_vmEvalBlock<br /><span style="color: #00D7D7;">#define</span> _Get_Sym hb_dynsymFindName<br /><span style="color: #00D7D7;">#define</span> PCLIPVAR PHB_ITEM<br /><span style="color: #00D7D7;">#define</span> far<br /><span style="color: #00D7D7;">#define</span> WORD unsigned short<br /><br /><span style="color: #00D7D7;">#define</span> HA_LEFT    <span style="color: #000000;">0</span>  <span style="color: #B900B9;">// by CeSoTech Alineaciones Horizontales y Verticales</span><br /><span style="color: #00D7D7;">#define</span> HA_RIGHT   <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HA_CENTER  <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> VA_TOP     <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> VA_BOTTOM  <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> VA_CENTER  <span style="color: #000000;">32</span><br /><br /><br /><span style="color: #00C800;">static</span> far BOOL bAdjLastCol  ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bAdjBrowse   ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawHeaders ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawFooters ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wHeaderHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wFooterHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wLineHeight  ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> far BOOL bWorking;<br /><br />WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />                         WORD wAlign, int iLen, HFONT hFont,<br />                         BOOL bHeadFoot <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bFocused <span style="color: #000000;">&#41;</span> ;<br /><br />void MaskRegion<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, COLORREF cTrColor,<br />                 COLORREF cBackColor <span style="color: #000000;">&#41;</span>;<br /><br />FrameDot<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br /><br />extern void WndDrawBox<span style="color: #000000;">&#40;</span> HDC, LPRECT, HPEN, HPEN <span style="color: #000000;">&#41;</span>;<br />extern void DrawBitmap<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth,<br />                        WORD wHeight, DWORD dwRaster <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />                               PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />                               HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />                               PCLIPVAR pAJustify, WORD wPressed,<br />                               BOOL bHeader, WORD nStyle,<br />                               WORD nFocus, BOOL bFocused,<br />                               PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />                               WORD wRowPos, WORD nHeightCtrl,<br />                               LONG nClrLine, BOOL bFooter,<br />                               BOOL bSelect, PCLIPVAR pFont,<br />                               BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span> ;<br /><br />void DrawMasked<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow <span style="color: #000000;">&#41;</span>;<br />                  <span style="color: #B900B9;">// LOW    HIGH</span><br />extern int _dvtoi<span style="color: #000000;">&#40;</span> DWORD, DWORD <span style="color: #000000;">&#41;</span>;<br />void MsgStr<span style="color: #000000;">&#40;</span> long l <span style="color: #000000;">&#41;</span>;<br />LPSTR Str<span style="color: #000000;">&#40;</span> WORD w <span style="color: #000000;">&#41;</span>;<br /><br />#ifndef __FLAT__<br />   <span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #00C800;">static</span> far PCLIPSYMBOL pSkip = <span style="color: #000000;">0</span>;<br />#else<br />   <span style="color: #00C800;">static</span> long near GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #B900B9;">// static far void * pSkip = 0;</span><br />   PHB_DYNS pSkip = <span style="color: #00C800;">NULL</span>;<br />#endif<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void MaskRegion<span style="color: #000000;">&#40;</span> HDC hdc, RECT * rct, COLORREF cTransparentColor,<br />                        COLORREF cBackgroundColor <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />   HDC        hdcTemp, hdcObject, hdcBack, hdcMem;<br />   POINT      ptSize;<br />   COLORREF   cColor;<br />   HBITMAP    bmAndObject, bmAndBack, bmBackOld, bmObjectOld,<br />              bmAndTemp, bmTempOld, bmAndMem, bmMemOld;<br />   HBRUSH     hBrush, hBrOld;<br /><br />   ptSize.x = rct->right - rct->left + <span style="color: #000000;">1</span>;<br />   ptSize.y = rct->bottom - rct->top + <span style="color: #000000;">1</span>;<br /><br />   hBrush      = CreateSolidBrush<span style="color: #000000;">&#40;</span>cBackgroundColor<span style="color: #000000;">&#41;</span>;<br /><br />   hdcTemp     = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcObject   = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcBack     = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcMem      = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br /><br />   bmAndTemp   = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />   bmAndMem    = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />   bmAndObject = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br />   bmAndBack   = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br /><br />   bmTempOld   = SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmAndTemp<span style="color: #000000;">&#41;</span>;<br />   bmMemOld    = SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmAndMem<span style="color: #000000;">&#41;</span>;<br />   bmBackOld   = SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmAndBack<span style="color: #000000;">&#41;</span>;<br />   bmObjectOld = SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmAndObject<span style="color: #000000;">&#41;</span>;<br /><br />   hBrOld      = SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrush<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdc, rct->left, rct->top, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   SetMapMode<span style="color: #000000;">&#40;</span>hdcTemp, GetMapMode<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><br />   cColor = SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cTransparentColor<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cColor<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, NOTSRCCOPY<span style="color: #000000;">&#41;</span>;<br />   PatBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>, ptSize.x, ptSize.y, PATCOPY<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCPAINT<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdc, rct->left, rct->top, ptSize.x, ptSize.y, hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmTempOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmMemOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmBackOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmObjectOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcMem<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcBack<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcObject<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcTemp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifdef __CLIPPER__<br /><span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    int iRet = <span style="color: #000000;">0</span>;<br />    _cAt<span style="color: #000000;">&#40;</span> Array, wIndex, <span style="color: #000000;">-1</span>, ++_tos <span style="color: #000000;">&#41;</span>;<br /><br />    <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & HB_IT_NUMERIC <span style="color: #000000;">&#41;</span><br />        iRet = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br /><br />    <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUM_FLOAT <span style="color: #000000;">&#41;</span><br />        iRet = _dvtoi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer1, <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer2 <span style="color: #000000;">&#41;</span>;<br /><br />    --_tos;<br /><br />    <span style="color: #00C800;">return</span> iRet;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __XPP__<br /><span style="color: #00C800;">static</span> long GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   void * chItem = <span style="color: #000000;">0</span>;<br />   long l;<br /><br />   __conArrayGet<span style="color: #000000;">&#40;</span> Array, chItem, wIndex, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   __conGetNL<span style="color: #000000;">&#40;</span> chItem, &l <span style="color: #000000;">&#41;</span>;<br />   __conRelease<span style="color: #000000;">&#40;</span> chItem <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> l;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __HARBOUR__<br />   <span style="color: #00D7D7;">#define</span> GetInt<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span>  hb_arrayGetNL<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------=</span><br />                                                        <span style="color: #B900B9;">// ÚÄ1ra Col.a Pintar</span><br />                                                        <span style="color: #B900B9;">// ³</span><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />                               PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />                               HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />                               PCLIPVAR pAJustify, WORD wPressed,<br />                               BOOL bHeader, WORD nStyle,<br />                               WORD wFocus, BOOL bFocused,<br />                               PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />                               WORD wRowPos, WORD nHeightCtrl,<br />                               LONG nClrLine, BOOL bFooter,<br />                               BOOL bSelect, PCLIPVAR pFont,<br />                               BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   RECT box, wholebox, rctadj;<br />   int iMaxRight = rct->right;<br /><br />   WORD wLenJust = <span style="color: #000000;">0</span> ;<br />   #ifndef __HARBOUR__<br />   WORD wLen     = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />   CLV_WORD lJustify;<br />   #else<br />   WORD wLen     = hb_arrayLen<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />   HB_ITEM uElem;<br />   #endif<br />   WORD wType, wcLen;<br />   LONG lValue;<br />   char * cValue;<br />   HPEN hOldPen, hPen;<br />   BITMAP bmp;<br />   WORD wRow, wCol;<br />   LONG lColor ;<br />   HBRUSH hBrush;<br />   LONG lTextColorOld = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />   LONG lBkColorOld   = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />   PCLIPVAR pEvalOld ;<br />   HFONT hFont ; <span style="color: #B900B9;">// CeSoTech</span><br />   WORD wAlign ; <span style="color: #B900B9;">// CeSoTech</span><br /><br />   <span style="color: #B900B9;">// CeSoTech</span><br />   LONG nClrLineC = <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">2</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">8</span> ||<br />                      nStyle == <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span> ;<br /><br />   <span style="color: #B900B9;">// CeSoTech</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nClrLine >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// Desde Clipper manda color especifico linea</span><br />      nClrLineC = nClrLine ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span><br />      bHeader = <span style="color: #00C800;">FALSE</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span><br />      bHeader = <span style="color: #00C800;">TRUE</span> ; <span style="color: #B900B9;">//-> Para que lo pinte con similar aspecto</span><br /><br />   <span style="color: #B900B9;">//CeSoTech</span><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span>bHeader<span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />                        nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      rct->top--       ;<br /><br />   wholebox.top    = rct->top<span style="color: #000000;">+1</span>;<br />   wholebox.<span style="color: #0000ff;">left</span>   = rct->left;<br />   wholebox.bottom = rct->bottom;<br />   wholebox.<span style="color: #0000ff;">right</span>  = rct->right;<br /><br />   rct->right  = <span style="color: #000000;">0</span>;<br /><br />   box.top    = rct->top ;<br />   box.bottom = rct->bottom - <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wIndex | wIndex > wLen <span style="color: #000000;">&#41;</span><br />       wIndex = <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span><br />      #ifndef __HARBOUR__<br />         wLenJust = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />      #else<br />         wLenJust = hb_arrayLen<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">//         uElem.type = HB_IT_NIL;</span><br />      #endif<br /><br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wLen <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br /><br />        rct->left   = rct->right;<br /><br />        rct->right  = <span style="color: #000000;">&#40;</span> wIndex == wLen ? iMaxRight<br />                                      : <span style="color: #000000;">rct</span>->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />        <span style="color: #B900B9;">// CeSoTech // Cuando estoy estoy en la ultima celda, NO pintar hasta</span><br />                    <span style="color: #B900B9;">// el final si no existe ajuste de ultima columna.</span><br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />           rct->right  = rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> +<span style="color: #000000;">&#40;</span>bHeader ? <span style="color: #000000;">1</span>: <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> ;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse <span style="color: #000000;">&#41;</span><br />              wholebox.<span style="color: #0000ff;">right</span> = rct->right ; <span style="color: #B900B9;">// Tambien ajusto el borde focus</span><br /><br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br />        wAlign = HA_LEFT | VA_CENTER ;  <span style="color: #B900B9;">// Alineacion por defecto</span><br />        wcLen = <span style="color: #000000;">0</span>;<br />        <span style="color: #B900B9;">///////// INICIO Toma de datos celda !!!</span><br /><br />        #ifndef __HARBOUR__<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />             _cAt<span style="color: #000000;">&#40;</span> pAJustify, wIndex, 0xFFFF, <span style="color: #000000;">&#40;</span> PCLIPVAR <span style="color: #000000;">&#41;</span> &lJustify <span style="color: #000000;">&#41;</span>;<br />             wAlign = lJustify.wWord ;<br />           <span style="color: #000000;">&#125;</span><br />           _cAt<span style="color: #000000;">&#40;</span> pAtext, wIndex, 0xFFFF, ++_tos <span style="color: #000000;">&#41;</span>;<br />           wType = _tos->wType;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & HB_IT_NUMERIC <span style="color: #000000;">&#41;</span><br />              lValue = <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & HB_IT_STRING <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              cValue = _VSTR<span style="color: #000000;">&#40;</span> _tos <span style="color: #000000;">&#41;</span>;<br />              wcLen = _tos->w2;<br />           <span style="color: #000000;">&#125;</span><br />        #else<br /><br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span>   <br />              uElem.type = HB_IT_NIL; <br />              hb_arrayGet<span style="color: #000000;">&#40;</span> pAJustify, wIndex, &uElem <span style="color: #000000;">&#41;</span>;<br />              <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> hb_itemType<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span> & HB_IT_LOGICAL <span style="color: #000000;">&#41;</span> && hb_itemGetL<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />                 wAlign = HA_RIGHT | VA_CENTER ;<br />              <span style="color: #00C800;">else</span><br />                 wAlign = hb_itemGetNL<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>;<br /><br />              hb_itemClear<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>; <br />           <span style="color: #000000;">&#125;</span>    <br />           <br /><br />           uElem.type = HB_IT_NIL; <br />           hb_arrayGet<span style="color: #000000;">&#40;</span> pAtext, wIndex, &uElem <span style="color: #000000;">&#41;</span>;<br />           wType = hb_itemType<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & HB_IT_NUMERIC <span style="color: #000000;">&#41;</span><br />              lValue = hb_itemGetNL<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & HB_IT_STRING <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br /><span style="color: #B900B9;">//              cValue = hb_itemGetC( &uElem );</span><br />                cValue = hb_itemGetCPtr<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>;<br />                wcLen = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #000000;">&#125;</span><br />           hb_itemClear<span style="color: #000000;">&#40;</span> &uElem <span style="color: #000000;">&#41;</span>; <br /> <br />        #endif<br />        <span style="color: #B900B9;">///////// FIN Toma de datos celda !!!</span><br /><br /><br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wFocus > <span style="color: #000000;">0</span> && wIndex != wFocus <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />           #ifndef __HARBOUR__<br />              _tos--;<br />           #endif<br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />               wIndex = wLen + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span><br />              ++wIndex;<br />           <span style="color: #00C800;">continue</span>;<br />        <span style="color: #000000;">&#125;</span><br />    <br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bTree ||<br />            <span style="color: #000000;">&#40;</span>GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Si NO es columna oculta (x Freeze)</span><br />        <span style="color: #000000;">&#123;</span>                                     <span style="color: #B900B9;">//(Es lo mismo no hacer esto,</span><br />                                              <span style="color: #B900B9;">// pero es para evitar hacer trabajar</span><br />                                              <span style="color: #B900B9;">// al codigo sin sentido !!! )</span><br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wType & HB_IT_NUMERIC<span style="color: #000000;">&#41;</span> && bTree <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lValue <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  FillRect<span style="color: #000000;">&#40;</span> hDC, rct, hBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> GetPixel<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->top <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  DrawMasked<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct->top, rct->left <span style="color: #000000;">&#41;</span>;<br />                  DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />               <span style="color: #000000;">&#125;</span><br /><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span>  <span style="color: #B900B9;">// Si es HB_IT_NUMERICo Bmp no Tree, o , es HB_IT_STRING !!!!</span><br />           <span style="color: #000000;">&#123;</span><br /><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Bloque de Color Fondo Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & HB_IT_NUMERIC <span style="color: #000000;">&#41;</span><br />                    lBkColorOld = SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Bloque de Color Texto Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & HB_IT_NUMERIC <span style="color: #000000;">&#41;</span><br />                    lTextColorOld = SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br />               hFont = <span style="color: #000000;">0</span> ;<br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>      <span style="color: #B900B9;">// Bloque de Font Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & HB_IT_NUMERIC <span style="color: #000000;">&#41;</span><br />                     hFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/////// CeSoTech ///////</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top ++;<br /><br /><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wType & HB_IT_NUMERIC <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// Es un BitMap</span><br />               <span style="color: #000000;">&#123;</span><br />                  FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct, nStyle, bSelect <span style="color: #000000;">&#41;</span>;<br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">else</span>                    <span style="color: #B900B9;">// Es una Cadena</span><br />               <span style="color: #000000;">&#123;</span><br />                  FW_DrawText<span style="color: #000000;">&#40;</span> hDC, rct,<br />                               <span style="color: #000000;">&#40;</span> wType & HB_IT_STRING <span style="color: #000000;">&#41;</span> ? cValue : <span style="color: #ff0000;">""</span>,<br />                               wAlign, wcLen, hFont, bHeader <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/////// CeSoTech restauracion de colores //////</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lTextColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  SetTextColor<span style="color: #000000;">&#40;</span> hDC, lTextColorOld <span style="color: #000000;">&#41;</span> ;<br />                  lTextColorOld = <span style="color: #000000;">-1</span> ;<br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lBkColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  SetBkColor<span style="color: #000000;">&#40;</span> hDC, lBkColorOld <span style="color: #000000;">&#41;</span> ;<br />                  lBkColorOld = <span style="color: #000000;">-1</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/// CeSoTech ///</span><br />               <span style="color: #B900B9;">// Si hay modalidad ajustar el Browse y no hay ajuste de ultima</span><br />               <span style="color: #B900B9;">// columna, deber‚ pintar hasta el final hasta cubrir toda</span><br />               <span style="color: #B900B9;">// el area, hasta llegar a la derecha del control. (Col.Ficticia)</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bAdjBrowse && wIndex == wLen && !bAdjLastCol &&<br />                    rct->right <= iMaxRight <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  rctadj.top    = rct->top;<br />                  rctadj.<span style="color: #0000ff;">left</span>   = rct->right ;<br />                  rctadj.bottom = rct->bottom;<br />                  rctadj.<span style="color: #0000ff;">right</span>  = wholebox.<span style="color: #0000ff;">right</span>  ;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />                     rctadj.top--;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wFocus == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Si No es CellStyle (Pinto hasta final)</span><br />                     ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, &rctadj, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bHeader && nStyle==<span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Pinto Bordes Header Falso</span><br />                   <span style="color: #000000;">&#123;</span><br />                      rctadj.<span style="color: #0000ff;">right</span>  = wholebox.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>  ;<br />                      rctadj.bottom = rctadj.bottom - <span style="color: #000000;">2</span> ;<br />                      WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;   <br />                      rctadj.bottom++  ;<br />                      rctadj.<span style="color: #0000ff;">right</span>++  ;<br />                      WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;  <br /><br />                      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Si es Footer (Linea Negra de Arriba Foot)</span><br />                      <span style="color: #000000;">&#123;</span><br />                        hPen = GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, rctadj.left<span style="color: #000000;">-1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, rctadj.right<span style="color: #000000;">+1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                      <span style="color: #000000;">&#125;</span><br /><br />                  <span style="color: #000000;">&#125;</span><br /><br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #B900B9;">/// CeSoTech Fin ///</span><br /><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top --;<br />           <span style="color: #000000;">&#125;</span><br /><br />           box.<span style="color: #0000ff;">left</span>   = rct->left;<br /><br />           box.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex < wLen && rct->right <= iMaxRight ?<br />                                                        rct->right - <span style="color: #000000;">1</span> :<br />                                                        iMaxRight - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />           <span style="color: #B900B9;">// CeSoTech // El Borde derecho de Box de la ultima columna,</span><br />                       <span style="color: #B900B9;">// no estirarlo cuando no exista ajuste de ultima columna</span><br />                       <span style="color: #B900B9;">// PERO cuando nLineStyle (nStyle) es 7/8 (Lineas Horiz)</span><br />                       <span style="color: #B900B9;">// queda anti-estetico cortar los renglones, cuando no hay</span><br />                       <span style="color: #B900B9;">// ajuste ult.col. y hay ajuste de browse. Por ello</span><br />                       <span style="color: #B900B9;">// se verificara que para cortar el borde no se de esta</span><br />                       <span style="color: #B900B9;">// condicion.</span><br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>! <span style="color: #000000;">&#40;</span>!bHeader && <span style="color: #000000;">&#40;</span>nStyle==<span style="color: #000000;">7</span> || nStyle==<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> && !bAdjLastCol && bAdjBrowse<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />               box.<span style="color: #0000ff;">right</span>  = rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> ;<br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bTree <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wPressed && <span style="color: #000000;">&#40;</span> wIndex == wPressed <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />              <span style="color: #000000;">&#123;</span><br />                WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hGrayPen, hWhitePen <span style="color: #000000;">&#41;</span>;<br />              <span style="color: #000000;">&#125;</span><br />              <span style="color: #00C800;">else</span><br /><span style="color: #B900B9;">/////////////  if(!bHeader)</span><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!bHeader || <span style="color: #000000;">&#40;</span>bHeader && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nStyle <span style="color: #000000;">&#41;</span><br />                  <span style="color: #000000;">&#123;</span><br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">0</span>:<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span>:<br />                    <span style="color: #B900B9;">//  hOldPen = SelectObject( hDC, GetStockObject( BLACK_PEN ) );</span><br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span>:<br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span>:<br />                        WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">4</span>:<br />                        box.bottom ++;<br />                        box.<span style="color: #0000ff;">right</span> ++;<br />                        FrameDot<span style="color: #000000;">&#40;</span> hDC, &box <span style="color: #000000;">&#41;</span>;<br />                        box.bottom --;<br />                        box.<span style="color: #0000ff;">right</span> --;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">7</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">8</span>:<br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">5</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">6</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">9</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">10</span>:<br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC<span style="color: #000000;">&#41;</span>;<br />                        hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>box.left><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />                        <span style="color: #000000;">&#123;</span><br />                           MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                           LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #000000;">&#125;</span><br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br /><br />                        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawFooters && nStyle >= <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />                        <span style="color: #000000;">&#123;</span><br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />                                     nHeightCtrl - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />                        <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />                          LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />                                     nStyle < <span style="color: #000000;">9</span> ? box.bottom<span style="color: #000000;">+1</span> : <span style="color: #000000;">nHeightCtrl</span> <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #000000;">&#125;</span><br /><br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                  <span style="color: #000000;">&#125;</span><br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">else</span>  <span style="color: #B900B9;">// Box para Headers !!!</span><br />               <span style="color: #000000;">&#123;</span><br />                  box.<span style="color: #0000ff;">left</span> ++;<br /><br />                  <span style="color: #B900B9;">// CeSoTech</span><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Linea negra sobre el Footer</span><br />                  <span style="color: #000000;">&#123;</span><br />                    hPen = GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />                    hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />                    MoveTo<span style="color: #000000;">&#40;</span> hDC, box.left<span style="color: #000000;">-1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                    LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                    SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                  <span style="color: #000000;">&#125;</span><br /><br />                  box.right--  ;<br />                  box.bottom-- ;<br />                  WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />                  box.bottom++  ;<br />                  box.<span style="color: #0000ff;">right</span>++  ;<br />                  WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />                  box.<span style="color: #0000ff;">left</span> --;<br /><br />               <span style="color: #000000;">&#125;</span><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> wType & HB_IT_NUMERIC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />              <span style="color: #000000;">&#123;</span><br />                 box.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">16</span>;<br />              <span style="color: #000000;">&#125;</span><br />           <span style="color: #000000;">&#125;</span><br /><br />          <span style="color: #B900B9;">// CeSoTech if( bFocused && wFocus > 0 && wIndex == wFocus )</span><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDrawFocusRect && bFocused && wFocus > <span style="color: #000000;">0</span> &&<br />               wIndex == wFocus && nStyle != <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />            rct->left++;<br />            rct->top++;<br />            DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, rct <span style="color: #000000;">&#41;</span>;<br />            rct->left--;<br />            rct->top--;<br />           <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #000000;">&#125;</span><br /><br />        #ifndef __HARBOUR__<br />           _tos--;<br />        #endif<br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            wIndex = wLen + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span><br />           ++wIndex;<br /><br /><br />   <span style="color: #000000;">&#125;</span><br /><br /><br />   <br /><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bDrawFocusRect && !bTree && bFocused && wFocus==<span style="color: #000000;">0</span> && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CeSoTech</span><br />      DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &wholebox <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWSELBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBRWSELBOX<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, nRow, nFirstCol, nCurCol,;</span><br />                             <span style="color: #B900B9;">//   lFocus, aSizes, hFont)</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wCol        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bFocused    = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR pAsizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   TEXTMETRIC tm;<br />   RECT rct;<br />   HFONT hOldFont;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// By CeSoTech</span><br />      wRow-- ;<br /><br />   rct.top    = tm.tmHeight * wRow ;<br />   rct.bottom = tm.tmHeight * <span style="color: #000000;">&#40;</span> wRow + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br />   rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex < wCol <span style="color: #000000;">&#41;</span><br />      rct.<span style="color: #0000ff;">left</span>  += GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex++ <span style="color: #000000;">&#41;</span>;<br /><br />   rct.<span style="color: #0000ff;">right</span>  =  rct.<span style="color: #0000ff;">left</span>+GetInt<span style="color: #000000;">&#40;</span> pAsizes, wCol <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br /><br />   MaskRegion<span style="color: #000000;">&#40;</span> hDC, &rct, GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>, GetSysColor<span style="color: #000000;">&#40;</span>COLOR_ACTIVECAPTION<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bFocused <span style="color: #000000;">&#41;</span><br />      DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBRWLINE<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, nRow, aText, aSizes, nFirstItem, ;</span><br />                           <span style="color: #B900B9;">// nClrFore, nClrBack, hFont, lTree, aJustify, nPressed,</span><br />                           <span style="color: #B900B9;">// nStyle, nColAct, lFocused )</span><br />                           <span style="color: #B900B9;">// bTextColor, bBkColor, nClrLine, lFooter, lSelect,</span><br />                           <span style="color: #B900B9;">// bFont, lDrawFocusRect ) // New's by CesoTech</span><br />#endif<br /><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   WORD wHeight;<br />   RECT rct, box;<br />   PCLIPVAR bClrFore, bClrBack;<br />   COLORREF clrFore = <span style="color: #000000;">0</span>;<br />   COLORREF clrBack = <span style="color: #000000;">0</span>;<br />   HPEN hGrayPen    ;<br />   HPEN hWhitePen   ;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   BOOL bTree      = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bFooter = ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> ;  <span style="color: #B900B9;">// CeSoTech</span><br /><br />   WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   hGrayPen    = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />   hWhitePen   = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   nHeightCtrl = rct.bottom-rct.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />   SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Es una Cabecera</span><br />      wHeight = wHeaderHeight + <span style="color: #000000;">1</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bFooter <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Es una Cabecera</span><br />      <span style="color: #000000;">&#123;</span><br />         rct.top    = <span style="color: #000000;">0</span> ;<br />         rct.bottom = wHeaderHeight + <span style="color: #000000;">1</span> ;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />      <span style="color: #000000;">&#123;</span><br />        rct.top    = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  ;<br />        rct.bottom = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * wRow<span style="color: #000000;">&#41;</span>  ;<br />      <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />      rct.top    = rct.bottom - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br /><br />   PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<br />                 hWhitePen, hGrayPen, bTree,<br />                 ISARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>,<br />                 <span style="color: #000000;">&#40;</span>wRow == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                 hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span>,<br />                 ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                 ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                 bFooter,                                <span style="color: #B900B9;">// CeSoTech</span><br />                 ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span>,  <span style="color: #B900B9;">// CeSoTech</span><br />                 ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span>;<span style="color: #B900B9;">// CeSoTech</span><br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />       ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storni<span style="color: #000000;">&#40;</span> rct.top,    <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_AWBRWROWDIM<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER AWBRWROWDIM<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd      = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow      = <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont    = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC  hDC       = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   TEXTMETRIC tm;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />   tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow++, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseX<span style="color: #000000;">&#40;</span> WORD wX <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span> * wX / LOWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseY<span style="color: #000000;">&#40;</span> WORD wY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">return</span> <span style="color: #000000;">8</span> * wY / HIWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwRect<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRow, aSizes, nFirstItem, nCol,</span><br />                           <span style="color: #B900B9;">//   nLineStyle, nWidthVScroll )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />   HDC hDC          = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wHeight ;<br />   RECT rct;<br />   WORD nStyle = ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ? hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><br />   #ifdef __CLIPPER__<br />      PCLIPVAR paSizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />      WORD wLen        = _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />   #else<br />      #ifdef __HARBOUR__<br /><span style="color: #B900B9;">//       void * paSizes = ( void * ) hb_param( 3, HB_IT_ARRAY );</span><br />         WORD wLen      = hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />      #else<br />         void * paSizes = <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />         WORD wLen      = _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />      #endif<br />   #endif<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wCol        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wMaxRight;<br />   LONG l;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wCol || wCol > wLen <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">return</span>;<br /><br /><br />   GetWindowRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   wMaxRight = rct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   rct.top    = rct.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />                <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br /><br />   rct.bottom = rct.top + wHeight;<br />   rct.<span style="color: #0000ff;">right</span>  = rct.<span style="color: #0000ff;">left</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />        rct.<span style="color: #0000ff;">left</span>   = rct.<span style="color: #0000ff;">right</span>;<br /><br />        #ifndef __FLAT__<br /><br />           rct.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />                                         : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + GetInt<span style="color: #000000;">&#40;</span> paSizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />        #else<br />           #ifndef __HARBOUR__<br />              <span style="color: #00D7D7;">#define</span> hb_parnl<span style="color: #000000;">&#40;</span>x,y<span style="color: #000000;">&#41;</span> PARNL<span style="color: #000000;">&#40;</span>x,params,y<span style="color: #000000;">&#41;</span>;<br />           #endif<br />           l = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, wIndex <span style="color: #000000;">&#41;</span>;<br /><br />           rct.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />                                         : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + l <span style="color: #000000;">&#41;</span>;<br />        #endif<br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> >= wMaxRight <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            wIndex = wCol + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />            rct.<span style="color: #0000ff;">right</span> = wMaxRight;<br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span><br />            wIndex++;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />   #ifdef __XPP__<br />      <span style="color: #00D7D7;">#define</span> hb_storni<span style="color: #000000;">&#40;</span> x, y, z <span style="color: #000000;">&#41;</span> STORNI<span style="color: #000000;">&#40;</span> x, params, y, z <span style="color: #000000;">&#41;</span><br />   #endif<br /><br /><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />      rct.top-- ;  <span style="color: #B900B9;">// Las coord.de edicion deberan ser mas arriba tambien !!!</span><br /><br /><br />   hb_storni<span style="color: #000000;">&#40;</span> rct.top,    <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storni<span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">left</span>,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wMaxRight <= rct.<span style="color: #0000ff;">right</span> <span style="color: #000000;">&#41;</span> ?<br />              wMaxRight - hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">right</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWPANE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBRWPANE<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, Self, bLine, aSizes, nFirstItem,</span><br />                           <span style="color: #B900B9;">//   nClrFore, nClrBack, hFont, aJustify, nStyle</span><br />                           <span style="color: #B900B9;">//   lCellStyle, lFocused ) -> nRowsSkipped</span><br />                           <span style="color: #B900B9;">//   bTextColor, bBkColor, nClrLine, nColorFondo, bFont ) // New's by CesoTech</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRows;<br />   WORD wLastBottom = <span style="color: #000000;">0</span>;<br />   WORD wRow        = <span style="color: #000000;">1</span>;<br />   WORD wSkipped    = <span style="color: #000000;">1</span>;<br />   PCLIPVAR <span style="color: #00C800;">Self</span>    = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR bLine   = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR pASizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   WORD wHeight ;<br />   RECT rct, box, <span style="color: #00C800;">client</span>;<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR bClrFore = <span style="color: #000000;">0</span>, bClrBack = <span style="color: #000000;">0</span>;<br />   COLORREF clrFore = <span style="color: #000000;">0</span>;<br />   COLORREF clrBack = <span style="color: #000000;">0</span>;<br />   HPEN hGrayPen    = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />   HPEN hWhitePen   = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br />   #ifndef __HARBOUR__<br />   BOOL bColBlock   = pASizes->wType & HB_II_BLOCK;<br />   #else<br />   BOOL bColBlock   = pASizes->type & HB_IT_BLOCK;<br />   HB_ITEM aLine;   <br />   #endif<br />   PCLIPVAR pAJustify = ISARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>: <span style="color: #000000;">0</span>;<br />   WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br />   WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #00C800;">else</span><br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! pSkip <span style="color: #000000;">&#41;</span><br />       pSkip = _Get_Sym<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SKIP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #B900B9;">/////////////////////////</span><br />   <span style="color: #B900B9;">// Borremos el Area de la derecha no coubierta</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse && !bAdjLastCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />       GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />       SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />       <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> wIndex=wIndex ; wIndex <= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>; wIndex++ <span style="color: #000000;">&#41;</span><br />       <span style="color: #000000;">&#123;</span><br />            rct.<span style="color: #0000ff;">left</span> += hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, wIndex <span style="color: #000000;">&#41;</span> ;<br />       <span style="color: #000000;">&#125;</span><br /><br />       <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">7</span> || nStyle == <span style="color: #000000;">8</span> || nStyle == <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />          rct.<span style="color: #0000ff;">left</span>++;<br /><br />       ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />                   &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />       wIndex = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />       GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">/////////////////////////</span><br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &client <span style="color: #000000;">&#41;</span>;<br /><br />   nHeightCtrl = <span style="color: #00C800;">client</span>.bottom-<span style="color: #00C800;">client</span>.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   wRows = WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bClrFore <span style="color: #000000;">&#41;</span><br />      SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />      SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wRow <= wRows && wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      rct.top    = <span style="color: #00C800;">client</span>.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />                   <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />      rct.bottom = rct.top + wHeight;<br />      rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br />      rct.<span style="color: #0000ff;">right</span>  = <span style="color: #00C800;">client</span>.<span style="color: #0000ff;">right</span>;<br /><br />      #ifndef __HARBOUR__<br /><br />         _cEval0<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span>;<br />         _xPushM<span style="color: #000000;">&#40;</span> _eval <span style="color: #000000;">&#41;</span>;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />            SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />            SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bColBlock <span style="color: #000000;">&#41;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span>;<br /><br />         PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, _tos,<br />                       <span style="color: #000000;">&#40;</span> bColBlock ? _eval : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />                       hWhitePen, hGrayPen,<br />                       bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />                       hb_parni <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                       ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                       ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>,                           <span style="color: #B900B9;">// CeSoTech</span><br />                       ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         _tos--;<br /><br />         _PutSym<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span>;<br />         _xPushM<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />         _PutQ<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />         _xSend<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />      #else<br />      <span style="color: #000000;">&#123;</span>                <br />         aLine.type = HB_IT_NIL;<br /><br />         <span style="color: #B900B9;">// Esta extension de xHarbour no se puede aplicar en Harbour</span><br />         <span style="color: #B900B9;">// hb_itemForwardValue( &aLine, hb_vmEvalBlock( bLine ) );</span><br />         <br />         hb_itemCopy<span style="color: #000000;">&#40;</span> &aLine, hb_vmEvalBlock<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />            SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />            SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, &aLine,<br />                       <span style="color: #000000;">&#40;</span> bColBlock ? hb_vmEvalBlock<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />                       hWhitePen, hGrayPen,<br />                       bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />                       hb_parnl <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                       ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                       ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>,                           <span style="color: #B900B9;">// CeSoTech</span><br />                       ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         hb_itemClear<span style="color: #000000;">&#40;</span> &aLine <span style="color: #000000;">&#41;</span>;<br /><br />         <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            hb_vmPushSymbol<span style="color: #000000;">&#40;</span> pSkip->pSymbol <span style="color: #000000;">&#41;</span>;<br />            hb_vmPush<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />            hb_vmPushLong<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />            hb_vmDo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br />      <span style="color: #000000;">&#125;</span><br /><br />      #endif<br /><br />      wLastBottom = rct.bottom ;<br />      wSkipped = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />          wRow++;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #B900B9;">////////////////////////</span><br />   <span style="color: #B900B9;">// Borremos el Area de Abajo no cubierta</span><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   rct.top = wLastBottom + <span style="color: #000000;">1</span> ;<br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wLastBottom == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// No Mostro Registros</span><br />      rct.top = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   <br />   rct.bottom-=  <span style="color: #000000;">1</span> + <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />       nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />      rct.top--;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bDrawFooters <span style="color: #000000;">&#41;</span><br />      rct.bottom++;<br /><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rct.top < rct.bottom <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />                  &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">////////////////////////</span><br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />       ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br /><br />   hb_retni<span style="color: #000000;">&#40;</span> wRow <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br />       <br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWSET<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwSet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( lAdjLastCol, lAdjBrowse, lDrawHeaders, lDrawFooters )</span><br />#endif<br /><span style="color: #000000;">&#123;</span>                                                                  <span style="color: #B900B9;">// CeSoTech</span><br />    bAdjLastCol  =  hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste o no de ultima columna al control.</span><br />    bAdjBrowse   =  hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste del Browse a la derecha</span><br />                                 <span style="color: #B900B9;">// cuando no existe ajuste de ultima columna.</span><br />    bDrawHeaders = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>  ; <span style="color: #B900B9;">// Si quiere visualizar Headers !!!</span><br />    bDrawFooters = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>  ; <span style="color: #B900B9;">// Si se quiere visualizar Footers !!!</span><br /><br />    wHeaderHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>  ;<br />    wFooterHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>  ;<br />    wLineHeight  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>  ;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Devuelve Nro. de Filas de Datos (No incluye Headers ni Footers)</span><br /><span style="color: #00C800;">static</span> WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   WORD wHeight;<br />   RECT rct;<br />   WORD wRows;<br />   BOOL bDCDestroy = <span style="color: #00C800;">FALSE</span>;<br />   HFONT hOldFont;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDCDestroy = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   wRows = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.bottom - rct.top - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> -<br />             <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> -<br />             <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> / wHeight ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDCDestroy <span style="color: #000000;">&#41;</span><br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> wRows;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWROWS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwRows<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC, hFont )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   hb_retni<span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />                      <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWSCRL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwScrl<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRows, hFont, nLineStyle, hDC )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd   = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   int wRows  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC hDC = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;  <span style="color: #B900B9;">//  = GetDC( hWnd );</span><br />   RECT rct;<br />   WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawHeaders <span style="color: #000000;">&#41;</span><br />      rct.top += wHeaderHeight<span style="color: #000000;">+1</span> ;<br /><br /><br />   <span style="color: #B900B9;">// Defino Bottom de Area del Scroll</span><br />   rct.bottom = <span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> +<br />                <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>  ;<br /><br /><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">// CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #B900B9;">// El Area Scroll deber  entonces no tomar el separator (forma parte de ant)</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />          nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      rct.bottom++;   <span style="color: #B900B9;">// Debe tomarse dado que no pinta celda 1 una mas arriba</span><br /><br />  <span style="color: #B900B9;">// ScrollWindowEx( hWnd, 0, -( (wLineHeight+1) * wRows ), 0, &rct, 0, 0, 0 );</span><br /><br />   ScrollDC<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, -<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> * wRows <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, &rct, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />  <span style="color: #B900B9;">//  ReleaseDC( hWnd, hDC );</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_WBRWHEIGHT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER WBrwHeight<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hFont )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd   = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC hDC     = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   TEXTMETRIC tm;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />   hb_retni<span style="color: #000000;">&#40;</span> tm.tmHeight <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />                         WORD wAlign, int iWidth,<br />                         HFONT hFont, BOOL bHeadFoot <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />   RECT rcttmp     ;<br />   int iHeight     ;<br />   UINT uiFlag     ;<br />   HFONT hOldFont  ;<br />   int iFactor     ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #B900B9;">/////////////////////////////</span><br />   <span style="color: #B900B9;">// Alineaciones Verticales //</span><br />   <span style="color: #B900B9;">/////////////////////////////</span><br />   iHeight = DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, DT_CALCRECT <span style="color: #000000;">&#41;</span> ;<br />   iFactor = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_TOP <span style="color: #000000;">&#41;</span><br />      iFactor = <span style="color: #000000;">0</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_BOTTOM <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      iFactor = <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight - <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br />   rcttmp.top    = rct->top + iFactor ;<br />   rcttmp.bottom = rct->bottom ;<br />   rcttmp.<span style="color: #0000ff;">left</span>   = rct->left   ;<br />   rcttmp.<span style="color: #0000ff;">right</span>  = rct->right  ;<br /><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rcttmp.top < rct->top <span style="color: #000000;">&#41;</span><br />     rcttmp.top = rct->top ;<br /><br />   <span style="color: #B900B9;">///////////////////////////////</span><br />   <span style="color: #B900B9;">// Alineaciones Horizontales //</span><br />   <span style="color: #B900B9;">///////////////////////////////</span><br />   uiFlag = DT_LEFT ;<br />   rcttmp.<span style="color: #0000ff;">left</span>+= <span style="color: #000000;">2</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_CENTER <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />     rcttmp.left-= <span style="color: #000000;">2</span> ;<br />     uiFlag = DT_CENTER ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_RIGHT <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />     rcttmp.left-= <span style="color: #000000;">2</span> ;<br />     uiFlag = DT_RIGHT ;<br />     rcttmp.right-= <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br />   ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ETO_OPAQUE | ETO_CLIPPED, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, uiFlag | DT_NOPREFIX <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   WORD wWidth   ;<br />   WORD wHeight  ;<br />   WORD wRow ;<br />   WORD wCol ;<br />   BITMAP bm;<br />   LONG lBkColorBMP, lBkColor = GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />   BOOL bFlag = <span style="color: #00C800;">FALSE</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">3</span> || nStyle == <span style="color: #000000;">5</span> ||<br />         nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> && bSelect <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      rct->bottom-- ;<br />      bFlag = <span style="color: #00C800;">TRUE</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   wWidth  = rct->right - rct->left ;<br />   wHeight = rct->bottom - rct->top ;<br />   GetObject<span style="color: #000000;">&#40;</span> hBmp, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wHeight > bm.bmHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      wRow = rct->top + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wHeight - bm.bmHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />      wHeight = bm.bmHeight ;<br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      wRow = rct->top ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wWidth > bm.bmWidth <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      wCol = rct->left + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wWidth - bm.bmWidth <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />      wWidth = bm.bmWidth ;<br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      wCol = rct->left ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   rct->bottom++;<br />   ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   rct->bottom--;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hBmp > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBmp, wRow, wCol, wWidth, wHeight, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> lBkColorBMP = GetPixel<span style="color: #000000;">&#40;</span> hDC, wCol, wRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != lBkColor<span style="color: #000000;">&#41;</span><br />           MaskRegion<span style="color: #000000;">&#40;</span> hDC, rct, lBkColorBMP, lBkColor <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bFlag<span style="color: #000000;">&#41;</span><br />      rct->bottom++ ;<br /><br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #B900B9;">/*******<br /><br /><br />static void FW_DrawBitmapCenter( HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect )<br />{<br />   WORD wWidth   ;<br />   WORD wHeight  ;<br />   WORD wRow ;<br />   WORD wCol ;<br />   BITMAP bm;<br />   LONG lBkColorBMP, lBkColor = GetBkColor( hDC ), lBkColorOld; <br />   BOOL bFlag = FALSE ;<br /><br />   RECT rRect ;<br />   HDC hDC2 ;   <br />   HBITMAP hBmp2, hBmpOld ;<br /><br /><br />   if ( (nStyle == 0 || nStyle == 3 || nStyle == 5 ||<br />          nStyle == 6 || nStyle == 9 || nStyle == 10) && bSelect )<br />   {<br />      rct->bottom-- ;<br />      bFlag = TRUE ;<br />   }<br /><br />   ///////////////////////////////<br />   // Creo un buffer auxiliar ////<br />   rRect.top    = 0 ;<br />   rRect.left   = 0 ;<br />   rRect.right  = rct->right - rct->left ;<br />   rRect.bottom = rct->bottom - rct->top ;  <br /><br />   hDC2    = CreateCompatibleDC( hDC );<br />   hBmp2   = CreateCompatibleBitmap( hDC, rRect.right, rRect.bottom );<br />   hBmpOld = SelectObject( hDC2, hBmp2 );<br />   BitBlt( hDC2, 0, 0, rRect.right, rRect.bottom, hDC, 0, 0, SRCCOPY ); <br />   ///////////////////////////////<br /><br />  <br />   wWidth  = rct->right - rct->left ;<br />   wHeight = rct->bottom - rct->top ;<br />   GetObject( hBmp, sizeof( BITMAP ), ( LPSTR ) &bm );<br /><br />   if ( wHeight > bm.bmHeight )<br />   {<br />      wRow = 0 + ( ( wHeight - bm.bmHeight ) / 2 ) ;<br />      wHeight = bm.bmHeight ;<br />   } else<br />   {<br />      wRow = 0 ;<br />   }<br /><br />   if ( wWidth > bm.bmWidth )<br />   {<br />      wCol = 0 + ( ( wWidth - bm.bmWidth ) / 2 ) ;<br />      wWidth = bm.bmWidth ;<br />   } else<br />   {<br />      wCol = 0 ;<br />   }<br /><br />   rRect.bottom++;<br />   lBkColorOld = SetBkColor( hDC2, lBkColor );<br />   ExtTextOut( hDC2, 0, 0, ETO_OPAQUE, &rRect, "", 0, 0 );<br />   rRect.bottom--;<br /><br />   if ( hBmp > 0 )<br />   {<br />      DrawBitmap( hDC2, hBmp, wRow, wCol, wWidth, wHeight, 0 ) ;<br />      if( ( lBkColorBMP = GetPixel( hDC2, wCol, wRow ) ) != lBkColor)<br />           MaskRegion( hDC2, &rRect, lBkColorBMP, lBkColor );<br />   }<br /><br />   ///////////////////////////////<br />   // Pego el buffer auxiliar ////<br />   BitBlt( hDC, rct->left, rct->top, rRect.right, rRect.bottom, hDC2, 0, 0, SRCCOPY );  <br />   SetBkColor( hDC2, lBkColorOld );<br />   SelectObject( hDC2, hBmpOld );<br />   DeleteObject( hBmp2 );<br />   DeleteObject( hBmpOld );<br />   DeleteDC( hDC2 );<br />   ///////////////////////////////<br /><br />   if (bFlag)<br />      rct->bottom++ ;<br /><br />}<br /><br /><br />************/</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_FWDISPBEGIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER FWDISPBEGI<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, hDC )</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />  HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  HDC hDC          = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;   <br />  HDC hDC2 ;   <br />  HBITMAP hBmp, hBmpOld ;<br />  RECT rct;<br />  <br />  GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />    <br />  hDC2    = CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />  hBmp    = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top <span style="color: #000000;">&#41;</span>;<br />  hBmpOld = SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmp <span style="color: #000000;">&#41;</span>;<br />  BitBlt<span style="color: #000000;">&#40;</span> hDC2, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span>, rct.bottom, hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>; <br />  <br />  hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />  hb_stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hWnd   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  hb_stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC    , <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />  hb_stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC2   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />  hb_stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmp   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />  hb_stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmpOld, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />#ifdef __HARBOUR__<br />HARBOUR HB_FUN_FWDISPEND<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />#else<br />CLIPPER FWDISPEND<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// { hWnd, hDC, hDC2, hBmp, hBmpOld }</span><br />#endif<br /><span style="color: #000000;">&#123;</span><br />   RECT rct;<br />  <br />   GetClientRect<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top, <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;     <br />   SelectObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   <br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">return</span> ;<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:38ci72q9]
Compilación para 12.05
Bien! Gracias Antonio, YA COMPILO!, (no se que hace ni como lo hace, pero investigaré), esto me da linea para superar los errores del 'Suspicious pointer...', si la aplicación funciona como debe seguro que lo comentaré. Y también haré mucho ruido (es viernes de cantina, hip!).
Compilación para 12.05
Comparto con ustedes todos los wbrwline modificados para compilar con Xharbour con BCC y Harbour con BCC, MSVC2010 y MingW Wbrwlinex.c para Xharbour y Bcc sin Warnings [code=fw:p7gqw3l1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// para xharbour 1.2.1</span><br /><br />void * __conArrayGet<span style="color: #000000;">&#40;</span> void *, void *, ... <span style="color: #000000;">&#41;</span>;<br />long __conGetNL<span style="color: #000000;">&#40;</span> void *, long * <span style="color: #000000;">&#41;</span>;<br />long __conRelease<span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br />#ifdef __HARBOUR__<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbapi.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbapiitm.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbvm.h><br />&nbsp; &nbsp;<span style="color: #B900B9;">// #include <hbfast.h></span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> MoveTo<span style="color: #000000;">&#40;</span> hDC, x, y <span style="color: #000000;">&#41;</span> MoveToEx<span style="color: #000000;">&#40;</span> hDC, x, y, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span> hb_vmPushSymbol<span style="color: #000000;">&#40;</span> &hb_symEval <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _xPushM &nbsp;hb_vmPush<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _PutLN &nbsp; hb_vmPushLong<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _xEval &nbsp; hb_vmDo<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _cEval0 &nbsp;hb_vmEvalBlock<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _Get_Sym hb_dynsymFindName<br />#endif<br /><br /><span style="color: #00D7D7;">#define</span> LOGICAL &nbsp; HB_IT_LOGICAL<br /><span style="color: #00D7D7;">#define</span> NUMERIC &nbsp; HB_IT_NUMERIC<br /><span style="color: #00D7D7;">#define</span> CHARACTER HB_IT_STRING<br /><span style="color: #00D7D7;">#define</span> BLOCK &nbsp; &nbsp; HB_IT_BLOCK<br /><br /><span style="color: #00D7D7;">#define</span> HA_LEFT &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp;<span style="color: #B900B9;">// by CeSoTech Alineaciones Horizontales y Verticales</span><br /><span style="color: #00D7D7;">#define</span> HA_RIGHT &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HA_CENTER &nbsp;<span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> VA_TOP &nbsp; &nbsp; <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> VA_BOTTOM &nbsp;<span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> VA_CENTER &nbsp;<span style="color: #000000;">32</span><br /><br />#ifdef __FLAT__<br />#undef &nbsp;PCLIPVAR<br /><span style="color: #00D7D7;">#define</span> PCLIPVAR PHB_ITEM<br />#endif<br /><br />#ifdef __XHARBOUR__<br />&nbsp; &nbsp;void hb_storvni<span style="color: #000000;">&#40;</span> int iValue, int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;long hb_parvnl<span style="color: #000000;">&#40;</span> int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;int hb_parvni<span style="color: #000000;">&#40;</span> int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;void hb_storvnl<span style="color: #000000;">&#40;</span> LONG lValue, int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />#endif<br /><br /><br /><br /><span style="color: #00C800;">static</span> far BOOL bAdjLastCol &nbsp;; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bAdjBrowse &nbsp; ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawHeaders ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawFooters ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wHeaderHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wFooterHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wLineHeight &nbsp;; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> far BOOL bWorking;<br /><br />WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wAlign, int iLen, HFONT hFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeadFoot <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bFocused <span style="color: #000000;">&#41;</span> ;<br /><br />void MaskRegion<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, COLORREF cTrColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORREF cBackColor <span style="color: #000000;">&#41;</span>;<br /><br />FrameDot<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br /><br />extern void WndDrawBox<span style="color: #000000;">&#40;</span> HDC, LPRECT, HPEN, HPEN <span style="color: #000000;">&#41;</span>;<br />extern void DrawBitmap<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WORD wHeight, DWORD dwRaster <span style="color: #000000;">&#41;</span>;<br /><br /><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAJustify, WORD wPressed,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeader, WORD nStyle,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD nFocus, BOOL bFocused,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wRowPos, WORD nHeightCtrl,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LONG nClrLine, BOOL bFooter,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bSelect, PCLIPVAR pFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span> ;<br /><br /><br /><br />void DrawMasked<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// LOW &nbsp; &nbsp;HIGH</span><br />extern int _dvtoi<span style="color: #000000;">&#40;</span> DWORD, DWORD <span style="color: #000000;">&#41;</span>;<br />void MsgStr<span style="color: #000000;">&#40;</span> long l <span style="color: #000000;">&#41;</span>;<br />LPSTR Str<span style="color: #000000;">&#40;</span> WORD w <span style="color: #000000;">&#41;</span>;<br /><br />#ifndef __FLAT__<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> far PCLIPSYMBOL pSkip = <span style="color: #000000;">0</span>;<br />#else<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> long near GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PHB_DYNS pSkip = <span style="color: #00C800;">NULL</span>;<br />#endif<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void MaskRegion<span style="color: #000000;">&#40;</span> HDC hdc, RECT * rct, COLORREF cTransparentColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLORREF cBackgroundColor <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HDC &nbsp; &nbsp; &nbsp; &nbsp;hdcTemp, hdcObject, hdcBack, hdcMem;<br />&nbsp; &nbsp;POINT &nbsp; &nbsp; &nbsp;ptSize;<br />&nbsp; &nbsp;COLORREF &nbsp; cColor;<br />&nbsp; &nbsp;HBITMAP &nbsp; &nbsp;bmAndObject, bmAndBack, bmBackOld, bmObjectOld,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bmAndTemp, bmTempOld, bmAndMem, bmMemOld;<br />&nbsp; &nbsp;HBRUSH &nbsp; &nbsp; hBrush, hBrOld;<br /><br />&nbsp; &nbsp;ptSize.x = rct->right - rct->left + <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;ptSize.y = rct->bottom - rct->top + <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;hBrush &nbsp; &nbsp; &nbsp;= CreateSolidBrush<span style="color: #000000;">&#40;</span>cBackgroundColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hdcTemp &nbsp; &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcObject &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcBack &nbsp; &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcMem &nbsp; &nbsp; &nbsp;= CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;bmAndTemp &nbsp; = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndMem &nbsp; &nbsp;= CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndObject = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndBack &nbsp; = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;bmTempOld &nbsp; = SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmAndTemp<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmMemOld &nbsp; &nbsp;= SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmAndMem<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmBackOld &nbsp; = SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmAndBack<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmObjectOld = SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmAndObject<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hBrOld &nbsp; &nbsp; &nbsp;= SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrush<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdc, rct->left, rct->top, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;SetMapMode<span style="color: #000000;">&#40;</span>hdcTemp, GetMapMode<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;cColor = SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cTransparentColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, NOTSRCCOPY<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PatBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>, ptSize.x, ptSize.y, PATCOPY<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCPAINT<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdc, rct->left, rct->top, ptSize.x, ptSize.y, hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmTempOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmMemOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmBackOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmObjectOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcMem<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcBack<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcObject<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcTemp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifdef __CLIPPER__<br /><span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; int iRet = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; _cAt<span style="color: #000000;">&#40;</span> Array, wIndex, <span style="color: #000000;">-1</span>, ++_tos <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; iRet = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUM_FLOAT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; iRet = _dvtoi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer1, <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer2 <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; --_tos;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> iRet;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __XPP__<br /><span style="color: #00C800;">static</span> long GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;void * chItem = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;long l;<br /><br />&nbsp; &nbsp;__conArrayGet<span style="color: #000000;">&#40;</span> Array, chItem, wIndex, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;__conGetNL<span style="color: #000000;">&#40;</span> chItem, &l <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;__conRelease<span style="color: #000000;">&#40;</span> chItem <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> l;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __HARBOUR__<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> GetInt<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span> &nbsp;hb_arrayGetNL<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------=</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ÚÄ1ra Col.a Pintar</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ³</span><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAJustify, WORD wPressed,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeader, WORD nStyle,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wFocus, BOOL bFocused,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wRowPos, WORD nHeightCtrl,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LONG nClrLine, BOOL bFooter,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bSelect, PCLIPVAR pFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT box, wholebox, rctadj;<br />&nbsp; &nbsp;int iMaxRight = rct->right;<br /><br />&nbsp; &nbsp;WORD wLenJust = <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp;WORD wLen &nbsp; &nbsp; = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;CLV_WORD lJustify;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp;WORD wLen &nbsp; &nbsp; = hb_arrayLen<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PHB_ITEM uElem = hb_itemNew<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;WORD wType, wcLen;<br />&nbsp; &nbsp;LONG lValue;<br />&nbsp; &nbsp;char * cValue;<br />&nbsp; &nbsp;HPEN hOldPen, hPen;<br />&nbsp; &nbsp;BITMAP bmp;<br />&nbsp; &nbsp;WORD wRow, wCol;<br />&nbsp; &nbsp;LONG lColor ;<br />&nbsp; &nbsp;HBRUSH hBrush;<br />&nbsp; &nbsp;LONG lTextColorOld = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;LONG lBkColorOld &nbsp; = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;PCLIPVAR pEvalOld ;<br />&nbsp; &nbsp;HFONT hFont ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;WORD wAlign ; <span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;LONG nClrLineC = <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">2</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">8</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nClrLine >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Desde Clipper manda color especifico linea</span><br />&nbsp; &nbsp; &nbsp; nClrLineC = nClrLine ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; bHeader = <span style="color: #00C800;">FALSE</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; bHeader = <span style="color: #00C800;">TRUE</span> ; <span style="color: #B900B9;">//-> Para que lo pinte con similar aspecto</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span>bHeader<span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct->top-- &nbsp; &nbsp; &nbsp; ;<br /><br />&nbsp; &nbsp;wholebox.top &nbsp; &nbsp;= rct->top<span style="color: #000000;">+1</span>;<br />&nbsp; &nbsp;wholebox.<span style="color: #0000ff;">left</span> &nbsp; = rct->left;<br />&nbsp; &nbsp;wholebox.bottom = rct->bottom;<br />&nbsp; &nbsp;wholebox.<span style="color: #0000ff;">right</span> &nbsp;= rct->right;<br /><br />&nbsp; &nbsp;rct->right &nbsp;= <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;box.top &nbsp; &nbsp;= rct->top ;<br />&nbsp; &nbsp;box.bottom = rct->bottom - <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wIndex | wIndex > wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;wIndex = <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wLenJust = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wLenJust = hb_arrayLen<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; rct->left &nbsp; = rct->right;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; rct->right &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen ? iMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : <span style="color: #000000;">rct</span>->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech // Cuando estoy estoy en la ultima celda, NO pintar hasta</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// el final si no existe ajuste de ultima columna.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct->right &nbsp;= rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> +<span style="color: #000000;">&#40;</span>bHeader ? <span style="color: #000000;">1</span>: <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wholebox.<span style="color: #0000ff;">right</span> = rct->right ; <span style="color: #B900B9;">// Tambien ajusto el borde focus</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; wAlign = HA_LEFT | VA_CENTER ; &nbsp;<span style="color: #B900B9;">// Alineacion por defecto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; wcLen = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">///////// INICIO Toma de datos celda !!!</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cAt<span style="color: #000000;">&#40;</span> pAJustify, wIndex, 0xFFFF, <span style="color: #000000;">&#40;</span> PCLIPVAR <span style="color: #000000;">&#41;</span> &lJustify <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = lJustify.wWord ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cAt<span style="color: #000000;">&#40;</span> pAtext, wIndex, 0xFFFF, ++_tos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wType = _tos->wType;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lValue = <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValue = _VSTR<span style="color: #000000;">&#40;</span> _tos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wcLen = _tos->w2;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; #else<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_arrayGet<span style="color: #000000;">&#40;</span> pAJustify, wIndex, uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> hb_itemType<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span> & LOGICAL <span style="color: #000000;">&#41;</span> && hb_itemGetL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = HA_RIGHT | VA_CENTER ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = hb_itemGetNL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_itemClear<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span>&nbsp; &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// uElem.type = HB_IT_NIL;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_arrayGet<span style="color: #000000;">&#40;</span> pAtext, wIndex, uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wType = hb_itemType<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lValue = hb_itemGetNL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cValue = hb_itemGetC( uElem );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValue = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_itemGetCPtr<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wcLen = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">///////// FIN Toma de datos celda !!!</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wFocus > <span style="color: #000000;">0</span> && wIndex != wFocus <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _tos--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wIndex = wLen + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ++wIndex;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">continue</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bTree ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Si NO es columna oculta (x Freeze)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//(Es lo mismo no hacer esto,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// pero es para evitar hacer trabajar</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// al codigo sin sentido !!! )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wType & NUMERIC<span style="color: #000000;">&#41;</span> && bTree <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lValue <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FillRect<span style="color: #000000;">&#40;</span> hDC, rct, hBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> GetPixel<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->top <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawMasked<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct->top, rct->left <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp;<span style="color: #B900B9;">// Si es Numerico Bmp no Tree, o , es Character !!!!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Bloque de Color Fondo Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lBkColorOld = SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Bloque de Color Texto Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lTextColorOld = SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFont = <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Bloque de Font Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/////// CeSoTech ///////</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top ++;<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Es un BitMap</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct, nStyle, bSelect <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Es una Cadena</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FW_DrawText<span style="color: #000000;">&#40;</span> hDC, rct,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span> ? cValue : <span style="color: #ff0000;">""</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign, wcLen, hFont, bHeader <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/////// CeSoTech restauracion de colores //////</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lTextColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, lTextColorOld <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lTextColorOld = <span style="color: #000000;">-1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lBkColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, lBkColorOld <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lBkColorOld = <span style="color: #000000;">-1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/// CeSoTech ///</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Si hay modalidad ajustar el Browse y no hay ajuste de ultima</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// columna, deber‚ pintar hasta el final hasta cubrir toda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// el area, hasta llegar a la derecha del control. (Col.Ficticia)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bAdjBrowse && wIndex == wLen && !bAdjLastCol &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->right <= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.top &nbsp; &nbsp;= rct->top;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">left</span> &nbsp; = rct->right ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom = rct->bottom;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span> &nbsp;= wholebox.<span style="color: #0000ff;">right</span> &nbsp;;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctadj.top--;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wFocus == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Si No es CellStyle (Pinto hasta final)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, &rctadj, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bHeader && nStyle==<span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Pinto Bordes Header Falso</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span> &nbsp;= wholebox.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom = rctadj.bottom - <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span>++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Si es Footer (Linea Negra de Arriba Foot)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, rctadj.left<span style="color: #000000;">-1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, rctadj.right<span style="color: #000000;">+1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/// CeSoTech Fin ///</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">left</span> &nbsp; = rct->left;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex < wLen && rct->right <= iMaxRight ?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->right - <span style="color: #000000;">1</span> :<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">iMaxRight</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech // El Borde derecho de Box de la ultima columna,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// no estirarlo cuando no exista ajuste de ultima columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// PERO cuando nLineStyle (nStyle) es 7/8 (Lineas Horiz)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// queda anti-estetico cortar los renglones, cuando no hay</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// ajuste ult.col. y hay ajuste de browse. Por ello</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// se verificara que para cortar el borde no se de esta</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// condicion.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>! <span style="color: #000000;">&#40;</span>!bHeader && <span style="color: #000000;">&#40;</span>nStyle==<span style="color: #000000;">7</span> || nStyle==<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> && !bAdjLastCol && bAdjBrowse<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">right</span> &nbsp;= rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bTree <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wPressed && <span style="color: #000000;">&#40;</span> wIndex == wPressed <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hGrayPen, hWhitePen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><span style="color: #B900B9;">///////////// &nbsp;if(!bHeader)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!bHeader || <span style="color: #000000;">&#40;</span>bHeader && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nStyle <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">0</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">1</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp;hOldPen = SelectObject( hDC, GetStockObject( BLACK_PEN ) );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">2</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">3</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">WndDrawBox</span><span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">4</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">box</span>.bottom ++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span> ++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FrameDot<span style="color: #000000;">&#40;</span> hDC, &box <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span> --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">7</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">8</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">5</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">6</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">9</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">10</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>box.left><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawFooters && nStyle >= <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHeightCtrl - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle < <span style="color: #000000;">9</span> ? box.bottom<span style="color: #000000;">+1</span> : <span style="color: #000000;">nHeightCtrl</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp;<span style="color: #B900B9;">// Box para Headers !!!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">left</span> ++;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Linea negra sobre el Footer</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.left<span style="color: #000000;">-1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.right-- &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom-- ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span>++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">left</span> --;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">16</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech if( bFocused && wFocus > 0 && wIndex == wFocus )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDrawFocusRect && bFocused && wFocus > <span style="color: #000000;">0</span> &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wIndex == wFocus && nStyle != <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->left++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->top++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->left--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->top--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_tos--;<br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex = wLen + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;++wIndex;<br /><br /><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bDrawFocusRect && !bTree && bFocused && wFocus==<span style="color: #000000;">0</span> && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &wholebox <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; hb_itemRelease<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSELBOX <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC, nRow, nFirstCol, nCurCol,;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; lFocus, aSizes, hFont)</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wCol &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFocused &nbsp; &nbsp;= hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR pAsizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;HFONT hOldFont;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// By CeSoTech</span><br />&nbsp; &nbsp; &nbsp; wRow-- ;<br /><br />&nbsp; &nbsp;rct.top &nbsp; &nbsp;= tm.tmHeight * wRow ;<br />&nbsp; &nbsp;rct.bottom = tm.tmHeight * <span style="color: #000000;">&#40;</span> wRow + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex < wCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp;+= GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex++ <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= &nbsp;rct.<span style="color: #0000ff;">left</span>+GetInt<span style="color: #000000;">&#40;</span> pAsizes, wCol <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;MaskRegion<span style="color: #000000;">&#40;</span> hDC, &rct, GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>, GetSysColor<span style="color: #000000;">&#40;</span>COLOR_ACTIVECAPTION<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bFocused <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWLINE <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// ( hWnd, hDC, nRow, aText, aSizes, nFirstItem, ;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// nClrFore, nClrBack, hFont, lTree, aJustify, nPressed,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// nStyle, nColAct, lFocused )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// bTextColor, bBkColor, nClrLine, lFooter, lSelect,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// bFont, lDrawFocusRect ) // New's by CesoTech</span><br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;WORD wHeight;<br />&nbsp; &nbsp;RECT rct, box;<br />&nbsp; &nbsp;PCLIPVAR bClrFore, bClrBack;<br />&nbsp; &nbsp;COLORREF clrFore = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;HPEN hGrayPen &nbsp; &nbsp;;<br />&nbsp; &nbsp;HPEN hWhitePen &nbsp; ;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;BOOL bTree &nbsp; &nbsp; &nbsp;= hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFooter = ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> ; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;hGrayPen &nbsp; &nbsp;= CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />&nbsp; &nbsp;hWhitePen &nbsp; = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;nHeightCtrl = rct.bottom-rct.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Es una Cabecera</span><br />&nbsp; &nbsp; &nbsp; wHeight = wHeaderHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bFooter <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Es una Cabecera</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.top &nbsp; &nbsp;= <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.bottom = wHeaderHeight + <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; rct.bottom = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * wRow<span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= rct.bottom - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, 0xFFFF <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, 0xFFFF <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen, bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>wRow == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bFooter, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span>, &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span>;<span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.top, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> AWBRWROWDIM <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC &nbsp;hDC &nbsp; &nbsp; &nbsp; = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow++, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow, &nbsp; <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseX<span style="color: #000000;">&#40;</span> WORD wX <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span> * wX / LOWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseY<span style="color: #000000;">&#40;</span> WORD wY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">8</span> * wY / HIWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWRECT <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRow, aSizes, nFirstItem, nCol,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; nLineStyle, nWidthVScroll )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wHeight ;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD nStyle = ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ? hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><br />&nbsp; &nbsp;#ifdef __CLIPPER__<br />&nbsp; &nbsp; &nbsp; PCLIPVAR paSizes = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; WORD wLen &nbsp; &nbsp; &nbsp; &nbsp;= _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp; &nbsp; #ifdef __HARBOUR__<br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; void * paSizes = ( void * ) _param( 3, HB_IT_ARRAY );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wLen &nbsp; &nbsp; &nbsp;= hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;void * paSizes = <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wLen &nbsp; &nbsp; &nbsp;= _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #endif<br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wCol &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wMaxRight;<br />&nbsp; &nbsp;LONG l;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wCol || wCol > wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span>;<br /><br /><br />&nbsp; &nbsp;GetWindowRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;wMaxRight = rct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;rct.top &nbsp; &nbsp;= rct.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br /><br />&nbsp; &nbsp;rct.bottom = rct.top + wHeight;<br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= rct.<span style="color: #0000ff;">left</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp; = rct.<span style="color: #0000ff;">right</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __FLAT__<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + GetInt<span style="color: #000000;">&#40;</span> paSizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> _parnl<span style="color: #000000;">&#40;</span>x,y<span style="color: #000000;">&#41;</span> PARNL<span style="color: #000000;">&#40;</span>x,params,y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l = hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, wIndex <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + l <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> >= wMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex = wCol + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">right</span> = wMaxRight;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex++;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;#ifdef __XPP__<br />&nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> _storni<span style="color: #000000;">&#40;</span> x, y, z <span style="color: #000000;">&#41;</span> STORNI<span style="color: #000000;">&#40;</span> x, params, y, z <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#endif<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top-- ; &nbsp;<span style="color: #B900B9;">// Las coord.de edicion deberan ser mas arriba tambien !!!</span><br /><br /><br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.top, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">left</span>, &nbsp; <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wMaxRight <= rct.<span style="color: #0000ff;">right</span> <span style="color: #000000;">&#41;</span> ?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wMaxRight - hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">right</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWPANE <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ( hWnd, hDC, Self, bLine, aSizes, nFirstItem,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; nClrFore, nClrBack, hFont, aJustify, nStyle</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; lCellStyle, lFocused ) -> nRowsSkipped</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; bTextColor, bBkColor, nClrLine, nColorFondo, bFont ) // New's by CesoTech</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRows;<br />&nbsp; &nbsp;WORD wLastBottom = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;WORD wSkipped &nbsp; &nbsp;= <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;PCLIPVAR <span style="color: #00C800;">Self</span> &nbsp; &nbsp;= hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR bLine &nbsp; = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR pASizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;WORD wHeight ;<br />&nbsp; &nbsp;RECT rct, box, <span style="color: #00C800;">client</span>;<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR bClrFore = <span style="color: #000000;">0</span>, bClrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrFore = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;HPEN hGrayPen &nbsp; &nbsp;= CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />&nbsp; &nbsp;HPEN hWhitePen &nbsp; = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br />&nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp;BOOL bColBlock &nbsp; = pASizes->wType & BLOCK;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp;BOOL bColBlock &nbsp; = hb_itemType<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> & BLOCK;<br />&nbsp; &nbsp;PHB_ITEM aLine = hb_itemNew<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;PCLIPVAR pAJustify = ISARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>: <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br />&nbsp; &nbsp;WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! pSkip <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;pSkip = _Get_Sym<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SKIP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Borremos el Area de la derecha no coubierta</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse && !bAdjLastCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> wIndex=wIndex ; wIndex <= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>; wIndex++ <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> += hb_parvni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, wIndex <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">7</span> || nStyle == <span style="color: #000000;">8</span> || nStyle == <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span>++;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;wIndex = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////</span><br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &client <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;nHeightCtrl = <span style="color: #00C800;">client</span>.bottom-<span style="color: #00C800;">client</span>.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;wRows = WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wRow <= wRows && wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= <span style="color: #00C800;">client</span>.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; rct.bottom = rct.top + wHeight;<br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #00C800;">client</span>.<span style="color: #0000ff;">right</span>;<br /><br />&nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xPushM<span style="color: #000000;">&#40;</span> _eval <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bColBlock <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, _tos,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bColBlock ? _eval : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_parni <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_tos--;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_PutSym<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xPushM<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_PutQ<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xSend<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// aLine.type = HB_IT_NIL;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Esta extension de xHarbour no se puede aplicar en Harbour</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// hb_itemForwardValue( aLine, hb_vmEvalBlock( bLine ) );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_itemCopy<span style="color: #000000;">&#40;</span> aLine, hb_vmEvalBlock<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, aLine,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bColBlock ? hb_vmEvalBlock<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_parnl <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPushSymbol<span style="color: #000000;">&#40;</span> hb_dynsymSymbol<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPush<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPushLong<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmDo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; wLastBottom = rct.bottom ;<br />&nbsp; &nbsp; &nbsp; wSkipped = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wRow++;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Borremos el Area de Abajo no cubierta</span><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;rct.top = wLastBottom + <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wLastBottom == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// No Mostro Registros</span><br />&nbsp; &nbsp; &nbsp; rct.top = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;rct.bottom-= &nbsp;<span style="color: #000000;">1</span> + <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp;nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top--;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bDrawFooters <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.bottom++;<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rct.top < rct.bottom <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">////////////////////////</span><br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br /><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> wRow <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_itemRelease<span style="color: #000000;">&#40;</span> aLine <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSET <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( lAdjLastCol, lAdjBrowse, lDrawHeaders, lDrawFooters )</span><br /><span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; bAdjLastCol &nbsp;= &nbsp;hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste o no de ultima columna al control.</span><br />&nbsp; &nbsp; bAdjBrowse &nbsp; = &nbsp;hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste del Browse a la derecha</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// cuando no existe ajuste de ultima columna.</span><br />&nbsp; &nbsp; bDrawHeaders = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> &nbsp;; <span style="color: #B900B9;">// Si quiere visualizar Headers !!!</span><br />&nbsp; &nbsp; bDrawFooters = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> &nbsp;; <span style="color: #B900B9;">// Si se quiere visualizar Footers !!!</span><br /><br />&nbsp; &nbsp; wHeaderHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; wFooterHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; wLineHeight &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Devuelve Nro. de Filas de Datos (No incluye Headers ni Footers)</span><br /><span style="color: #00C800;">static</span> WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;WORD wHeight;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD wRows;<br />&nbsp; &nbsp;BOOL bDCDestroy = <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDCDestroy = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;wRows = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.bottom - rct.top - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> -<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> -<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> / wHeight ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDCDestroy <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> wRows;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWROWS <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC, hFont )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSCRL <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, nRows, hFont, nLineStyle, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;int wRows &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC hDC = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>; &nbsp;<span style="color: #B900B9;">// &nbsp;= GetDC( hWnd );</span><br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawHeaders <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top += wHeaderHeight<span style="color: #000000;">+1</span> ;<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Defino Bottom de Area del Scroll</span><br />&nbsp; &nbsp;rct.bottom = <span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// El Area Scroll deber  entonces no tomar el separator (forma parte de ant)</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.bottom++; &nbsp; <span style="color: #B900B9;">// Debe tomarse dado que no pinta celda 1 una mas arriba</span><br /><br />&nbsp; <span style="color: #B900B9;">// ScrollWindowEx( hWnd, 0, -( (wLineHeight+1) * wRows ), 0, &rct, 0, 0, 0 );</span><br /><br />&nbsp; &nbsp;ScrollDC<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, -<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> * wRows <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, &rct, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; <span style="color: #B900B9;">// &nbsp;ReleaseDC( hWnd, hDC );</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWHEIGHT <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hFont )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> tm.tmHeight <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wAlign, int iWidth,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HFONT hFont, BOOL bHeadFoot <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT rcttmp &nbsp; &nbsp; ;<br />&nbsp; &nbsp;int iHeight &nbsp; &nbsp; ;<br />&nbsp; &nbsp;UINT uiFlag &nbsp; &nbsp; ;<br />&nbsp; &nbsp;HFONT hOldFont &nbsp;;<br />&nbsp; &nbsp;int iFactor &nbsp; &nbsp; ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Alineaciones Verticales //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////////</span><br />&nbsp; &nbsp;iHeight = DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, DT_CALCRECT <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;iFactor = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_TOP <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; iFactor = <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_BOTTOM <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iFactor = <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight - <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;rcttmp.top &nbsp; &nbsp;= rct->top + iFactor ;<br />&nbsp; &nbsp;rcttmp.bottom = rct->bottom ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">left</span> &nbsp; = rct->left &nbsp; ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">right</span> &nbsp;= rct->right &nbsp;;<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rcttmp.top < rct->top <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.top = rct->top ;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">///////////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Alineaciones Horizontales //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">///////////////////////////////</span><br />&nbsp; &nbsp;uiFlag = DT_LEFT ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">left</span>+= <span style="color: #000000;">2</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_CENTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.left-= <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp;uiFlag = DT_CENTER ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_RIGHT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.left-= <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp;uiFlag = DT_RIGHT ;<br />&nbsp; &nbsp; &nbsp;rcttmp.right-= <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ETO_OPAQUE | ETO_CLIPPED, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, uiFlag | DT_NOPREFIX <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;WORD wWidth &nbsp; ;<br />&nbsp; &nbsp;WORD wHeight &nbsp;;<br />&nbsp; &nbsp;WORD wRow ;<br />&nbsp; &nbsp;WORD wCol ;<br />&nbsp; &nbsp;BITMAP bm;<br />&nbsp; &nbsp;LONG lBkColorBMP, lBkColor = GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFlag = <span style="color: #00C800;">FALSE</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">3</span> || nStyle == <span style="color: #000000;">5</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> && bSelect <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct->bottom-- ;<br />&nbsp; &nbsp; &nbsp; bFlag = <span style="color: #00C800;">TRUE</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;wWidth &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;wHeight = rct->bottom - rct->top ;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> hBmp, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wHeight > bm.bmHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wRow = rct->top + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wHeight - bm.bmHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; wHeight = bm.bmHeight ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wRow = rct->top ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wWidth > bm.bmWidth <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wCol = rct->left + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wWidth - bm.bmWidth <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; wWidth = bm.bmWidth ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wCol = rct->left ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;rct->bottom++;<br />&nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;rct->bottom--;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hBmp > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBmp, wRow, wCol, wWidth, wHeight, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> lBkColorBMP = GetPixel<span style="color: #000000;">&#40;</span> hDC, wCol, wRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != lBkColor<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MaskRegion<span style="color: #000000;">&#40;</span> hDC, rct, lBkColorBMP, lBkColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bFlag<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct->bottom++ ;<br /><br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #B900B9;">/*******<br /><br /><br />static void FW_DrawBitmapCenter( HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect )<br />{<br />&nbsp; &nbsp;WORD wWidth &nbsp; ;<br />&nbsp; &nbsp;WORD wHeight &nbsp;;<br />&nbsp; &nbsp;WORD wRow ;<br />&nbsp; &nbsp;WORD wCol ;<br />&nbsp; &nbsp;BITMAP bm;<br />&nbsp; &nbsp;LONG lBkColorBMP, lBkColor = GetBkColor( hDC ), lBkColorOld;<br />&nbsp; &nbsp;BOOL bFlag = FALSE ;<br /><br />&nbsp; &nbsp;RECT rRect ;<br />&nbsp; &nbsp;HDC hDC2 ;<br />&nbsp; &nbsp;HBITMAP hBmp2, hBmpOld ;<br /><br /><br />&nbsp; &nbsp;if ( (nStyle == 0 || nStyle == 3 || nStyle == 5 ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == 6 || nStyle == 9 || nStyle == 10) && bSelect )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; rct->bottom-- ;<br />&nbsp; &nbsp; &nbsp; bFlag = TRUE ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;///////////////////////////////<br />&nbsp; &nbsp;// Creo un buffer auxiliar ////<br />&nbsp; &nbsp;rRect.top &nbsp; &nbsp;= 0 ;<br />&nbsp; &nbsp;rRect.left &nbsp; = 0 ;<br />&nbsp; &nbsp;rRect.right &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;rRect.bottom = rct->bottom - rct->top ;<br /><br />&nbsp; &nbsp;hDC2 &nbsp; &nbsp;= CreateCompatibleDC( hDC );<br />&nbsp; &nbsp;hBmp2 &nbsp; = CreateCompatibleBitmap( hDC, rRect.right, rRect.bottom );<br />&nbsp; &nbsp;hBmpOld = SelectObject( hDC2, hBmp2 );<br />&nbsp; &nbsp;BitBlt( hDC2, 0, 0, rRect.right, rRect.bottom, hDC, 0, 0, SRCCOPY );<br />&nbsp; &nbsp;///////////////////////////////<br /><br /><br />&nbsp; &nbsp;wWidth &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;wHeight = rct->bottom - rct->top ;<br />&nbsp; &nbsp;GetObject( hBmp, sizeof( BITMAP ), ( LPSTR ) &bm );<br /><br />&nbsp; &nbsp;if ( wHeight > bm.bmHeight )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wRow = 0 + ( ( wHeight - bm.bmHeight ) / 2 ) ;<br />&nbsp; &nbsp; &nbsp; wHeight = bm.bmHeight ;<br />&nbsp; &nbsp;} else<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wRow = 0 ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;if ( wWidth > bm.bmWidth )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wCol = 0 + ( ( wWidth - bm.bmWidth ) / 2 ) ;<br />&nbsp; &nbsp; &nbsp; wWidth = bm.bmWidth ;<br />&nbsp; &nbsp;} else<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wCol = 0 ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;rRect.bottom++;<br />&nbsp; &nbsp;lBkColorOld = SetBkColor( hDC2, lBkColor );<br />&nbsp; &nbsp;ExtTextOut( hDC2, 0, 0, ETO_OPAQUE, &rRect, "", 0, 0 );<br />&nbsp; &nbsp;rRect.bottom--;<br /><br />&nbsp; &nbsp;if ( hBmp > 0 )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; DrawBitmap( hDC2, hBmp, wRow, wCol, wWidth, wHeight, 0 ) ;<br />&nbsp; &nbsp; &nbsp; if( ( lBkColorBMP = GetPixel( hDC2, wCol, wRow ) ) != lBkColor)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MaskRegion( hDC2, &rRect, lBkColorBMP, lBkColor );<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;///////////////////////////////<br />&nbsp; &nbsp;// Pego el buffer auxiliar ////<br />&nbsp; &nbsp;BitBlt( hDC, rct->left, rct->top, rRect.right, rRect.bottom, hDC2, 0, 0, SRCCOPY );<br />&nbsp; &nbsp;SetBkColor( hDC2, lBkColorOld );<br />&nbsp; &nbsp;SelectObject( hDC2, hBmpOld );<br />&nbsp; &nbsp;DeleteObject( hBmp2 );<br />&nbsp; &nbsp;DeleteObject( hBmpOld );<br />&nbsp; &nbsp;DeleteDC( hDC2 );<br />&nbsp; &nbsp;///////////////////////////////<br /><br />&nbsp; &nbsp;if (bFlag)<br />&nbsp; &nbsp; &nbsp; rct->bottom++ ;<br /><br />}<br /><br /><br />************/</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWDISPBEGIN <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; HDC hDC2 ;<br />&nbsp; HBITMAP hBmp, hBmpOld ;<br />&nbsp; RECT rct;<br /><br />&nbsp; GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; hDC2 &nbsp; &nbsp;= CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />&nbsp; hBmp &nbsp; &nbsp;= CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; hBmpOld = SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmp <span style="color: #000000;">&#41;</span>;<br />&nbsp; BitBlt<span style="color: #000000;">&#40;</span> hDC2, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span>, rct.bottom, hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hWnd &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC &nbsp; &nbsp;, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC2 &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmp &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmpOld, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWDISPEND <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// { hWnd, hDC, hDC2, hBmp, hBmpOld }</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT rct;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top, <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> ;<br /><span style="color: #000000;">&#125;</span>&nbsp; &nbsp;<br /><br />&nbsp;</div>[/code:p7gqw3l1]
Compilación para 12.05
Wbrwlineh.c Para Harbour Borland [code=fw:65xidiza]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// se corrigio para harbour 3.0 y 3.1</span><br /><span style="color: #B900B9;">//Cambia todas las llamadas a funciones IS... por HB_IS... (por ejemplo: HB_ISLOG(...) en vez de ISLOG(...))</span><br /><span style="color: #B900B9;">//y además añade despues de los includes Antes de los #includes añade este define: #define _HB_API_INTERNAL_</span><br /><span style="color: #B900B9;">//</span><br /><br />void * __conArrayGet<span style="color: #000000;">&#40;</span> void *, void *, ... <span style="color: #000000;">&#41;</span>;<br />long __conGetNL<span style="color: #000000;">&#40;</span> void *, long * <span style="color: #000000;">&#41;</span>;<br />long __conRelease<span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br />#ifdef __HARBOUR__<br /><br /><span style="color: #00D7D7;">#define</span> _HB_API_INTERNAL_<br /><br /><span style="color: #B900B9;">// &nbsp; #include <clipapi.h></span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbapi.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbapiitm.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbvm.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbstack.h><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#include</span> <hbvm.h><br />&nbsp; &nbsp;<span style="color: #B900B9;">// #include <hbfast.h></span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> MoveTo<span style="color: #000000;">&#40;</span> hDC, x, y <span style="color: #000000;">&#41;</span> MoveToEx<span style="color: #000000;">&#40;</span> hDC, x, y, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span> hb_vmPushSymbol<span style="color: #000000;">&#40;</span> &hb_symEval <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _xPushM &nbsp;hb_vmPush<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _PutLN &nbsp; hb_vmPushLong<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _xEval &nbsp; hb_vmDo<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _cEval0 &nbsp;hb_vmEvalBlock<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> _Get_Sym hb_dynsymFindName<br />#endif<br /><br /><br /><span style="color: #00D7D7;">#define</span> LOGICAL &nbsp; HB_IT_LOGICAL<br /><span style="color: #00D7D7;">#define</span> NUMERIC &nbsp; HB_IT_NUMERIC<br /><span style="color: #00D7D7;">#define</span> CHARACTER HB_IT_STRING<br /><span style="color: #00D7D7;">#define</span> BLOCK &nbsp; &nbsp; HB_IT_BLOCK<br /><br /><span style="color: #00D7D7;">#define</span> HA_LEFT &nbsp; &nbsp;<span style="color: #000000;">0</span> &nbsp;<span style="color: #B900B9;">// by CeSoTech Alineaciones Horizontales y Verticales</span><br /><span style="color: #00D7D7;">#define</span> HA_RIGHT &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HA_CENTER &nbsp;<span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> VA_TOP &nbsp; &nbsp; <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> VA_BOTTOM &nbsp;<span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> VA_CENTER &nbsp;<span style="color: #000000;">32</span><br /><br />#ifdef __FLAT__<br />#undef &nbsp;PCLIPVAR<br /><span style="color: #00D7D7;">#define</span> PCLIPVAR PHB_ITEM<br />#endif<br /><br />#ifdef __XHARBOUR__<br />&nbsp; &nbsp;void hb_storvni<span style="color: #000000;">&#40;</span> int iValue, int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;long hb_parvnl<span style="color: #000000;">&#40;</span> int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;int hb_parvni<span style="color: #000000;">&#40;</span> int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;void hb_storvnl<span style="color: #000000;">&#40;</span> LONG lValue, int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />#endif<br /><br /><br /><br /><span style="color: #00C800;">static</span> far BOOL bAdjLastCol &nbsp;; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bAdjBrowse &nbsp; ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawHeaders ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawFooters ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wHeaderHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wFooterHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wLineHeight &nbsp;; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> far BOOL bWorking;<br /><br />WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wAlign, int iLen, HFONT hFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeadFoot <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bFocused <span style="color: #000000;">&#41;</span> ;<br /><br />void MaskRegion<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, COLORREF cTrColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORREF cBackColor <span style="color: #000000;">&#41;</span>;<br /><br />FrameDot<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br /><br />extern void WndDrawBox<span style="color: #000000;">&#40;</span> HDC, LPRECT, HPEN, HPEN <span style="color: #000000;">&#41;</span>;<br />extern void DrawBitmap<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WORD wHeight, DWORD dwRaster <span style="color: #000000;">&#41;</span>;<br /><br /><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAJustify, WORD wPressed,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeader, WORD nStyle,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD nFocus, BOOL bFocused,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wRowPos, WORD nHeightCtrl,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LONG nClrLine, BOOL bFooter,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bSelect, PCLIPVAR pFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span> ;<br /><br /><br /><br />void DrawMasked<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// LOW &nbsp; &nbsp;HIGH</span><br />extern int _dvtoi<span style="color: #000000;">&#40;</span> DWORD, DWORD <span style="color: #000000;">&#41;</span>;<br />void MsgStr<span style="color: #000000;">&#40;</span> long l <span style="color: #000000;">&#41;</span>;<br />LPSTR Str<span style="color: #000000;">&#40;</span> WORD w <span style="color: #000000;">&#41;</span>;<br /><br />#ifndef __FLAT__<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> far PCLIPSYMBOL pSkip = <span style="color: #000000;">0</span>;<br />#else<br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> long near GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PHB_DYNS pSkip = <span style="color: #00C800;">NULL</span>;<br />#endif<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void MaskRegion<span style="color: #000000;">&#40;</span> HDC hdc, RECT * rct, COLORREF cTransparentColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLORREF cBackgroundColor <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HDC &nbsp; &nbsp; &nbsp; &nbsp;hdcTemp, hdcObject, hdcBack, hdcMem;<br />&nbsp; &nbsp;POINT &nbsp; &nbsp; &nbsp;ptSize;<br />&nbsp; &nbsp;COLORREF &nbsp; cColor;<br />&nbsp; &nbsp;HBITMAP &nbsp; &nbsp;bmAndObject, bmAndBack, bmBackOld, bmObjectOld,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bmAndTemp, bmTempOld, bmAndMem, bmMemOld;<br />&nbsp; &nbsp;HBRUSH &nbsp; &nbsp; hBrush, hBrOld;<br /><br />&nbsp; &nbsp;ptSize.x = rct->right - rct->left + <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;ptSize.y = rct->bottom - rct->top + <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;hBrush &nbsp; &nbsp; &nbsp;= CreateSolidBrush<span style="color: #000000;">&#40;</span>cBackgroundColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hdcTemp &nbsp; &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcObject &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcBack &nbsp; &nbsp; = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hdcMem &nbsp; &nbsp; &nbsp;= CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;bmAndTemp &nbsp; = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndMem &nbsp; &nbsp;= CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndObject = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmAndBack &nbsp; = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;bmTempOld &nbsp; = SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmAndTemp<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmMemOld &nbsp; &nbsp;= SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmAndMem<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmBackOld &nbsp; = SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmAndBack<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;bmObjectOld = SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmAndObject<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hBrOld &nbsp; &nbsp; &nbsp;= SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrush<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdc, rct->left, rct->top, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;SetMapMode<span style="color: #000000;">&#40;</span>hdcTemp, GetMapMode<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;cColor = SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cTransparentColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cColor<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, NOTSRCCOPY<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PatBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>, ptSize.x, ptSize.y, PATCOPY<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCPAINT<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span>hdc, rct->left, rct->top, ptSize.x, ptSize.y, hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmTempOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmMemOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmBackOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmObjectOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcMem<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcBack<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcObject<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span>hdcTemp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifdef __CLIPPER__<br /><span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; int iRet = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; _cAt<span style="color: #000000;">&#40;</span> Array, wIndex, <span style="color: #000000;">-1</span>, ++_tos <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; iRet = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUM_FLOAT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; iRet = _dvtoi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer1, <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer2 <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; --_tos;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> iRet;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __XPP__<br /><span style="color: #00C800;">static</span> long GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;void * chItem = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;long l;<br /><br />&nbsp; &nbsp;__conArrayGet<span style="color: #000000;">&#40;</span> Array, chItem, wIndex, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;__conGetNL<span style="color: #000000;">&#40;</span> chItem, &l <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;__conRelease<span style="color: #000000;">&#40;</span> chItem <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> l;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __HARBOUR__<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> GetInt<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span> &nbsp;hb_arrayGetNL<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------=</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ÚÄ1ra Col.a Pintar</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ³</span><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pAJustify, WORD wPressed,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bHeader, WORD nStyle,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wFocus, BOOL bFocused,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wRowPos, WORD nHeightCtrl,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LONG nClrLine, BOOL bFooter,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bSelect, PCLIPVAR pFont,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT box, wholebox, rctadj;<br />&nbsp; &nbsp;int iMaxRight = rct->right;<br /><br />&nbsp; &nbsp;WORD wLenJust = <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp;WORD wLen &nbsp; &nbsp; = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;CLV_WORD lJustify;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp;WORD wLen &nbsp; &nbsp; = hb_arrayLen<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PHB_ITEM uElem = hb_itemNew<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;WORD wType, wcLen;<br />&nbsp; &nbsp;LONG lValue;<br />&nbsp; &nbsp;char * cValue;<br />&nbsp; &nbsp;HPEN hOldPen, hPen;<br />&nbsp; &nbsp;BITMAP bmp;<br />&nbsp; &nbsp;WORD wRow, wCol;<br />&nbsp; &nbsp;LONG lColor ;<br />&nbsp; &nbsp;HBRUSH hBrush;<br />&nbsp; &nbsp;LONG lTextColorOld = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;LONG lBkColorOld &nbsp; = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;PCLIPVAR pEvalOld ;<br />&nbsp; &nbsp;HFONT hFont ; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;WORD wAlign ; <span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;LONG nClrLineC = <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">2</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">8</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nClrLine >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Desde Clipper manda color especifico linea</span><br />&nbsp; &nbsp; &nbsp; nClrLineC = nClrLine ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; bHeader = <span style="color: #00C800;">FALSE</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; bHeader = <span style="color: #00C800;">TRUE</span> ; <span style="color: #B900B9;">//-> Para que lo pinte con similar aspecto</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span>bHeader<span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct->top-- &nbsp; &nbsp; &nbsp; ;<br /><br />&nbsp; &nbsp;wholebox.top &nbsp; &nbsp;= rct->top<span style="color: #000000;">+1</span>;<br />&nbsp; &nbsp;wholebox.<span style="color: #0000ff;">left</span> &nbsp; = rct->left;<br />&nbsp; &nbsp;wholebox.bottom = rct->bottom;<br />&nbsp; &nbsp;wholebox.<span style="color: #0000ff;">right</span> &nbsp;= rct->right;<br /><br />&nbsp; &nbsp;rct->right &nbsp;= <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;box.top &nbsp; &nbsp;= rct->top ;<br />&nbsp; &nbsp;box.bottom = rct->bottom - <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wIndex | wIndex > wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;wIndex = <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wLenJust = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wLenJust = hb_arrayLen<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; rct->left &nbsp; = rct->right;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; rct->right &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen ? iMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : <span style="color: #000000;">rct</span>->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech // Cuando estoy estoy en la ultima celda, NO pintar hasta</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// el final si no existe ajuste de ultima columna.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct->right &nbsp;= rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> +<span style="color: #000000;">&#40;</span>bHeader ? <span style="color: #000000;">1</span>: <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wholebox.<span style="color: #0000ff;">right</span> = rct->right ; <span style="color: #B900B9;">// Tambien ajusto el borde focus</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; wAlign = HA_LEFT | VA_CENTER ; &nbsp;<span style="color: #B900B9;">// Alineacion por defecto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; wcLen = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">///////// INICIO Toma de datos celda !!!</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cAt<span style="color: #000000;">&#40;</span> pAJustify, wIndex, 0xFFFF, <span style="color: #000000;">&#40;</span> PCLIPVAR <span style="color: #000000;">&#41;</span> &lJustify <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = lJustify.wWord ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cAt<span style="color: #000000;">&#40;</span> pAtext, wIndex, 0xFFFF, ++_tos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wType = _tos->wType;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lValue = <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValue = _VSTR<span style="color: #000000;">&#40;</span> _tos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wcLen = _tos->w2;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; #else<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_arrayGet<span style="color: #000000;">&#40;</span> pAJustify, wIndex, uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> hb_itemType<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span> & LOGICAL <span style="color: #000000;">&#41;</span> && hb_itemGetL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = HA_RIGHT | VA_CENTER ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign = hb_itemGetNL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_itemClear<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span>&nbsp; &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// uElem.type = HB_IT_NIL;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_arrayGet<span style="color: #000000;">&#40;</span> pAtext, wIndex, uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wType = hb_itemType<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lValue = hb_itemGetNL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cValue = hb_itemGetC( uElem );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValue = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_itemGetCPtr<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wcLen = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">///////// FIN Toma de datos celda !!!</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wFocus > <span style="color: #000000;">0</span> && wIndex != wFocus <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _tos--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wIndex = wLen + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ++wIndex;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">continue</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bTree ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Si NO es columna oculta (x Freeze)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//(Es lo mismo no hacer esto,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// pero es para evitar hacer trabajar</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// al codigo sin sentido !!! )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wType & NUMERIC<span style="color: #000000;">&#41;</span> && bTree <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lValue <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FillRect<span style="color: #000000;">&#40;</span> hDC, rct, hBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> GetPixel<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->top <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawMasked<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct->top, rct->left <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp;<span style="color: #B900B9;">// Si es Numerico Bmp no Tree, o , es Character !!!!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Bloque de Color Fondo Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lBkColorOld = SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Bloque de Color Texto Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lTextColorOld = SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFont = <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Bloque de Font Celda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xPushM<span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/////// CeSoTech ///////</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top ++;<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Es un BitMap</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct, nStyle, bSelect <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Es una Cadena</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FW_DrawText<span style="color: #000000;">&#40;</span> hDC, rct,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span> ? cValue : <span style="color: #ff0000;">""</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wAlign, wcLen, hFont, bHeader <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/////// CeSoTech restauracion de colores //////</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lTextColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, lTextColorOld <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lTextColorOld = <span style="color: #000000;">-1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lBkColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, lBkColorOld <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lBkColorOld = <span style="color: #000000;">-1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/// CeSoTech ///</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Si hay modalidad ajustar el Browse y no hay ajuste de ultima</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// columna, deber‚ pintar hasta el final hasta cubrir toda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// el area, hasta llegar a la derecha del control. (Col.Ficticia)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bAdjBrowse && wIndex == wLen && !bAdjLastCol &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->right <= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.top &nbsp; &nbsp;= rct->top;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">left</span> &nbsp; = rct->right ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom = rct->bottom;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span> &nbsp;= wholebox.<span style="color: #0000ff;">right</span> &nbsp;;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctadj.top--;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wFocus == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Si No es CellStyle (Pinto hasta final)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, &rctadj, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bHeader && nStyle==<span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Pinto Bordes Header Falso</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span> &nbsp;= wholebox.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom = rctadj.bottom - <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.bottom++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rctadj.<span style="color: #0000ff;">right</span>++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Si es Footer (Linea Negra de Arriba Foot)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, rctadj.left<span style="color: #000000;">-1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, rctadj.right<span style="color: #000000;">+1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/// CeSoTech Fin ///</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">left</span> &nbsp; = rct->left;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex < wLen && rct->right <= iMaxRight ?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->right - <span style="color: #000000;">1</span> :<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">iMaxRight</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech // El Borde derecho de Box de la ultima columna,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// no estirarlo cuando no exista ajuste de ultima columna</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// PERO cuando nLineStyle (nStyle) es 7/8 (Lineas Horiz)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// queda anti-estetico cortar los renglones, cuando no hay</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// ajuste ult.col. y hay ajuste de browse. Por ello</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// se verificara que para cortar el borde no se de esta</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// condicion.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>! <span style="color: #000000;">&#40;</span>!bHeader && <span style="color: #000000;">&#40;</span>nStyle==<span style="color: #000000;">7</span> || nStyle==<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> && !bAdjLastCol && bAdjBrowse<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">right</span> &nbsp;= rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bTree <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wPressed && <span style="color: #000000;">&#40;</span> wIndex == wPressed <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hGrayPen, hWhitePen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><span style="color: #B900B9;">///////////// &nbsp;if(!bHeader)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!bHeader || <span style="color: #000000;">&#40;</span>bHeader && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nStyle <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">0</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">1</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp;hOldPen = SelectObject( hDC, GetStockObject( BLACK_PEN ) );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">2</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">3</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">WndDrawBox</span><span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">4</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">box</span>.bottom ++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span> ++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FrameDot<span style="color: #000000;">&#40;</span> hDC, &box <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span> --;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">7</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">8</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, &nbsp;box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">5</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">6</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">9</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> <span style="color: #000000;">10</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>box.left><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawFooters && nStyle >= <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHeightCtrl - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle < <span style="color: #000000;">9</span> ? box.bottom<span style="color: #000000;">+1</span> : <span style="color: #000000;">nHeightCtrl</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span> &nbsp;<span style="color: #B900B9;">// Box para Headers !!!</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">left</span> ++;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Linea negra sobre el Footer</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hPen = GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hOldPen = SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MoveTo<span style="color: #000000;">&#40;</span> hDC, box.left<span style="color: #000000;">-1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.right-- &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom-- ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.bottom++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">right</span>++ &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; box.<span style="color: #0000ff;">left</span> --;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;box.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">16</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech if( bFocused && wFocus > 0 && wIndex == wFocus )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDrawFocusRect && bFocused && wFocus > <span style="color: #000000;">0</span> &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wIndex == wFocus && nStyle != <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->left++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->top++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->left--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct->top--;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_tos--;<br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex = wLen + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;++wIndex;<br /><br /><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bDrawFocusRect && !bTree && bFocused && wFocus==<span style="color: #000000;">0</span> && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &wholebox <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; hb_itemRelease<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSELBOX <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC, nRow, nFirstCol, nCurCol,;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; lFocus, aSizes, hFont)</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wCol &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFocused &nbsp; &nbsp;= hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR pAsizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;HFONT hOldFont;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// By CeSoTech</span><br />&nbsp; &nbsp; &nbsp; wRow-- ;<br /><br />&nbsp; &nbsp;rct.top &nbsp; &nbsp;= tm.tmHeight * wRow ;<br />&nbsp; &nbsp;rct.bottom = tm.tmHeight * <span style="color: #000000;">&#40;</span> wRow + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex < wCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp;+= GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex++ <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= &nbsp;rct.<span style="color: #0000ff;">left</span>+GetInt<span style="color: #000000;">&#40;</span> pAsizes, wCol <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;MaskRegion<span style="color: #000000;">&#40;</span> hDC, &rct, GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>, GetSysColor<span style="color: #000000;">&#40;</span>COLOR_ACTIVECAPTION<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bFocused <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWLINE <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// ( hWnd, hDC, nRow, aText, aSizes, nFirstItem, ;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// nClrFore, nClrBack, hFont, lTree, aJustify, nPressed,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// nStyle, nColAct, lFocused )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// bTextColor, bBkColor, nClrLine, lFooter, lSelect,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// bFont, lDrawFocusRect ) // New's by CesoTech</span><br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;WORD wHeight;<br />&nbsp; &nbsp;RECT rct, box;<br />&nbsp; &nbsp;PCLIPVAR bClrFore, bClrBack;<br />&nbsp; &nbsp;COLORREF clrFore = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;HPEN hGrayPen &nbsp; &nbsp;;<br />&nbsp; &nbsp;HPEN hWhitePen &nbsp; ;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;BOOL bTree &nbsp; &nbsp; &nbsp;= hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFooter = HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> ; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;hGrayPen &nbsp; &nbsp;= CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />&nbsp; &nbsp;hWhitePen &nbsp; = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;nHeightCtrl = rct.bottom-rct.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Es una Cabecera</span><br />&nbsp; &nbsp; &nbsp; wHeight = wHeaderHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bFooter <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Es una Cabecera</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.top &nbsp; &nbsp;= <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.bottom = wHeaderHeight + <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; rct.bottom = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * wRow<span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= rct.bottom - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, 0xFFFF <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, 0xFFFF <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen, bTree,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>wRow == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bFooter, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span>, &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span>;<span style="color: #B900B9;">// CeSoTech</span><br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.top, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> AWBRWROWDIM <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC &nbsp;hDC &nbsp; &nbsp; &nbsp; = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow++, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow, &nbsp; <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseX<span style="color: #000000;">&#40;</span> WORD wX <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span> * wX / LOWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseY<span style="color: #000000;">&#40;</span> WORD wY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">8</span> * wY / HIWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWRECT <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRow, aSizes, nFirstItem, nCol,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; nLineStyle, nWidthVScroll )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wHeight ;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD nStyle = HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ? hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><br />&nbsp; &nbsp;#ifdef __CLIPPER__<br />&nbsp; &nbsp; &nbsp; PCLIPVAR paSizes = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; WORD wLen &nbsp; &nbsp; &nbsp; &nbsp;= _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp; &nbsp; #ifdef __HARBOUR__<br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; void * paSizes = ( void * ) _param( 3, HB_IT_ARRAY );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wLen &nbsp; &nbsp; &nbsp;= hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;void * paSizes = <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wLen &nbsp; &nbsp; &nbsp;= _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #endif<br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wCol &nbsp; &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wMaxRight;<br />&nbsp; &nbsp;LONG l;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wCol || wCol > wLen <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span>;<br /><br /><br />&nbsp; &nbsp;GetWindowRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;wMaxRight = rct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;rct.top &nbsp; &nbsp;= rct.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br /><br />&nbsp; &nbsp;rct.bottom = rct.top + wHeight;<br />&nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= rct.<span style="color: #0000ff;">left</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp; = rct.<span style="color: #0000ff;">right</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #ifndef __FLAT__<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + GetInt<span style="color: #000000;">&#40;</span> paSizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> _parnl<span style="color: #000000;">&#40;</span>x,y<span style="color: #000000;">&#41;</span> PARNL<span style="color: #000000;">&#40;</span>x,params,y<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l = hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, wIndex <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + l <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> >= wMaxRight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex = wCol + <span style="color: #000000;">1</span>; &nbsp; <span style="color: #B900B9;">// ya no pintamos m s</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">right</span> = wMaxRight;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wIndex++;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;#ifdef __XPP__<br />&nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> _storni<span style="color: #000000;">&#40;</span> x, y, z <span style="color: #000000;">&#41;</span> STORNI<span style="color: #000000;">&#40;</span> x, params, y, z <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#endif<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top-- ; &nbsp;<span style="color: #B900B9;">// Las coord.de edicion deberan ser mas arriba tambien !!!</span><br /><br /><br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.top, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">left</span>, &nbsp; <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_storvni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wMaxRight <= rct.<span style="color: #0000ff;">right</span> <span style="color: #000000;">&#41;</span> ?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wMaxRight - hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">right</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWPANE <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ( hWnd, hDC, Self, bLine, aSizes, nFirstItem,</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; nClrFore, nClrBack, hFont, aJustify, nStyle</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; lCellStyle, lFocused ) -> nRowsSkipped</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp; bTextColor, bBkColor, nClrLine, nColorFondo, bFont ) // New's by CesoTech</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wRows;<br />&nbsp; &nbsp;WORD wLastBottom = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;WORD wRow &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;WORD wSkipped &nbsp; &nbsp;= <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp;PCLIPVAR <span style="color: #00C800;">Self</span> &nbsp; &nbsp;= hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR bLine &nbsp; = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR pASizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;BOOL bDestroyDC &nbsp;= <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;WORD wHeight ;<br />&nbsp; &nbsp;RECT rct, box, <span style="color: #00C800;">client</span>;<br />&nbsp; &nbsp;WORD wIndex &nbsp; &nbsp; &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;PCLIPVAR bClrFore = <span style="color: #000000;">0</span>, bClrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrFore = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;COLORREF clrBack = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;HPEN hGrayPen &nbsp; &nbsp;= CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />&nbsp; &nbsp;HPEN hWhitePen &nbsp; = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br />&nbsp; &nbsp;#ifndef __HARBOUR__<br />&nbsp; &nbsp;BOOL bColBlock &nbsp; = pASizes->wType & BLOCK;<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp;BOOL bColBlock &nbsp; = hb_itemType<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> & BLOCK;<br />&nbsp; &nbsp;PHB_ITEM aLine = hb_itemNew<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;#endif<br />&nbsp; &nbsp;PCLIPVAR pAJustify = HB_ISARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>: <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp;WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br />&nbsp; &nbsp;WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! pSkip <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;pSkip = _Get_Sym<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SKIP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Borremos el Area de la derecha no coubierta</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse && !bAdjLastCol <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> wIndex=wIndex ; wIndex <= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>; wIndex++ <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> += hb_parvni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, wIndex <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">7</span> || nStyle == <span style="color: #000000;">8</span> || nStyle == <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span>++;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;wIndex = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////</span><br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &client <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;nHeightCtrl = <span style="color: #00C800;">client</span>.bottom-<span style="color: #00C800;">client</span>.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;wRows = WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wRow <= wRows && wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct.top &nbsp; &nbsp;= <span style="color: #00C800;">client</span>.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; rct.bottom = rct.top + wHeight;<br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">left</span> &nbsp; = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; rct.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #00C800;">client</span>.<span style="color: #0000ff;">right</span>;<br /><br />&nbsp; &nbsp; &nbsp; #ifndef __HARBOUR__<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_cEval0<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xPushM<span style="color: #000000;">&#40;</span> _eval <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bColBlock <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, _tos,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bColBlock ? _eval : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_parni <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_tos--;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_PutSym<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xPushM<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_PutQ<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_xSend<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// aLine.type = HB_IT_NIL;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Esta extension de xHarbour no se puede aplicar en Harbour</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// hb_itemForwardValue( aLine, hb_vmEvalBlock( bLine ) );</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_itemCopy<span style="color: #000000;">&#40;</span> aLine, hb_vmEvalBlock<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, aLine,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bColBlock ? hb_vmEvalBlock<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWhitePen, hGrayPen,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_parnl <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;wRow, nHeightCtrl, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, &nbsp; <span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPushSymbol<span style="color: #000000;">&#40;</span> hb_dynsymSymbol<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPush<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmPushLong<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_vmDo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; #endif<br /><br />&nbsp; &nbsp; &nbsp; wLastBottom = rct.bottom ;<br />&nbsp; &nbsp; &nbsp; wSkipped = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wRow++;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Borremos el Area de Abajo no cubierta</span><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;rct.top = wLastBottom + <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wLastBottom == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// No Mostro Registros</span><br />&nbsp; &nbsp; &nbsp; rct.top = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;rct.bottom-= &nbsp;<span style="color: #000000;">1</span> + <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp;nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top--;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bDrawFooters <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.bottom++;<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rct.top < rct.bottom <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">////////////////////////</span><br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br /><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> wRow <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_itemRelease<span style="color: #000000;">&#40;</span> aLine <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSET <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( lAdjLastCol, lAdjBrowse, lDrawHeaders, lDrawFooters )</span><br /><span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech</span><br />&nbsp; &nbsp; bAdjLastCol &nbsp;= &nbsp;hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste o no de ultima columna al control.</span><br />&nbsp; &nbsp; bAdjBrowse &nbsp; = &nbsp;hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste del Browse a la derecha</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// cuando no existe ajuste de ultima columna.</span><br />&nbsp; &nbsp; bDrawHeaders = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> &nbsp;; <span style="color: #B900B9;">// Si quiere visualizar Headers !!!</span><br />&nbsp; &nbsp; bDrawFooters = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> &nbsp;; <span style="color: #B900B9;">// Si se quiere visualizar Footers !!!</span><br /><br />&nbsp; &nbsp; wHeaderHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; wFooterHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; wLineHeight &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Devuelve Nro. de Filas de Datos (No incluye Headers ni Footers)</span><br /><span style="color: #00C800;">static</span> WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;WORD wHeight;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD wRows;<br />&nbsp; &nbsp;BOOL bDCDestroy = <span style="color: #00C800;">FALSE</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; bDCDestroy = <span style="color: #00C800;">TRUE</span>;<br />&nbsp; &nbsp; &nbsp; hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;wRows = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.bottom - rct.top - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> -<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> -<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> / wHeight ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDCDestroy <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> wRows;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWROWS <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC, hFont )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSCRL <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, nRows, hFont, nLineStyle, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;int wRows &nbsp;= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC hDC = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>; &nbsp;<span style="color: #B900B9;">// &nbsp;= GetDC( hWnd );</span><br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawHeaders <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.top += wHeaderHeight<span style="color: #000000;">+1</span> ;<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Defino Bottom de Area del Scroll</span><br />&nbsp; &nbsp;rct.bottom = <span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> +<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CeSoTech para que que bien completa el area !!!</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// El Area Scroll deber  entonces no tomar el separator (forma parte de ant)</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct.bottom++; &nbsp; <span style="color: #B900B9;">// Debe tomarse dado que no pinta celda 1 una mas arriba</span><br /><br />&nbsp; <span style="color: #B900B9;">// ScrollWindowEx( hWnd, 0, -( (wLineHeight+1) * wRows ), 0, &rct, 0, 0, 0 );</span><br /><br />&nbsp; &nbsp;ScrollDC<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, -<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> * wRows <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, &rct, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; <span style="color: #B900B9;">// &nbsp;ReleaseDC( hWnd, hDC );</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWHEIGHT <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hFont )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HWND hWnd &nbsp; = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HFONT hOldFont;<br />&nbsp; &nbsp;HDC hDC &nbsp; &nbsp; = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;TEXTMETRIC tm;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> tm.tmHeight <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WORD wAlign, int iWidth,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HFONT hFont, BOOL bHeadFoot <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT rcttmp &nbsp; &nbsp; ;<br />&nbsp; &nbsp;int iHeight &nbsp; &nbsp; ;<br />&nbsp; &nbsp;UINT uiFlag &nbsp; &nbsp; ;<br />&nbsp; &nbsp;HFONT hOldFont &nbsp;;<br />&nbsp; &nbsp;int iFactor &nbsp; &nbsp; ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; hOldFont = SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Alineaciones Verticales //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/////////////////////////////</span><br />&nbsp; &nbsp;iHeight = DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, DT_CALCRECT <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;iFactor = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_TOP <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; iFactor = <span style="color: #000000;">0</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_BOTTOM <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iFactor = <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight - <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;rcttmp.top &nbsp; &nbsp;= rct->top + iFactor ;<br />&nbsp; &nbsp;rcttmp.bottom = rct->bottom ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">left</span> &nbsp; = rct->left &nbsp; ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">right</span> &nbsp;= rct->right &nbsp;;<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rcttmp.top < rct->top <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.top = rct->top ;<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">///////////////////////////////</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Alineaciones Horizontales //</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">///////////////////////////////</span><br />&nbsp; &nbsp;uiFlag = DT_LEFT ;<br />&nbsp; &nbsp;rcttmp.<span style="color: #0000ff;">left</span>+= <span style="color: #000000;">2</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_CENTER <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.left-= <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp;uiFlag = DT_CENTER ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_RIGHT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;rcttmp.left-= <span style="color: #000000;">2</span> ;<br />&nbsp; &nbsp; &nbsp;uiFlag = DT_RIGHT ;<br />&nbsp; &nbsp; &nbsp;rcttmp.right-= <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ETO_OPAQUE | ETO_CLIPPED, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, uiFlag | DT_NOPREFIX <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;WORD wWidth &nbsp; ;<br />&nbsp; &nbsp;WORD wHeight &nbsp;;<br />&nbsp; &nbsp;WORD wRow ;<br />&nbsp; &nbsp;WORD wCol ;<br />&nbsp; &nbsp;BITMAP bm;<br />&nbsp; &nbsp;LONG lBkColorBMP, lBkColor = GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bFlag = <span style="color: #00C800;">FALSE</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">3</span> || nStyle == <span style="color: #000000;">5</span> ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> && bSelect <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; rct->bottom-- ;<br />&nbsp; &nbsp; &nbsp; bFlag = <span style="color: #00C800;">TRUE</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;wWidth &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;wHeight = rct->bottom - rct->top ;<br />&nbsp; &nbsp;GetObject<span style="color: #000000;">&#40;</span> hBmp, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wHeight > bm.bmHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wRow = rct->top + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wHeight - bm.bmHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; wHeight = bm.bmHeight ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wRow = rct->top ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wWidth > bm.bmWidth <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wCol = rct->left + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wWidth - bm.bmWidth <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; wWidth = bm.bmWidth ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; wCol = rct->left ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;rct->bottom++;<br />&nbsp; &nbsp;ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;rct->bottom--;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hBmp > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBmp, wRow, wCol, wWidth, wHeight, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> lBkColorBMP = GetPixel<span style="color: #000000;">&#40;</span> hDC, wCol, wRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != lBkColor<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MaskRegion<span style="color: #000000;">&#40;</span> hDC, rct, lBkColorBMP, lBkColor <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bFlag<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rct->bottom++ ;<br /><br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #B900B9;">/*******<br /><br /><br />static void FW_DrawBitmapCenter( HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect )<br />{<br />&nbsp; &nbsp;WORD wWidth &nbsp; ;<br />&nbsp; &nbsp;WORD wHeight &nbsp;;<br />&nbsp; &nbsp;WORD wRow ;<br />&nbsp; &nbsp;WORD wCol ;<br />&nbsp; &nbsp;BITMAP bm;<br />&nbsp; &nbsp;LONG lBkColorBMP, lBkColor = GetBkColor( hDC ), lBkColorOld;<br />&nbsp; &nbsp;BOOL bFlag = FALSE ;<br /><br />&nbsp; &nbsp;RECT rRect ;<br />&nbsp; &nbsp;HDC hDC2 ;<br />&nbsp; &nbsp;HBITMAP hBmp2, hBmpOld ;<br /><br /><br />&nbsp; &nbsp;if ( (nStyle == 0 || nStyle == 3 || nStyle == 5 ||<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nStyle == 6 || nStyle == 9 || nStyle == 10) && bSelect )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; rct->bottom-- ;<br />&nbsp; &nbsp; &nbsp; bFlag = TRUE ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;///////////////////////////////<br />&nbsp; &nbsp;// Creo un buffer auxiliar ////<br />&nbsp; &nbsp;rRect.top &nbsp; &nbsp;= 0 ;<br />&nbsp; &nbsp;rRect.left &nbsp; = 0 ;<br />&nbsp; &nbsp;rRect.right &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;rRect.bottom = rct->bottom - rct->top ;<br /><br />&nbsp; &nbsp;hDC2 &nbsp; &nbsp;= CreateCompatibleDC( hDC );<br />&nbsp; &nbsp;hBmp2 &nbsp; = CreateCompatibleBitmap( hDC, rRect.right, rRect.bottom );<br />&nbsp; &nbsp;hBmpOld = SelectObject( hDC2, hBmp2 );<br />&nbsp; &nbsp;BitBlt( hDC2, 0, 0, rRect.right, rRect.bottom, hDC, 0, 0, SRCCOPY );<br />&nbsp; &nbsp;///////////////////////////////<br /><br /><br />&nbsp; &nbsp;wWidth &nbsp;= rct->right - rct->left ;<br />&nbsp; &nbsp;wHeight = rct->bottom - rct->top ;<br />&nbsp; &nbsp;GetObject( hBmp, sizeof( BITMAP ), ( LPSTR ) &bm );<br /><br />&nbsp; &nbsp;if ( wHeight > bm.bmHeight )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wRow = 0 + ( ( wHeight - bm.bmHeight ) / 2 ) ;<br />&nbsp; &nbsp; &nbsp; wHeight = bm.bmHeight ;<br />&nbsp; &nbsp;} else<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wRow = 0 ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;if ( wWidth > bm.bmWidth )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wCol = 0 + ( ( wWidth - bm.bmWidth ) / 2 ) ;<br />&nbsp; &nbsp; &nbsp; wWidth = bm.bmWidth ;<br />&nbsp; &nbsp;} else<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; wCol = 0 ;<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;rRect.bottom++;<br />&nbsp; &nbsp;lBkColorOld = SetBkColor( hDC2, lBkColor );<br />&nbsp; &nbsp;ExtTextOut( hDC2, 0, 0, ETO_OPAQUE, &rRect, "", 0, 0 );<br />&nbsp; &nbsp;rRect.bottom--;<br /><br />&nbsp; &nbsp;if ( hBmp > 0 )<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; DrawBitmap( hDC2, hBmp, wRow, wCol, wWidth, wHeight, 0 ) ;<br />&nbsp; &nbsp; &nbsp; if( ( lBkColorBMP = GetPixel( hDC2, wCol, wRow ) ) != lBkColor)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MaskRegion( hDC2, &rRect, lBkColorBMP, lBkColor );<br />&nbsp; &nbsp;}<br /><br />&nbsp; &nbsp;///////////////////////////////<br />&nbsp; &nbsp;// Pego el buffer auxiliar ////<br />&nbsp; &nbsp;BitBlt( hDC, rct->left, rct->top, rRect.right, rRect.bottom, hDC2, 0, 0, SRCCOPY );<br />&nbsp; &nbsp;SetBkColor( hDC2, lBkColorOld );<br />&nbsp; &nbsp;SelectObject( hDC2, hBmpOld );<br />&nbsp; &nbsp;DeleteObject( hBmp2 );<br />&nbsp; &nbsp;DeleteObject( hBmpOld );<br />&nbsp; &nbsp;DeleteDC( hDC2 );<br />&nbsp; &nbsp;///////////////////////////////<br /><br />&nbsp; &nbsp;if (bFlag)<br />&nbsp; &nbsp; &nbsp; rct->bottom++ ;<br /><br />}<br /><br /><br />************/</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWDISPBEGIN <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; HWND hWnd &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; HDC hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; HDC hDC2 ;<br />&nbsp; HBITMAP hBmp, hBmpOld ;<br />&nbsp; RECT rct;<br /><br />&nbsp; GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; hDC2 &nbsp; &nbsp;= CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />&nbsp; hBmp &nbsp; &nbsp;= CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top <span style="color: #000000;">&#41;</span>;<br />&nbsp; hBmpOld = SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmp <span style="color: #000000;">&#41;</span>;<br />&nbsp; BitBlt<span style="color: #000000;">&#40;</span> hDC2, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span>, rct.bottom, hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hWnd &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC &nbsp; &nbsp;, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC2 &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmp &nbsp; , <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmpOld, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWDISPEND <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// { hWnd, hDC, hDC2, hBmp, hBmpOld }</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;RECT rct;<br /><br />&nbsp; &nbsp;GetClientRect<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, &rct <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;BitBlt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top, <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DeleteDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> ;<br /><span style="color: #000000;">&#125;</span>&nbsp; &nbsp;<br /><br />&nbsp;</div>[/code:65xidiza]
Compilación para 12.05
Wbrwline_VC.c Para Harbour y MSVC2010 [code=fw:2glz6y8p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// se corrigio para harbour 3.0 y 3.1</span><br /><span style="color: #B900B9;">//Cambia todas las llamadas a funciones IS... por HB_IS... (por ejemplo: HB_ISLOG(...) en vez de ISLOG(...))</span><br /><span style="color: #B900B9;">//y además añade despues de los includes Antes de los #includes añade este define: #define _HB_API_INTERNAL_</span><br /><span style="color: #B900B9;">//</span><br /><br />void * __conArrayGet<span style="color: #000000;">&#40;</span> void *, void *, ... <span style="color: #000000;">&#41;</span>;<br />long __conGetNL<span style="color: #000000;">&#40;</span> void *, long * <span style="color: #000000;">&#41;</span>;<br />long __conRelease<span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br />#ifdef __HARBOUR__<br /><br /><span style="color: #00D7D7;">#define</span> _HB_API_INTERNAL_<br /><br />   <span style="color: #00D7D7;">#include</span> <hbapi.h><br />   <span style="color: #00D7D7;">#include</span> <hbapiitm.h><br />   <span style="color: #00D7D7;">#include</span> <hbvm.h><br />   <span style="color: #00D7D7;">#include</span> <hbstack.h><br />   <span style="color: #00D7D7;">#include</span> <hbvm.h><br />   <span style="color: #B900B9;">// #include <hbfast.h></span><br />   <span style="color: #00D7D7;">#define</span> MoveTo<span style="color: #000000;">&#40;</span> hDC, x, y <span style="color: #000000;">&#41;</span> MoveToEx<span style="color: #000000;">&#40;</span> hDC, x, y, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00D7D7;">#define</span> _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span> hb_vmPushSymbol<span style="color: #000000;">&#40;</span> &hb_symEval <span style="color: #000000;">&#41;</span><br />   <span style="color: #00D7D7;">#define</span> _xPushM  hb_vmPush<br />   <span style="color: #00D7D7;">#define</span> _PutLN   hb_vmPushLong<br />   <span style="color: #00D7D7;">#define</span> _xEval   hb_vmDo<br />   <span style="color: #00D7D7;">#define</span> _cEval0  hb_vmEvalBlock<br />   <span style="color: #00D7D7;">#define</span> _Get_Sym hb_dynsymFindName<br />#endif<br /><br /><br /><span style="color: #00D7D7;">#define</span> LOGICAL   HB_IT_LOGICAL<br /><span style="color: #00D7D7;">#define</span> NUMERIC   HB_IT_NUMERIC<br /><span style="color: #00D7D7;">#define</span> CHARACTER HB_IT_STRING<br /><span style="color: #00D7D7;">#define</span> BLOCK     HB_IT_BLOCK<br /><br /><span style="color: #00D7D7;">#define</span> HA_LEFT    <span style="color: #000000;">0</span>  <span style="color: #B900B9;">// by CeSoTech Alineaciones Horizontales y Verticales</span><br /><span style="color: #00D7D7;">#define</span> HA_RIGHT   <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HA_CENTER  <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> VA_TOP     <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> VA_BOTTOM  <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> VA_CENTER  <span style="color: #000000;">32</span><br /><br />#ifdef __FLAT__<br />#undef  PCLIPVAR<br /><span style="color: #00D7D7;">#define</span> PCLIPVAR PHB_ITEM<br />#endif<br /><br />#ifdef __XHARBOUR__<br />   void hb_storvni<span style="color: #000000;">&#40;</span> int iValue, int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />   long hb_parvnl<span style="color: #000000;">&#40;</span> int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />   int hb_parvni<span style="color: #000000;">&#40;</span> int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />   void hb_storvnl<span style="color: #000000;">&#40;</span> LONG lValue, int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />#endif<br /><br /><br /><br /><span style="color: #00C800;">static</span> far BOOL bAdjLastCol  ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bAdjBrowse   ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawHeaders ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawFooters ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wHeaderHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wFooterHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wLineHeight  ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> far BOOL bWorking;<br /><br />WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />                         WORD wAlign, int iLen, HFONT hFont,<br />                         BOOL bHeadFoot <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bFocused <span style="color: #000000;">&#41;</span> ;<br /><br />void MaskRegion<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, COLORREF cTrColor,<br />                 COLORREF cBackColor <span style="color: #000000;">&#41;</span>;<br /><br />void FrameDot<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br /><br />extern void WndDrawBox<span style="color: #000000;">&#40;</span> HDC, LPRECT, HPEN, HPEN <span style="color: #000000;">&#41;</span>;<br />extern void DrawBitmap<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth,<br />                        WORD wHeight, DWORD dwRaster <span style="color: #000000;">&#41;</span>;<br /><br /><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />                               PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />                               HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />                               PCLIPVAR pAJustify, WORD wPressed,<br />                               BOOL bHeader, WORD nStyle,<br />                               WORD nFocus, BOOL bFocused,<br />                               PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />                               WORD wRowPos, WORD nHeightCtrl,<br />                               LONG nClrLine, BOOL bFooter,<br />                               BOOL bSelect, PCLIPVAR pFont,<br />                               BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span> ;<br /><br /><br /><br />void DrawMasked<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow <span style="color: #000000;">&#41;</span>;<br />                  <span style="color: #B900B9;">// LOW    HIGH</span><br />extern int _dvtoi<span style="color: #000000;">&#40;</span> DWORD, DWORD <span style="color: #000000;">&#41;</span>;<br />void MsgStr<span style="color: #000000;">&#40;</span> long l <span style="color: #000000;">&#41;</span>;<br />LPSTR Str<span style="color: #000000;">&#40;</span> WORD w <span style="color: #000000;">&#41;</span>;<br /><br />#ifndef __FLAT__<br />   <span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #00C800;">static</span> far PCLIPSYMBOL pSkip = <span style="color: #000000;">0</span>;<br />#else<br />   <span style="color: #00C800;">static</span> long near GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />   PHB_DYNS pSkip = <span style="color: #00C800;">NULL</span>;<br />#endif<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void MaskRegion<span style="color: #000000;">&#40;</span> HDC hdc, RECT * rct, COLORREF cTransparentColor,<br />                        COLORREF cBackgroundColor <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />   HDC        hdcTemp, hdcObject, hdcBack, hdcMem;<br />   POINT      ptSize;<br />   COLORREF   cColor;<br />   HBITMAP    bmAndObject, bmAndBack, bmBackOld, bmObjectOld,<br />              bmAndTemp, bmTempOld, bmAndMem, bmMemOld;<br />   HBRUSH     hBrush, hBrOld;<br /><br />   ptSize.x = rct->right - rct->left + <span style="color: #000000;">1</span>;<br />   ptSize.y = rct->bottom - rct->top + <span style="color: #000000;">1</span>;<br /><br />   hBrush      = CreateSolidBrush<span style="color: #000000;">&#40;</span>cBackgroundColor<span style="color: #000000;">&#41;</span>;<br /><br />   hdcTemp     = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcObject   = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcBack     = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcMem      = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br /><br />   bmAndTemp   = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />   bmAndMem    = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />   bmAndObject = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br />   bmAndBack   = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br /><br />   bmTempOld   = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmAndTemp<span style="color: #000000;">&#41;</span>;<br />   bmMemOld    = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmAndMem<span style="color: #000000;">&#41;</span>;<br />   bmBackOld   = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmAndBack<span style="color: #000000;">&#41;</span>;<br />   bmObjectOld = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmAndObject<span style="color: #000000;">&#41;</span>;<br /><br />   hBrOld      = <span style="color: #000000;">&#40;</span>HBRUSH<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrush<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdc, rct->left, rct->top, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   SetMapMode<span style="color: #000000;">&#40;</span>hdcTemp, GetMapMode<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><br />   cColor = SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cTransparentColor<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cColor<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, NOTSRCCOPY<span style="color: #000000;">&#41;</span>;<br />   PatBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>, ptSize.x, ptSize.y, PATCOPY<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCPAINT<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdc, rct->left, rct->top, ptSize.x, ptSize.y, hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmTempOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmMemOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmBackOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmObjectOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcMem<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcBack<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcObject<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcTemp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifdef __CLIPPER__<br /><span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    int iRet = <span style="color: #000000;">0</span>;<br />    _cAt<span style="color: #000000;">&#40;</span> Array, wIndex, <span style="color: #000000;">-1</span>, ++_tos <span style="color: #000000;">&#41;</span>;<br /><br />    <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUMERIC <span style="color: #000000;">&#41;</span><br />        iRet = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br /><br />    <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUM_FLOAT <span style="color: #000000;">&#41;</span><br />        iRet = _dvtoi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer1, <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer2 <span style="color: #000000;">&#41;</span>;<br /><br />    --_tos;<br /><br />    <span style="color: #00C800;">return</span> iRet;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __XPP__<br /><span style="color: #00C800;">static</span> long GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   void * chItem = <span style="color: #000000;">0</span>;<br />   long l;<br /><br />   __conArrayGet<span style="color: #000000;">&#40;</span> Array, chItem, wIndex, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   __conGetNL<span style="color: #000000;">&#40;</span> chItem, &l <span style="color: #000000;">&#41;</span>;<br />   __conRelease<span style="color: #000000;">&#40;</span> chItem <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> l;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __HARBOUR__<br />   <span style="color: #00D7D7;">#define</span> GetInt<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span>  hb_arrayGetNL<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------=</span><br />                                                        <span style="color: #B900B9;">// ÚÄ1ra Col.a Pintar</span><br />                                                        <span style="color: #B900B9;">// ³</span><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />                               PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />                               HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />                               PCLIPVAR pAJustify, WORD wPressed,<br />                               BOOL bHeader, WORD nStyle,<br />                               WORD wFocus, BOOL bFocused,<br />                               PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />                               WORD wRowPos, WORD nHeightCtrl,<br />                               LONG nClrLine, BOOL bFooter,<br />                               BOOL bSelect, PCLIPVAR pFont,<br />                               BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   RECT box, wholebox, rctadj;<br />   int iMaxRight = rct->right;<br /><br />   WORD wLenJust = <span style="color: #000000;">0</span> ;<br />   #ifndef __HARBOUR__<br />   WORD wLen     = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />   CLV_WORD lJustify;<br />   #else<br />   WORD wLen     = hb_arrayLen<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />   PHB_ITEM uElem = hb_itemNew<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />   #endif<br />   WORD wType, wcLen;<br />   LONG lValue;<br />   char * cValue;<br />   HPEN hOldPen, hPen;<br />   BITMAP bmp;<br />   WORD wRow, wCol;<br />   LONG lColor ;<br />   HBRUSH hBrush;<br />   LONG lTextColorOld = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />   LONG lBkColorOld   = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />   PCLIPVAR pEvalOld ;<br />   HFONT hFont ; <span style="color: #B900B9;">// CeSoTech</span><br />   WORD wAlign ; <span style="color: #B900B9;">// CeSoTech</span><br /><br />   <span style="color: #B900B9;">// CeSoTech</span><br />   LONG nClrLineC = <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">2</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">8</span> ||<br />                      nStyle == <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span> ;<br /><br />   <span style="color: #B900B9;">// CeSoTech</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nClrLine >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// Desde Clipper manda color especifico linea</span><br />      nClrLineC = nClrLine ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span><br />      bHeader = <span style="color: #00C800;">FALSE</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span><br />      bHeader = <span style="color: #00C800;">TRUE</span> ; <span style="color: #B900B9;">//-> Para que lo pinte con similar aspecto</span><br /><br />   <span style="color: #B900B9;">//CeSoTech</span><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span>bHeader<span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />                        nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      rct->top--       ;<br /><br />   wholebox.top    = rct->top<span style="color: #000000;">+1</span>;<br />   wholebox.<span style="color: #0000ff;">left</span>   = rct->left;<br />   wholebox.bottom = rct->bottom;<br />   wholebox.<span style="color: #0000ff;">right</span>  = rct->right;<br /><br />   rct->right  = <span style="color: #000000;">0</span>;<br /><br />   box.top    = rct->top ;<br />   box.bottom = rct->bottom - <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wIndex | wIndex > wLen <span style="color: #000000;">&#41;</span><br />       wIndex = <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span><br />      #ifndef __HARBOUR__<br />         wLenJust = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />      #else<br />         wLenJust = hb_arrayLen<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />      #endif<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wLen <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br /><br />        rct->left   = rct->right;<br /><br />        rct->right  = <span style="color: #000000;">&#40;</span> wIndex == wLen ? iMaxRight<br />                                      : <span style="color: #000000;">rct</span>->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />        <span style="color: #B900B9;">// CeSoTech // Cuando estoy estoy en la ultima celda, NO pintar hasta</span><br />                    <span style="color: #B900B9;">// el final si no existe ajuste de ultima columna.</span><br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />           rct->right  = rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> +<span style="color: #000000;">&#40;</span>bHeader ? <span style="color: #000000;">1</span>: <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> ;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse <span style="color: #000000;">&#41;</span><br />              wholebox.<span style="color: #0000ff;">right</span> = rct->right ; <span style="color: #B900B9;">// Tambien ajusto el borde focus</span><br /><br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br />        wAlign = HA_LEFT | VA_CENTER ;  <span style="color: #B900B9;">// Alineacion por defecto</span><br />        wcLen = <span style="color: #000000;">0</span>;<br />        <span style="color: #B900B9;">///////// INICIO Toma de datos celda !!!</span><br /><br />        #ifndef __HARBOUR__<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />             _cAt<span style="color: #000000;">&#40;</span> pAJustify, wIndex, 0xFFFF, <span style="color: #000000;">&#40;</span> PCLIPVAR <span style="color: #000000;">&#41;</span> &lJustify <span style="color: #000000;">&#41;</span>;<br />             wAlign = lJustify.wWord ;<br />           <span style="color: #000000;">&#125;</span><br />           _cAt<span style="color: #000000;">&#40;</span> pAtext, wIndex, 0xFFFF, ++_tos <span style="color: #000000;">&#41;</span>;<br />           wType = _tos->wType;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />              lValue = <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              cValue = _VSTR<span style="color: #000000;">&#40;</span> _tos <span style="color: #000000;">&#41;</span>;<br />              wcLen = _tos->w2;<br />           <span style="color: #000000;">&#125;</span><br />        #else<br /><br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              hb_arrayGet<span style="color: #000000;">&#40;</span> pAJustify, wIndex, uElem <span style="color: #000000;">&#41;</span>;<br />              <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> hb_itemType<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span> & LOGICAL <span style="color: #000000;">&#41;</span> && hb_itemGetL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />                 wAlign = HA_RIGHT | VA_CENTER ;<br />              <span style="color: #00C800;">else</span><br />                 wAlign = hb_itemGetNL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br /><br />                    hb_itemClear<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #000000;">&#125;</span>    <br /><br />           <span style="color: #B900B9;">// uElem.type = HB_IT_NIL;</span><br />           hb_arrayGet<span style="color: #000000;">&#40;</span> pAtext, wIndex, uElem <span style="color: #000000;">&#41;</span>;<br />           wType = hb_itemType<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />              lValue = hb_itemGetNL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br /><span style="color: #B900B9;">//              cValue = hb_itemGetC( uElem );</span><br />                cValue = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_itemGetCPtr<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />                wcLen = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #000000;">&#125;</span><br /><br />        #endif<br />        <span style="color: #B900B9;">///////// FIN Toma de datos celda !!!</span><br /><br /><br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wFocus > <span style="color: #000000;">0</span> && wIndex != wFocus <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />           #ifndef __HARBOUR__<br />              _tos--;<br />           #endif<br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />               wIndex = wLen + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span><br />              ++wIndex;<br />           <span style="color: #00C800;">continue</span>;<br />        <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bTree ||<br />            <span style="color: #000000;">&#40;</span>GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Si NO es columna oculta (x Freeze)</span><br />        <span style="color: #000000;">&#123;</span>                                     <span style="color: #B900B9;">//(Es lo mismo no hacer esto,</span><br />                                              <span style="color: #B900B9;">// pero es para evitar hacer trabajar</span><br />                                              <span style="color: #B900B9;">// al codigo sin sentido !!! )</span><br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wType & NUMERIC<span style="color: #000000;">&#41;</span> && bTree <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lValue <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  FillRect<span style="color: #000000;">&#40;</span> hDC, rct, hBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> GetPixel<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->top <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  DrawMasked<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct->top, rct->left <span style="color: #000000;">&#41;</span>;<br />                  DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />               <span style="color: #000000;">&#125;</span><br /><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span>  <span style="color: #B900B9;">// Si es Numerico Bmp no Tree, o , es Character !!!!</span><br />           <span style="color: #000000;">&#123;</span><br /><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Bloque de Color Fondo Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />                    lBkColorOld = SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Bloque de Color Texto Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />                    lTextColorOld = SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br />               hFont = <span style="color: #000000;">0</span> ;<br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>      <span style="color: #B900B9;">// Bloque de Font Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />                     hFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/////// CeSoTech ///////</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top ++;<br /><br /><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// Es un BitMap</span><br />               <span style="color: #000000;">&#123;</span><br />                  FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct, nStyle, bSelect <span style="color: #000000;">&#41;</span>;<br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">else</span>                    <span style="color: #B900B9;">// Es una Cadena</span><br />               <span style="color: #000000;">&#123;</span><br />                  FW_DrawText<span style="color: #000000;">&#40;</span> hDC, rct,<br />                               <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span> ? cValue : <span style="color: #ff0000;">""</span>,<br />                               wAlign, wcLen, hFont, bHeader <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/////// CeSoTech restauracion de colores //////</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lTextColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  SetTextColor<span style="color: #000000;">&#40;</span> hDC, lTextColorOld <span style="color: #000000;">&#41;</span> ;<br />                  lTextColorOld = <span style="color: #000000;">-1</span> ;<br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lBkColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  SetBkColor<span style="color: #000000;">&#40;</span> hDC, lBkColorOld <span style="color: #000000;">&#41;</span> ;<br />                  lBkColorOld = <span style="color: #000000;">-1</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/// CeSoTech ///</span><br />               <span style="color: #B900B9;">// Si hay modalidad ajustar el Browse y no hay ajuste de ultima</span><br />               <span style="color: #B900B9;">// columna, deber‚ pintar hasta el final hasta cubrir toda</span><br />               <span style="color: #B900B9;">// el area, hasta llegar a la derecha del control. (Col.Ficticia)</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bAdjBrowse && wIndex == wLen && !bAdjLastCol &&<br />                    rct->right <= iMaxRight <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  rctadj.top    = rct->top;<br />                  rctadj.<span style="color: #0000ff;">left</span>   = rct->right ;<br />                  rctadj.bottom = rct->bottom;<br />                  rctadj.<span style="color: #0000ff;">right</span>  = wholebox.<span style="color: #0000ff;">right</span>  ;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />                     rctadj.top--;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wFocus == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Si No es CellStyle (Pinto hasta final)</span><br />                     ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, &rctadj, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bHeader && nStyle==<span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Pinto Bordes Header Falso</span><br />                   <span style="color: #000000;">&#123;</span><br />                      rctadj.<span style="color: #0000ff;">right</span>  = wholebox.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>  ;<br />                      rctadj.bottom = rctadj.bottom - <span style="color: #000000;">2</span> ;<br />                      WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />                      rctadj.bottom++  ;<br />                      rctadj.<span style="color: #0000ff;">right</span>++  ;<br />                      WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj,  hWhitePen, <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />                      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Si es Footer (Linea Negra de Arriba Foot)</span><br />                      <span style="color: #000000;">&#123;</span><br />                        hPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, rctadj.left<span style="color: #000000;">-1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, rctadj.right<span style="color: #000000;">+1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                      <span style="color: #000000;">&#125;</span><br /><br />                  <span style="color: #000000;">&#125;</span><br /><br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #B900B9;">/// CeSoTech Fin ///</span><br /><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top --;<br />           <span style="color: #000000;">&#125;</span><br /><br />           box.<span style="color: #0000ff;">left</span>   = rct->left;<br /><br />           box.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex < wLen && rct->right <= iMaxRight ?<br />                                                        rct->right - <span style="color: #000000;">1</span> :<br />                                                        iMaxRight - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />           <span style="color: #B900B9;">// CeSoTech // El Borde derecho de Box de la ultima columna,</span><br />                       <span style="color: #B900B9;">// no estirarlo cuando no exista ajuste de ultima columna</span><br />                       <span style="color: #B900B9;">// PERO cuando nLineStyle (nStyle) es 7/8 (Lineas Horiz)</span><br />                       <span style="color: #B900B9;">// queda anti-estetico cortar los renglones, cuando no hay</span><br />                       <span style="color: #B900B9;">// ajuste ult.col. y hay ajuste de browse. Por ello</span><br />                       <span style="color: #B900B9;">// se verificara que para cortar el borde no se de esta</span><br />                       <span style="color: #B900B9;">// condicion.</span><br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>! <span style="color: #000000;">&#40;</span>!bHeader && <span style="color: #000000;">&#40;</span>nStyle==<span style="color: #000000;">7</span> || nStyle==<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> && !bAdjLastCol && bAdjBrowse<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />               box.<span style="color: #0000ff;">right</span>  = rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> ;<br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bTree <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wPressed && <span style="color: #000000;">&#40;</span> wIndex == wPressed <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />              <span style="color: #000000;">&#123;</span><br />                WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hGrayPen, hWhitePen <span style="color: #000000;">&#41;</span>;<br />              <span style="color: #000000;">&#125;</span><br />              <span style="color: #00C800;">else</span><br /><span style="color: #B900B9;">/////////////  if(!bHeader)</span><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!bHeader || <span style="color: #000000;">&#40;</span>bHeader && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nStyle <span style="color: #000000;">&#41;</span><br />                  <span style="color: #000000;">&#123;</span><br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">0</span>:<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span>:<br />                    <span style="color: #B900B9;">//  hOldPen = SelectObject( hDC, GetStockObject( BLACK_PEN ) );</span><br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span>:<br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span>:<br />                        WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">4</span>:<br />                        box.bottom ++;<br />                        box.<span style="color: #0000ff;">right</span> ++;<br />                        FrameDot<span style="color: #000000;">&#40;</span> hDC, &box <span style="color: #000000;">&#41;</span>;<br />                        box.bottom --;<br />                        box.<span style="color: #0000ff;">right</span> --;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">7</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">8</span>:<br />                        hPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">5</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">6</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">9</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">10</span>:<br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC<span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>box.left><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />                        <span style="color: #000000;">&#123;</span><br />                           MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                           LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #000000;">&#125;</span><br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br /><br />                        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawFooters && nStyle >= <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />                        <span style="color: #000000;">&#123;</span><br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />                                     nHeightCtrl - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />                        <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />                          LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />                                     nStyle < <span style="color: #000000;">9</span> ? box.bottom<span style="color: #000000;">+1</span> : <span style="color: #000000;">nHeightCtrl</span> <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #000000;">&#125;</span><br /><br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                  <span style="color: #000000;">&#125;</span><br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">else</span>  <span style="color: #B900B9;">// Box para Headers !!!</span><br />               <span style="color: #000000;">&#123;</span><br />                  box.<span style="color: #0000ff;">left</span> ++;<br /><br />                  <span style="color: #B900B9;">// CeSoTech</span><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Linea negra sobre el Footer</span><br />                  <span style="color: #000000;">&#123;</span><br />                    hPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />                    hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />                    MoveTo<span style="color: #000000;">&#40;</span> hDC, box.left<span style="color: #000000;">-1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                    LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                    SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                  <span style="color: #000000;">&#125;</span><br /><br />                  box.right--  ;<br />                  box.bottom-- ;<br />                  WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />                  box.bottom++  ;<br />                  box.<span style="color: #0000ff;">right</span>++  ;<br />                  WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />                  box.<span style="color: #0000ff;">left</span> --;<br /><br />               <span style="color: #000000;">&#125;</span><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />              <span style="color: #000000;">&#123;</span><br />                 box.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">16</span>;<br />              <span style="color: #000000;">&#125;</span><br />           <span style="color: #000000;">&#125;</span><br /><br />          <span style="color: #B900B9;">// CeSoTech if( bFocused && wFocus > 0 && wIndex == wFocus )</span><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDrawFocusRect && bFocused && wFocus > <span style="color: #000000;">0</span> &&<br />               wIndex == wFocus && nStyle != <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />            rct->left++;<br />            rct->top++;<br />            DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, rct <span style="color: #000000;">&#41;</span>;<br />            rct->left--;<br />            rct->top--;<br />           <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #000000;">&#125;</span><br /><br />        #ifndef __HARBOUR__<br />           _tos--;<br />        #endif<br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            wIndex = wLen + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span><br />           ++wIndex;<br /><br /><br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bDrawFocusRect && !bTree && bFocused && wFocus==<span style="color: #000000;">0</span> && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CeSoTech</span><br />      DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &wholebox <span style="color: #000000;">&#41;</span>;<br /><br />  hb_itemRelease<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSELBOX <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC, nRow, nFirstCol, nCurCol,;</span><br />                     <span style="color: #B900B9;">//   lFocus, aSizes, hFont)</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wCol        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bFocused    = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR pAsizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   TEXTMETRIC tm;<br />   RECT rct;<br />   HFONT hOldFont;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// By CeSoTech</span><br />      wRow-- ;<br /><br />   rct.top    = tm.tmHeight * wRow ;<br />   rct.bottom = tm.tmHeight * <span style="color: #000000;">&#40;</span> wRow + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br />   rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex < wCol <span style="color: #000000;">&#41;</span><br />      rct.<span style="color: #0000ff;">left</span>  += GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex++ <span style="color: #000000;">&#41;</span>;<br /><br />   rct.<span style="color: #0000ff;">right</span>  =  rct.<span style="color: #0000ff;">left</span>+GetInt<span style="color: #000000;">&#40;</span> pAsizes, wCol <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br /><br />   MaskRegion<span style="color: #000000;">&#40;</span> hDC, &rct, GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>, GetSysColor<span style="color: #000000;">&#40;</span>COLOR_ACTIVECAPTION<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bFocused <span style="color: #000000;">&#41;</span><br />      DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWLINE <span style="color: #000000;">&#41;</span>        <span style="color: #B900B9;">// ( hWnd, hDC, nRow, aText, aSizes, nFirstItem, ;</span><br />                           <span style="color: #B900B9;">// nClrFore, nClrBack, hFont, lTree, aJustify, nPressed,</span><br />                           <span style="color: #B900B9;">// nStyle, nColAct, lFocused )</span><br />                           <span style="color: #B900B9;">// bTextColor, bBkColor, nClrLine, lFooter, lSelect,</span><br />                           <span style="color: #B900B9;">// bFont, lDrawFocusRect ) // New's by CesoTech</span><br /><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   WORD wHeight;<br />   RECT rct, box;<br />   PCLIPVAR bClrFore, bClrBack;<br />   COLORREF clrFore = <span style="color: #000000;">0</span>;<br />   COLORREF clrBack = <span style="color: #000000;">0</span>;<br />   HPEN hGrayPen    ;<br />   HPEN hWhitePen   ;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   BOOL bTree      = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bFooter = HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> ;  <span style="color: #B900B9;">// CeSoTech</span><br /><br />   WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   hGrayPen    = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />   hWhitePen   = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   nHeightCtrl = rct.bottom-rct.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />   SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Es una Cabecera</span><br />      wHeight = wHeaderHeight + <span style="color: #000000;">1</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bFooter <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Es una Cabecera</span><br />      <span style="color: #000000;">&#123;</span><br />         rct.top    = <span style="color: #000000;">0</span> ;<br />         rct.bottom = wHeaderHeight + <span style="color: #000000;">1</span> ;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />      <span style="color: #000000;">&#123;</span><br />        rct.top    = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  ;<br />        rct.bottom = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * wRow<span style="color: #000000;">&#41;</span>  ;<br />      <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />      rct.top    = rct.bottom - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br /><br />   PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, 0xFFFF <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, 0xFFFF <span style="color: #000000;">&#41;</span>,<br />                 hWhitePen, hGrayPen, bTree,<br />                 HB_ISARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>,<br />                 <span style="color: #000000;">&#40;</span>wRow == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                 hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span>,<br />                 HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                 bFooter,                                <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span>,  <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span>;<span style="color: #B900B9;">// CeSoTech</span><br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />       ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.top,    <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> AWBRWROWDIM <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd      = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow      = <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont    = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC  hDC       = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   TEXTMETRIC tm;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />   tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow++, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseX<span style="color: #000000;">&#40;</span> WORD wX <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span> * wX / LOWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseY<span style="color: #000000;">&#40;</span> WORD wY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">return</span> <span style="color: #000000;">8</span> * wY / HIWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWRECT <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRow, aSizes, nFirstItem, nCol,</span><br />                   <span style="color: #B900B9;">//   nLineStyle, nWidthVScroll )</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />   HDC hDC          = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wHeight ;<br />   RECT rct;<br />   WORD nStyle = HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ? hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><br />   #ifdef __CLIPPER__<br />      PCLIPVAR paSizes = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />      WORD wLen        = _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />   #else<br />      #ifdef __HARBOUR__<br /><span style="color: #B900B9;">//       void * paSizes = ( void * ) _param( 3, HB_IT_ARRAY );</span><br />         WORD wLen      = hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />      #else<br />         void * paSizes = <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />         WORD wLen      = _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />      #endif<br />   #endif<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wCol        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wMaxRight;<br />   LONG l;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wCol || wCol > wLen <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">return</span>;<br /><br /><br />   GetWindowRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   wMaxRight = rct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   rct.top    = rct.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />                <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br /><br />   rct.bottom = rct.top + wHeight;<br />   rct.<span style="color: #0000ff;">right</span>  = rct.<span style="color: #0000ff;">left</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />        rct.<span style="color: #0000ff;">left</span>   = rct.<span style="color: #0000ff;">right</span>;<br /><br />        #ifndef __FLAT__<br /><br />           rct.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />                                         : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + GetInt<span style="color: #000000;">&#40;</span> paSizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />        #else<br />           #ifndef __HARBOUR__<br />              <span style="color: #00D7D7;">#define</span> _parnl<span style="color: #000000;">&#40;</span>x,y<span style="color: #000000;">&#41;</span> PARNL<span style="color: #000000;">&#40;</span>x,params,y<span style="color: #000000;">&#41;</span>;<br />           #endif<br />           l = hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, wIndex <span style="color: #000000;">&#41;</span>;<br /><br />           rct.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />                                         : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + l <span style="color: #000000;">&#41;</span>;<br />        #endif<br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> >= wMaxRight <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            wIndex = wCol + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />            rct.<span style="color: #0000ff;">right</span> = wMaxRight;<br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span><br />            wIndex++;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />   #ifdef __XPP__<br />      <span style="color: #00D7D7;">#define</span> _storni<span style="color: #000000;">&#40;</span> x, y, z <span style="color: #000000;">&#41;</span> STORNI<span style="color: #000000;">&#40;</span> x, params, y, z <span style="color: #000000;">&#41;</span><br />   #endif<br /><br /><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />      rct.top-- ;  <span style="color: #B900B9;">// Las coord.de edicion deberan ser mas arriba tambien !!!</span><br /><br /><br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.top,    <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">left</span>,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wMaxRight <= rct.<span style="color: #0000ff;">right</span> <span style="color: #000000;">&#41;</span> ?<br />              wMaxRight - hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">right</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWPANE <span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// ( hWnd, hDC, Self, bLine, aSizes, nFirstItem,</span><br />                           <span style="color: #B900B9;">//   nClrFore, nClrBack, hFont, aJustify, nStyle</span><br />                           <span style="color: #B900B9;">//   lCellStyle, lFocused ) -> nRowsSkipped</span><br />                           <span style="color: #B900B9;">//   bTextColor, bBkColor, nClrLine, nColorFondo, bFont ) // New's by CesoTech</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRows;<br />   WORD wLastBottom = <span style="color: #000000;">0</span>;<br />   WORD wRow        = <span style="color: #000000;">1</span>;<br />   WORD wSkipped    = <span style="color: #000000;">1</span>;<br />   PCLIPVAR <span style="color: #00C800;">Self</span>    = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR bLine   = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR pASizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   WORD wHeight ;<br />   RECT rct, box, <span style="color: #00C800;">client</span>;<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR bClrFore = <span style="color: #000000;">0</span>, bClrBack = <span style="color: #000000;">0</span>;<br />   COLORREF clrFore = <span style="color: #000000;">0</span>;<br />   COLORREF clrBack = <span style="color: #000000;">0</span>;<br />   HPEN hGrayPen    = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />   HPEN hWhitePen   = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br />   #ifndef __HARBOUR__<br />   BOOL bColBlock   = pASizes->wType & BLOCK;<br />   #else<br />   BOOL bColBlock   = hb_itemType<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> & BLOCK;<br />   PHB_ITEM aLine = hb_itemNew<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />   #endif<br />   PCLIPVAR pAJustify = HB_ISARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>: <span style="color: #000000;">0</span>;<br />   WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br />   WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #00C800;">else</span><br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! pSkip <span style="color: #000000;">&#41;</span><br />       pSkip = _Get_Sym<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SKIP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #B900B9;">/////////////////////////</span><br />   <span style="color: #B900B9;">// Borremos el Area de la derecha no coubierta</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse && !bAdjLastCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />       GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />       SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />       <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> wIndex=wIndex ; wIndex <= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>; wIndex++ <span style="color: #000000;">&#41;</span><br />       <span style="color: #000000;">&#123;</span><br />            rct.<span style="color: #0000ff;">left</span> += hb_parvni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, wIndex <span style="color: #000000;">&#41;</span> ;<br />       <span style="color: #000000;">&#125;</span><br /><br />       <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">7</span> || nStyle == <span style="color: #000000;">8</span> || nStyle == <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />          rct.<span style="color: #0000ff;">left</span>++;<br /><br />       ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />                   &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />       wIndex = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />       GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">/////////////////////////</span><br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &client <span style="color: #000000;">&#41;</span>;<br /><br />   nHeightCtrl = <span style="color: #00C800;">client</span>.bottom-<span style="color: #00C800;">client</span>.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   wRows = WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bClrFore <span style="color: #000000;">&#41;</span><br />      SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />      SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wRow <= wRows && wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      rct.top    = <span style="color: #00C800;">client</span>.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />                   <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />      rct.bottom = rct.top + wHeight;<br />      rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br />      rct.<span style="color: #0000ff;">right</span>  = <span style="color: #00C800;">client</span>.<span style="color: #0000ff;">right</span>;<br /><br />      #ifndef __HARBOUR__<br /><br />         _cEval0<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span>;<br />         _xPushM<span style="color: #000000;">&#40;</span> _eval <span style="color: #000000;">&#41;</span>;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />            SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />            SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bColBlock <span style="color: #000000;">&#41;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span>;<br /><br />         PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, _tos,<br />                       <span style="color: #000000;">&#40;</span> bColBlock ? _eval : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />                       hWhitePen, hGrayPen,<br />                       bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />                       hb_parni <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>,                           <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         _tos--;<br /><br />         _PutSym<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span>;<br />         _xPushM<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />         _PutQ<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />         _xSend<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />      #else<br />      <span style="color: #000000;">&#123;</span><br />         <span style="color: #B900B9;">// aLine.type = HB_IT_NIL;</span><br /><br />         <span style="color: #B900B9;">// Esta extension de xHarbour no se puede aplicar en Harbour</span><br />         <span style="color: #B900B9;">// hb_itemForwardValue( aLine, hb_vmEvalBlock( bLine ) );</span><br />        <br />         hb_itemCopy<span style="color: #000000;">&#40;</span> aLine, hb_vmEvalBlock<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />            SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />            SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, aLine,<br />                       <span style="color: #000000;">&#40;</span> bColBlock ? hb_vmEvalBlock<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />                       hWhitePen, hGrayPen,<br />                       bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />                       hb_parnl <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>,                           <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            hb_vmPushSymbol<span style="color: #000000;">&#40;</span> hb_dynsymSymbol<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />            hb_vmPush<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />            hb_vmPushLong<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />            hb_vmDo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br />      <span style="color: #000000;">&#125;</span><br /><br />      #endif<br /><br />      wLastBottom = rct.bottom ;<br />      wSkipped = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />          wRow++;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #B900B9;">////////////////////////</span><br />   <span style="color: #B900B9;">// Borremos el Area de Abajo no cubierta</span><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   rct.top = wLastBottom + <span style="color: #000000;">1</span> ;<br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wLastBottom == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// No Mostro Registros</span><br />      rct.top = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   rct.bottom-=  <span style="color: #000000;">1</span> + <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />       nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />      rct.top--;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bDrawFooters <span style="color: #000000;">&#41;</span><br />      rct.bottom++;<br /><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rct.top < rct.bottom <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />                  &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">////////////////////////</span><br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />       ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br /><br />   hb_retni<span style="color: #000000;">&#40;</span> wRow <span style="color: #000000;">&#41;</span>;<br /><br />   hb_itemRelease<span style="color: #000000;">&#40;</span> aLine <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSET <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( lAdjLastCol, lAdjBrowse, lDrawHeaders, lDrawFooters )</span><br /><span style="color: #000000;">&#123;</span>                                                                  <span style="color: #B900B9;">// CeSoTech</span><br />    bAdjLastCol  =  hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste o no de ultima columna al control.</span><br />    bAdjBrowse   =  hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste del Browse a la derecha</span><br />                                 <span style="color: #B900B9;">// cuando no existe ajuste de ultima columna.</span><br />    bDrawHeaders = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>  ; <span style="color: #B900B9;">// Si quiere visualizar Headers !!!</span><br />    bDrawFooters = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>  ; <span style="color: #B900B9;">// Si se quiere visualizar Footers !!!</span><br /><br />    wHeaderHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>  ;<br />    wFooterHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>  ;<br />    wLineHeight  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>  ;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Devuelve Nro. de Filas de Datos (No incluye Headers ni Footers)</span><br /><span style="color: #00C800;">static</span> WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   WORD wHeight;<br />   RECT rct;<br />   WORD wRows;<br />   BOOL bDCDestroy = <span style="color: #00C800;">FALSE</span>;<br />   HFONT hOldFont;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDCDestroy = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   wRows = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.bottom - rct.top - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> -<br />             <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> -<br />             <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> / wHeight ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDCDestroy <span style="color: #000000;">&#41;</span><br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> wRows;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWROWS <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC, hFont )</span><br /><span style="color: #000000;">&#123;</span><br />   hb_retni<span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />                      <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSCRL <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, nRows, hFont, nLineStyle, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd   = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   int wRows  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC hDC = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;  <span style="color: #B900B9;">//  = GetDC( hWnd );</span><br />   RECT rct;<br />   WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawHeaders <span style="color: #000000;">&#41;</span><br />      rct.top += wHeaderHeight<span style="color: #000000;">+1</span> ;<br /><br /><br />   <span style="color: #B900B9;">// Defino Bottom de Area del Scroll</span><br />   rct.bottom = <span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> +<br />                <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>  ;<br /><br /><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">// CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #B900B9;">// El Area Scroll deber  entonces no tomar el separator (forma parte de ant)</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />          nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      rct.bottom++;   <span style="color: #B900B9;">// Debe tomarse dado que no pinta celda 1 una mas arriba</span><br /><br />  <span style="color: #B900B9;">// ScrollWindowEx( hWnd, 0, -( (wLineHeight+1) * wRows ), 0, &rct, 0, 0, 0 );</span><br /><br />   ScrollDC<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, -<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> * wRows <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, &rct, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />  <span style="color: #B900B9;">//  ReleaseDC( hWnd, hDC );</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWHEIGHT <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hFont )</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd   = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC hDC     = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   TEXTMETRIC tm;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />   hb_retni<span style="color: #000000;">&#40;</span> tm.tmHeight <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />                         WORD wAlign, int iWidth,<br />                         HFONT hFont, BOOL bHeadFoot <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />   RECT rcttmp     ;<br />   int iHeight     ;<br />   UINT uiFlag     ;<br />   HFONT hOldFont  ;<br />   int iFactor     ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #B900B9;">/////////////////////////////</span><br />   <span style="color: #B900B9;">// Alineaciones Verticales //</span><br />   <span style="color: #B900B9;">/////////////////////////////</span><br />   iHeight = DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, DT_CALCRECT <span style="color: #000000;">&#41;</span> ;<br />   iFactor = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_TOP <span style="color: #000000;">&#41;</span><br />      iFactor = <span style="color: #000000;">0</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_BOTTOM <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      iFactor = <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight - <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br />   rcttmp.top    = rct->top + iFactor ;<br />   rcttmp.bottom = rct->bottom ;<br />   rcttmp.<span style="color: #0000ff;">left</span>   = rct->left   ;<br />   rcttmp.<span style="color: #0000ff;">right</span>  = rct->right  ;<br /><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rcttmp.top < rct->top <span style="color: #000000;">&#41;</span><br />     rcttmp.top = rct->top ;<br /><br />   <span style="color: #B900B9;">///////////////////////////////</span><br />   <span style="color: #B900B9;">// Alineaciones Horizontales //</span><br />   <span style="color: #B900B9;">///////////////////////////////</span><br />   uiFlag = DT_LEFT ;<br />   rcttmp.<span style="color: #0000ff;">left</span>+= <span style="color: #000000;">2</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_CENTER <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />     rcttmp.left-= <span style="color: #000000;">2</span> ;<br />     uiFlag = DT_CENTER ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_RIGHT <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />     rcttmp.left-= <span style="color: #000000;">2</span> ;<br />     uiFlag = DT_RIGHT ;<br />     rcttmp.right-= <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br />   ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ETO_OPAQUE | ETO_CLIPPED, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, uiFlag | DT_NOPREFIX <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   WORD wWidth   ;<br />   WORD wHeight  ;<br />   WORD wRow ;<br />   WORD wCol ;<br />   BITMAP bm;<br />   LONG lBkColorBMP, lBkColor = GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />   BOOL bFlag = <span style="color: #00C800;">FALSE</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">3</span> || nStyle == <span style="color: #000000;">5</span> ||<br />         nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> && bSelect <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      rct->bottom-- ;<br />      bFlag = <span style="color: #00C800;">TRUE</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   wWidth  = rct->right - rct->left ;<br />   wHeight = rct->bottom - rct->top ;<br />   GetObject<span style="color: #000000;">&#40;</span> hBmp, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wHeight > bm.bmHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      wRow = rct->top + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wHeight - bm.bmHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />      wHeight = bm.bmHeight ;<br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      wRow = rct->top ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wWidth > bm.bmWidth <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      wCol = rct->left + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wWidth - bm.bmWidth <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />      wWidth = bm.bmWidth ;<br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      wCol = rct->left ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   rct->bottom++;<br />   ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   rct->bottom--;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hBmp > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBmp, wRow, wCol, wWidth, wHeight, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> lBkColorBMP = GetPixel<span style="color: #000000;">&#40;</span> hDC, wCol, wRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != lBkColor<span style="color: #000000;">&#41;</span><br />           MaskRegion<span style="color: #000000;">&#40;</span> hDC, rct, lBkColorBMP, lBkColor <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bFlag<span style="color: #000000;">&#41;</span><br />      rct->bottom++ ;<br /><br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #B900B9;">/*******<br /><br /><br />static void FW_DrawBitmapCenter( HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect )<br />{<br />   WORD wWidth   ;<br />   WORD wHeight  ;<br />   WORD wRow ;<br />   WORD wCol ;<br />   BITMAP bm;<br />   LONG lBkColorBMP, lBkColor = GetBkColor( hDC ), lBkColorOld;<br />   BOOL bFlag = FALSE ;<br /><br />   RECT rRect ;<br />   HDC hDC2 ;<br />   HBITMAP hBmp2, hBmpOld ;<br /><br /><br />   if ( (nStyle == 0 || nStyle == 3 || nStyle == 5 ||<br />          nStyle == 6 || nStyle == 9 || nStyle == 10) && bSelect )<br />   {<br />      rct->bottom-- ;<br />      bFlag = TRUE ;<br />   }<br /><br />   ///////////////////////////////<br />   // Creo un buffer auxiliar ////<br />   rRect.top    = 0 ;<br />   rRect.left   = 0 ;<br />   rRect.right  = rct->right - rct->left ;<br />   rRect.bottom = rct->bottom - rct->top ;<br /><br />   hDC2    = CreateCompatibleDC( hDC );<br />   hBmp2   = CreateCompatibleBitmap( hDC, rRect.right, rRect.bottom );<br />   hBmpOld = SelectObject( hDC2, hBmp2 );<br />   BitBlt( hDC2, 0, 0, rRect.right, rRect.bottom, hDC, 0, 0, SRCCOPY );<br />   ///////////////////////////////<br /><br /><br />   wWidth  = rct->right - rct->left ;<br />   wHeight = rct->bottom - rct->top ;<br />   GetObject( hBmp, sizeof( BITMAP ), ( LPSTR ) &bm );<br /><br />   if ( wHeight > bm.bmHeight )<br />   {<br />      wRow = 0 + ( ( wHeight - bm.bmHeight ) / 2 ) ;<br />      wHeight = bm.bmHeight ;<br />   } else<br />   {<br />      wRow = 0 ;<br />   }<br /><br />   if ( wWidth > bm.bmWidth )<br />   {<br />      wCol = 0 + ( ( wWidth - bm.bmWidth ) / 2 ) ;<br />      wWidth = bm.bmWidth ;<br />   } else<br />   {<br />      wCol = 0 ;<br />   }<br /><br />   rRect.bottom++;<br />   lBkColorOld = SetBkColor( hDC2, lBkColor );<br />   ExtTextOut( hDC2, 0, 0, ETO_OPAQUE, &rRect, "", 0, 0 );<br />   rRect.bottom--;<br /><br />   if ( hBmp > 0 )<br />   {<br />      DrawBitmap( hDC2, hBmp, wRow, wCol, wWidth, wHeight, 0 ) ;<br />      if( ( lBkColorBMP = GetPixel( hDC2, wCol, wRow ) ) != lBkColor)<br />           MaskRegion( hDC2, &rRect, lBkColorBMP, lBkColor );<br />   }<br /><br />   ///////////////////////////////<br />   // Pego el buffer auxiliar ////<br />   BitBlt( hDC, rct->left, rct->top, rRect.right, rRect.bottom, hDC2, 0, 0, SRCCOPY );<br />   SetBkColor( hDC2, lBkColorOld );<br />   SelectObject( hDC2, hBmpOld );<br />   DeleteObject( hBmp2 );<br />   DeleteObject( hBmpOld );<br />   DeleteDC( hDC2 );<br />   ///////////////////////////////<br /><br />   if (bFlag)<br />      rct->bottom++ ;<br /><br />}<br /><br /><br />************/</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWDISPBEGIN <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />  HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  HDC hDC          = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />  HDC hDC2 ;<br />  HBITMAP hBmp, hBmpOld ;<br />  RECT rct;<br /><br />  GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />  hDC2    = CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />  hBmp    = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top <span style="color: #000000;">&#41;</span>;<br />  hBmpOld = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmp <span style="color: #000000;">&#41;</span>;<br />  BitBlt<span style="color: #000000;">&#40;</span> hDC2, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span>, rct.bottom, hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br /><br />  hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hWnd   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC    , <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC2   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmp   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmpOld, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWDISPEND <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// { hWnd, hDC, hDC2, hBmp, hBmpOld }</span><br /><span style="color: #000000;">&#123;</span><br />   RECT rct;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top, <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br />   SelectObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">return</span> ;<br /><span style="color: #000000;">&#125;</span>   <br /><br /> </div>[/code:2glz6y8p]
Compilación para 12.05
Wbrwlineg.c para Harbour y MINGW, hay una pequeña modificacion con los metodos FWDISPBEGIN por FW_DISPBEGIN y FWDISPEND por FW_DISPEND dan error de modulo duplicado solo hay que reemplazarlos en el código de wbrowse.prg de Hernan. [code=fw:1tjh0mnr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// se corrigio para harbour 3.0 y 3.1</span><br /><span style="color: #B900B9;">//Cambia todas las llamadas a funciones IS... por HB_IS... (por ejemplo: HB_ISLOG(...) en vez de ISLOG(...))</span><br /><span style="color: #B900B9;">//y además añade despues de los includes Antes de los #includes añade este define: #define _HB_API_INTERNAL_</span><br /><span style="color: #B900B9;">//</span><br /><br />void * __conArrayGet<span style="color: #000000;">&#40;</span> void *, void *, ... <span style="color: #000000;">&#41;</span>;<br />long __conGetNL<span style="color: #000000;">&#40;</span> void *, long * <span style="color: #000000;">&#41;</span>;<br />long __conRelease<span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br />#ifdef __HARBOUR__<br /><br /><span style="color: #00D7D7;">#define</span> _HB_API_INTERNAL_<br /><br />   <span style="color: #00D7D7;">#include</span> <hbapi.h><br />   <span style="color: #00D7D7;">#include</span> <hbapiitm.h><br />   <span style="color: #00D7D7;">#include</span> <hbvm.h><br />   <span style="color: #00D7D7;">#include</span> <hbstack.h><br />   <span style="color: #00D7D7;">#include</span> <hbvm.h><br />   <span style="color: #B900B9;">// #include <hbfast.h></span><br />   <span style="color: #00D7D7;">#define</span> MoveTo<span style="color: #000000;">&#40;</span> hDC, x, y <span style="color: #000000;">&#41;</span> MoveToEx<span style="color: #000000;">&#40;</span> hDC, x, y, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00D7D7;">#define</span> _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span> hb_vmPushSymbol<span style="color: #000000;">&#40;</span> &hb_symEval <span style="color: #000000;">&#41;</span><br />   <span style="color: #00D7D7;">#define</span> _xPushM  hb_vmPush<br />   <span style="color: #00D7D7;">#define</span> _PutLN   hb_vmPushLong<br />   <span style="color: #00D7D7;">#define</span> _xEval   hb_vmDo<br />   <span style="color: #00D7D7;">#define</span> _cEval0  hb_vmEvalBlock<br />   <span style="color: #00D7D7;">#define</span> _Get_Sym hb_dynsymFindName<br />#endif<br /><br /><br /><span style="color: #00D7D7;">#define</span> LOGICAL   HB_IT_LOGICAL<br /><span style="color: #00D7D7;">#define</span> NUMERIC   HB_IT_NUMERIC<br /><span style="color: #00D7D7;">#define</span> CHARACTER HB_IT_STRING<br /><span style="color: #00D7D7;">#define</span> BLOCK     HB_IT_BLOCK<br /><br /><span style="color: #00D7D7;">#define</span> HA_LEFT    <span style="color: #000000;">0</span>  <span style="color: #B900B9;">// by CeSoTech Alineaciones Horizontales y Verticales</span><br /><span style="color: #00D7D7;">#define</span> HA_RIGHT   <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HA_CENTER  <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> VA_TOP     <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> VA_BOTTOM  <span style="color: #000000;">8</span><br /><span style="color: #00D7D7;">#define</span> VA_CENTER  <span style="color: #000000;">32</span><br /><br />#ifdef __FLAT__<br />#undef  PCLIPVAR<br /><span style="color: #00D7D7;">#define</span> PCLIPVAR PHB_ITEM<br />#endif<br /><br />#ifdef __XHARBOUR__<br />   void hb_storvni<span style="color: #000000;">&#40;</span> int iValue, int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />   long hb_parvnl<span style="color: #000000;">&#40;</span> int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />   int hb_parvni<span style="color: #000000;">&#40;</span> int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />   void hb_storvnl<span style="color: #000000;">&#40;</span> LONG lValue, int iParam, int iIndex <span style="color: #000000;">&#41;</span>;<br />#endif<br /><br /><br /><br /><span style="color: #00C800;">static</span> far BOOL bAdjLastCol  ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bAdjBrowse   ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawHeaders ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far BOOL bDrawFooters ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wHeaderHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wFooterHeight; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> far WORD wLineHeight  ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> far BOOL bWorking;<br /><br /><span style="color: #00C800;">static</span> WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />                         WORD wAlign, int iLen, HFONT hFont,<br />                         BOOL bHeadFoot <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bFocused <span style="color: #000000;">&#41;</span> ;<br /><br /><span style="color: #00C800;">static</span> void MaskRegion<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, COLORREF cTrColor,<br />                 COLORREF cBackColor <span style="color: #000000;">&#41;</span>;<br /><br />void FrameDot<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br /><br />extern void WndDrawBox<span style="color: #000000;">&#40;</span> HDC, LPRECT, HPEN, HPEN <span style="color: #000000;">&#41;</span>;<br />extern void DrawBitmap<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow, WORD wWidth,<br />                        WORD wHeight, DWORD dwRaster <span style="color: #000000;">&#41;</span>;<br /><br /><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />                               PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />                               HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />                               PCLIPVAR pAJustify, WORD wPressed,<br />                               BOOL bHeader, WORD nStyle,<br />                               WORD nFocus, BOOL bFocused,<br />                               PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />                               WORD wRowPos, WORD nHeightCtrl,<br />                               LONG nClrLine, BOOL bFooter,<br />                               BOOL bSelect, PCLIPVAR pFont,<br />                               BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span> ;<br /><br /><br /><br />void DrawMasked<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD wCol, WORD wRow <span style="color: #000000;">&#41;</span>;<br />                  <span style="color: #B900B9;">// LOW    HIGH</span><br />extern int _dvtoi<span style="color: #000000;">&#40;</span> DWORD, DWORD <span style="color: #000000;">&#41;</span>;<br />void MsgStr<span style="color: #000000;">&#40;</span> long l <span style="color: #000000;">&#41;</span>;<br />LPSTR Str<span style="color: #000000;">&#40;</span> WORD w <span style="color: #000000;">&#41;</span>;<br /><br />#ifndef __FLAT__<br />   <span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #00C800;">static</span> far PCLIPSYMBOL pSkip = <span style="color: #000000;">0</span>;<br />#else<br />   <span style="color: #00C800;">static</span> long near GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span>;<br />   PHB_DYNS pSkip = <span style="color: #00C800;">NULL</span>;<br />#endif<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void MaskRegion<span style="color: #000000;">&#40;</span> HDC hdc, RECT * rct, COLORREF cTransparentColor,<br />                        COLORREF cBackgroundColor <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />   HDC        hdcTemp, hdcObject, hdcBack, hdcMem;<br />   POINT      ptSize;<br />   COLORREF   cColor;<br />   HBITMAP    bmAndObject, bmAndBack, bmBackOld, bmObjectOld,<br />              bmAndTemp, bmTempOld, bmAndMem, bmMemOld;<br />   HBRUSH     hBrush, hBrOld;<br /><br />   ptSize.x = rct->right - rct->left + <span style="color: #000000;">1</span>;<br />   ptSize.y = rct->bottom - rct->top + <span style="color: #000000;">1</span>;<br /><br />   hBrush      = CreateSolidBrush<span style="color: #000000;">&#40;</span>cBackgroundColor<span style="color: #000000;">&#41;</span>;<br /><br />   hdcTemp     = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcObject   = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcBack     = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br />   hdcMem      = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span>;<br /><br />   bmAndTemp   = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />   bmAndMem    = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hdc, ptSize.x, ptSize.y<span style="color: #000000;">&#41;</span>;<br />   bmAndObject = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br />   bmAndBack   = CreateBitmap<span style="color: #000000;">&#40;</span>ptSize.x, ptSize.y, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br /><br />   bmTempOld   = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmAndTemp<span style="color: #000000;">&#41;</span>;<br />   bmMemOld    = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmAndMem<span style="color: #000000;">&#41;</span>;<br />   bmBackOld   = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmAndBack<span style="color: #000000;">&#41;</span>;<br />   bmObjectOld = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmAndObject<span style="color: #000000;">&#41;</span>;<br /><br />   hBrOld      = <span style="color: #000000;">&#40;</span>HBRUSH<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrush<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdc, rct->left, rct->top, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   SetMapMode<span style="color: #000000;">&#40;</span>hdcTemp, GetMapMode<span style="color: #000000;">&#40;</span>hdc<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><br />   cColor = SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cTransparentColor<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   SetBkColor<span style="color: #000000;">&#40;</span>hdcTemp, cColor<span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span>hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, NOTSRCCOPY<span style="color: #000000;">&#41;</span>;<br />   PatBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>, ptSize.x, ptSize.y, PATCOPY<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcObject, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcBack, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCAND<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ptSize.x, ptSize.y, hdcTemp, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCPAINT<span style="color: #000000;">&#41;</span>;<br />   BitBlt<span style="color: #000000;">&#40;</span>hdc, rct->left, rct->top, ptSize.x, ptSize.y, hdcMem, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY<span style="color: #000000;">&#41;</span>;<br /><br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, hBrOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcTemp, bmTempOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcMem, bmMemOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcBack, bmBackOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span>SelectObject<span style="color: #000000;">&#40;</span>hdcObject, bmObjectOld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcMem<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcBack<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcObject<span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span>hdcTemp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />#ifdef __CLIPPER__<br /><span style="color: #00C800;">static</span> int near GetInt<span style="color: #000000;">&#40;</span> PCLIPVAR Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    int iRet = <span style="color: #000000;">0</span>;<br />    _cAt<span style="color: #000000;">&#40;</span> Array, wIndex, <span style="color: #000000;">-1</span>, ++_tos <span style="color: #000000;">&#41;</span>;<br /><br />    <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUMERIC <span style="color: #000000;">&#41;</span><br />        iRet = <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br /><br />    <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> _tos->wType & NUM_FLOAT <span style="color: #000000;">&#41;</span><br />        iRet = _dvtoi<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer1, <span style="color: #000000;">&#40;</span>DWORD<span style="color: #000000;">&#41;</span> _tos->pPointer2 <span style="color: #000000;">&#41;</span>;<br /><br />    --_tos;<br /><br />    <span style="color: #00C800;">return</span> iRet;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __XPP__<br /><span style="color: #00C800;">static</span> long GetInt<span style="color: #000000;">&#40;</span> void * Array, WORD wIndex <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   void * chItem = <span style="color: #000000;">0</span>;<br />   long l;<br /><br />   __conArrayGet<span style="color: #000000;">&#40;</span> Array, chItem, wIndex, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   __conGetNL<span style="color: #000000;">&#40;</span> chItem, &l <span style="color: #000000;">&#41;</span>;<br />   __conRelease<span style="color: #000000;">&#40;</span> chItem <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> l;<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#ifdef __HARBOUR__<br />   <span style="color: #00D7D7;">#define</span> GetInt<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span>  hb_arrayGetNL<span style="color: #000000;">&#40;</span> Array, wIndex <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------=</span><br />                                                        <span style="color: #B900B9;">// ÚÄ1ra Col.a Pintar</span><br />                                                        <span style="color: #B900B9;">// ³</span><br /><span style="color: #00C800;">static</span> void near PaintTheLine<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, WORD wIndex,<br />                               PCLIPVAR pAtext, PCLIPVAR pAsizes,<br />                               HPEN hWhitePen, HPEN hGrayPen, BOOL bTree,<br />                               PCLIPVAR pAJustify, WORD wPressed,<br />                               BOOL bHeader, WORD nStyle,<br />                               WORD wFocus, BOOL bFocused,<br />                               PCLIPVAR pTextColor, PCLIPVAR pBkColor,<br />                               WORD wRowPos, WORD nHeightCtrl,<br />                               LONG nClrLine, BOOL bFooter,<br />                               BOOL bSelect, PCLIPVAR pFont,<br />                               BOOL bDrawFocusRect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   RECT box, wholebox, rctadj;<br />   int iMaxRight = rct->right;<br /><br />   WORD wLenJust = <span style="color: #000000;">0</span> ;<br />   #ifndef __HARBOUR__<br />   WORD wLen     = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />   CLV_WORD lJustify;<br />   #else<br />   WORD wLen     = hb_arrayLen<span style="color: #000000;">&#40;</span> pAtext <span style="color: #000000;">&#41;</span>;<br />   PHB_ITEM uElem = hb_itemNew<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />   #endif<br />   WORD wType, wcLen;<br />   LONG lValue;<br />   char * cValue;<br />   HPEN hOldPen, hPen;<br />   BITMAP bmp;<br />   WORD wRow, wCol;<br />   LONG lColor ;<br />   HBRUSH hBrush;<br />   LONG lTextColorOld = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />   LONG lBkColorOld   = <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br />   PCLIPVAR pEvalOld ;<br />   HFONT hFont ; <span style="color: #B900B9;">// CeSoTech</span><br />   WORD wAlign ; <span style="color: #B900B9;">// CeSoTech</span><br /><br />   <span style="color: #B900B9;">// CeSoTech</span><br />   LONG nClrLineC = <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">2</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">8</span> ||<br />                      nStyle == <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span> ;<br /><br />   <span style="color: #B900B9;">// CeSoTech</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nClrLine >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// Desde Clipper manda color especifico linea</span><br />      nClrLineC = nClrLine ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span><br />      bHeader = <span style="color: #00C800;">FALSE</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span><br />      bHeader = <span style="color: #00C800;">TRUE</span> ; <span style="color: #B900B9;">//-> Para que lo pinte con similar aspecto</span><br /><br />   <span style="color: #B900B9;">//CeSoTech</span><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span>bHeader<span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />                        nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      rct->top--       ;<br /><br />   wholebox.top    = rct->top<span style="color: #000000;">+1</span>;<br />   wholebox.<span style="color: #0000ff;">left</span>   = rct->left;<br />   wholebox.bottom = rct->bottom;<br />   wholebox.<span style="color: #0000ff;">right</span>  = rct->right;<br /><br />   rct->right  = <span style="color: #000000;">0</span>;<br /><br />   box.top    = rct->top ;<br />   box.bottom = rct->bottom - <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wIndex | wIndex > wLen <span style="color: #000000;">&#41;</span><br />       wIndex = <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span><br />      #ifndef __HARBOUR__<br />         wLenJust = _VARRAYLEN<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />      #else<br />         wLenJust = hb_arrayLen<span style="color: #000000;">&#40;</span> pAJustify <span style="color: #000000;">&#41;</span>;<br />      #endif<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wLen <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br /><br />        rct->left   = rct->right;<br /><br />        rct->right  = <span style="color: #000000;">&#40;</span> wIndex == wLen ? iMaxRight<br />                                      : <span style="color: #000000;">rct</span>->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />        <span style="color: #B900B9;">// CeSoTech // Cuando estoy estoy en la ultima celda, NO pintar hasta</span><br />                    <span style="color: #B900B9;">// el final si no existe ajuste de ultima columna.</span><br />        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />           rct->right  = rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> +<span style="color: #000000;">&#40;</span>bHeader ? <span style="color: #000000;">1</span>: <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> ;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse <span style="color: #000000;">&#41;</span><br />              wholebox.<span style="color: #0000ff;">right</span> = rct->right ; <span style="color: #B900B9;">// Tambien ajusto el borde focus</span><br /><br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br />        wAlign = HA_LEFT | VA_CENTER ;  <span style="color: #B900B9;">// Alineacion por defecto</span><br />        wcLen = <span style="color: #000000;">0</span>;<br />        <span style="color: #B900B9;">///////// INICIO Toma de datos celda !!!</span><br /><br />        #ifndef __HARBOUR__<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />             _cAt<span style="color: #000000;">&#40;</span> pAJustify, wIndex, 0xFFFF, <span style="color: #000000;">&#40;</span> PCLIPVAR <span style="color: #000000;">&#41;</span> &lJustify <span style="color: #000000;">&#41;</span>;<br />             wAlign = lJustify.wWord ;<br />           <span style="color: #000000;">&#125;</span><br />           _cAt<span style="color: #000000;">&#40;</span> pAtext, wIndex, 0xFFFF, ++_tos <span style="color: #000000;">&#41;</span>;<br />           wType = _tos->wType;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />              lValue = <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> _tos->pPointer1;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              cValue = _VSTR<span style="color: #000000;">&#40;</span> _tos <span style="color: #000000;">&#41;</span>;<br />              wcLen = _tos->w2;<br />           <span style="color: #000000;">&#125;</span><br />        #else<br /><br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wIndex <= wLenJust <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              hb_arrayGet<span style="color: #000000;">&#40;</span> pAJustify, wIndex, uElem <span style="color: #000000;">&#41;</span>;<br />              <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> hb_itemType<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span> & LOGICAL <span style="color: #000000;">&#41;</span> && hb_itemGetL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />                 wAlign = HA_RIGHT | VA_CENTER ;<br />              <span style="color: #00C800;">else</span><br />                 wAlign = hb_itemGetNL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br /><br />                    hb_itemClear<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #000000;">&#125;</span><br /><br />           <span style="color: #B900B9;">// uElem.type = HB_IT_NIL;</span><br />           hb_arrayGet<span style="color: #000000;">&#40;</span> pAtext, wIndex, uElem <span style="color: #000000;">&#41;</span>;<br />           wType = hb_itemType<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span><br />              lValue = hb_itemGetNL<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br /><span style="color: #B900B9;">//              cValue = hb_itemGetC( uElem );</span><br />                cValue = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_itemGetCPtr<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br />                wcLen = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span>;<br />           <span style="color: #000000;">&#125;</span><br /><br />        #endif<br />        <span style="color: #B900B9;">///////// FIN Toma de datos celda !!!</span><br /><br /><br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wFocus > <span style="color: #000000;">0</span> && wIndex != wFocus <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />           #ifndef __HARBOUR__<br />              _tos--;<br />           #endif<br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />               wIndex = wLen + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span><br />              ++wIndex;<br />           <span style="color: #00C800;">continue</span>;<br />        <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bTree ||<br />            <span style="color: #000000;">&#40;</span>GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Si NO es columna oculta (x Freeze)</span><br />        <span style="color: #000000;">&#123;</span>                                     <span style="color: #B900B9;">//(Es lo mismo no hacer esto,</span><br />                                              <span style="color: #B900B9;">// pero es para evitar hacer trabajar</span><br />                                              <span style="color: #B900B9;">// al codigo sin sentido !!! )</span><br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wType & NUMERIC<span style="color: #000000;">&#41;</span> && bTree <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lValue <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  FillRect<span style="color: #000000;">&#40;</span> hDC, rct, hBrush = CreateSolidBrush<span style="color: #000000;">&#40;</span> GetPixel<span style="color: #000000;">&#40;</span> hDC, rct->left, rct->top <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  DrawMasked<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct->top, rct->left <span style="color: #000000;">&#41;</span>;<br />                  DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />               <span style="color: #000000;">&#125;</span><br /><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span>  <span style="color: #B900B9;">// Si es Numerico Bmp no Tree, o , es Character !!!!</span><br />           <span style="color: #000000;">&#123;</span><br /><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Bloque de Color Fondo Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pBkColor <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />                    lBkColorOld = SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Bloque de Color Texto Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pTextColor <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />                    lTextColorOld = SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br />               hFont = <span style="color: #000000;">0</span> ;<br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>      <span style="color: #B900B9;">// Bloque de Font Celda</span><br />               <span style="color: #000000;">&#123;</span><br />                  _PutSym<span style="color: #000000;">&#40;</span> _SymEval <span style="color: #000000;">&#41;</span>;<br />                  _xPushM<span style="color: #000000;">&#40;</span> pFont <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wRowPos <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> wIndex <span style="color: #000000;">&#41;</span>;<br />                  _PutLN<span style="color: #000000;">&#40;</span> bFooter ? <span style="color: #000000;">2</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bHeader ? <span style="color: #000000;">1</span> : <span style="color: #000000;"><span style="color: #000000;">&#40;</span></span> bSelect ? <span style="color: #000000;">3</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                  _xEval<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hb_parinfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> & NUMERIC <span style="color: #000000;">&#41;</span><br />                     hFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/////// CeSoTech ///////</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top ++;<br /><br /><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// Es un BitMap</span><br />               <span style="color: #000000;">&#123;</span><br />                  FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> lValue, rct, nStyle, bSelect <span style="color: #000000;">&#41;</span>;<br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">else</span>                    <span style="color: #B900B9;">// Es una Cadena</span><br />               <span style="color: #000000;">&#123;</span><br />                  FW_DrawText<span style="color: #000000;">&#40;</span> hDC, rct,<br />                               <span style="color: #000000;">&#40;</span> wType & CHARACTER <span style="color: #000000;">&#41;</span> ? cValue : <span style="color: #ff0000;">""</span>,<br />                               wAlign, wcLen, hFont, bHeader <span style="color: #000000;">&#41;</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/////// CeSoTech restauracion de colores //////</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lTextColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  SetTextColor<span style="color: #000000;">&#40;</span> hDC, lTextColorOld <span style="color: #000000;">&#41;</span> ;<br />                  lTextColorOld = <span style="color: #000000;">-1</span> ;<br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lBkColorOld >= <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  SetBkColor<span style="color: #000000;">&#40;</span> hDC, lBkColorOld <span style="color: #000000;">&#41;</span> ;<br />                  lBkColorOld = <span style="color: #000000;">-1</span> ;<br />               <span style="color: #000000;">&#125;</span><br /><br /><br />               <span style="color: #B900B9;">/// CeSoTech ///</span><br />               <span style="color: #B900B9;">// Si hay modalidad ajustar el Browse y no hay ajuste de ultima</span><br />               <span style="color: #B900B9;">// columna, deber‚ pintar hasta el final hasta cubrir toda</span><br />               <span style="color: #B900B9;">// el area, hasta llegar a la derecha del control. (Col.Ficticia)</span><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bAdjBrowse && wIndex == wLen && !bAdjLastCol &&<br />                    rct->right <= iMaxRight <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  rctadj.top    = rct->top;<br />                  rctadj.<span style="color: #0000ff;">left</span>   = rct->right ;<br />                  rctadj.bottom = rct->bottom;<br />                  rctadj.<span style="color: #0000ff;">right</span>  = wholebox.<span style="color: #0000ff;">right</span>  ;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />                     rctadj.top--;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wFocus == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Si No es CellStyle (Pinto hasta final)</span><br />                     ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, &rctadj, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bHeader && nStyle==<span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Pinto Bordes Header Falso</span><br />                   <span style="color: #000000;">&#123;</span><br />                      rctadj.<span style="color: #0000ff;">right</span>  = wholebox.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>  ;<br />                      rctadj.bottom = rctadj.bottom - <span style="color: #000000;">2</span> ;<br />                      WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />                      rctadj.bottom++  ;<br />                      rctadj.<span style="color: #0000ff;">right</span>++  ;<br />                      WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &rctadj,  hWhitePen, <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />                      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Si es Footer (Linea Negra de Arriba Foot)</span><br />                      <span style="color: #000000;">&#123;</span><br />                        hPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, rctadj.left<span style="color: #000000;">-1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, rctadj.right<span style="color: #000000;">+1</span>, rctadj.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                      <span style="color: #000000;">&#125;</span><br /><br />                  <span style="color: #000000;">&#125;</span><br /><br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #B900B9;">/// CeSoTech Fin ///</span><br /><br />               <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!bHeader<span style="color: #000000;">&#41;</span> rct->top --;<br />           <span style="color: #000000;">&#125;</span><br /><br />           box.<span style="color: #0000ff;">left</span>   = rct->left;<br /><br />           box.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex < wLen && rct->right <= iMaxRight ?<br />                                                        rct->right - <span style="color: #000000;">1</span> :<br />                                                        iMaxRight - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />           <span style="color: #B900B9;">// CeSoTech // El Borde derecho de Box de la ultima columna,</span><br />                       <span style="color: #B900B9;">// no estirarlo cuando no exista ajuste de ultima columna</span><br />                       <span style="color: #B900B9;">// PERO cuando nLineStyle (nStyle) es 7/8 (Lineas Horiz)</span><br />                       <span style="color: #B900B9;">// queda anti-estetico cortar los renglones, cuando no hay</span><br />                       <span style="color: #B900B9;">// ajuste ult.col. y hay ajuste de browse. Por ello</span><br />                       <span style="color: #B900B9;">// se verificara que para cortar el borde no se de esta</span><br />                       <span style="color: #B900B9;">// condicion.</span><br />           <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wIndex == wLen <span style="color: #000000;">&#41;</span> && <span style="color: #000000;">&#40;</span> ! bAdjLastCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>! <span style="color: #000000;">&#40;</span>!bHeader && <span style="color: #000000;">&#40;</span>nStyle==<span style="color: #000000;">7</span> || nStyle==<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> && !bAdjLastCol && bAdjBrowse<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />               box.<span style="color: #0000ff;">right</span>  = rct->left + GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> ;<br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #B900B9;">// CeSoTech //</span><br /><br /><br /><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bTree <span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wPressed && <span style="color: #000000;">&#40;</span> wIndex == wPressed <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />              <span style="color: #000000;">&#123;</span><br />                WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hGrayPen, hWhitePen <span style="color: #000000;">&#41;</span>;<br />              <span style="color: #000000;">&#125;</span><br />              <span style="color: #00C800;">else</span><br /><span style="color: #B900B9;">/////////////  if(!bHeader)</span><br />               <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!bHeader || <span style="color: #000000;">&#40;</span>bHeader && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />               <span style="color: #000000;">&#123;</span><br />                  <span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> nStyle <span style="color: #000000;">&#41;</span><br />                  <span style="color: #000000;">&#123;</span><br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">0</span>:<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">1</span>:<br />                    <span style="color: #B900B9;">//  hOldPen = SelectObject( hDC, GetStockObject( BLACK_PEN ) );</span><br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">2</span>:<br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">3</span>:<br />                        WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">4</span>:<br />                        box.bottom ++;<br />                        box.<span style="color: #0000ff;">right</span> ++;<br />                        FrameDot<span style="color: #000000;">&#40;</span> hDC, &box <span style="color: #000000;">&#41;</span>;<br />                        box.bottom --;<br />                        box.<span style="color: #0000ff;">right</span> --;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">7</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">8</span>:<br />                        hPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC <span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,  box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">5</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">6</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">9</span>:<br />                     <span style="color: #00C800;">case</span> <span style="color: #000000;">10</span>:<br />                        hPen = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID, <span style="color: #000000;">0</span>, nClrLineC<span style="color: #000000;">&#41;</span>;<br />                        hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>box.left><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />                        <span style="color: #000000;">&#123;</span><br />                           MoveTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.bottom<span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>;<br />                           LineTo<span style="color: #000000;">&#40;</span> hDC, box.<span style="color: #0000ff;">left</span>, box.top <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #000000;">&#125;</span><br />                        MoveTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top <span style="color: #000000;">&#41;</span>;<br /><br />                        <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawFooters && nStyle >= <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />                        <span style="color: #000000;">&#123;</span><br />                        LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />                                     nHeightCtrl - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />                        <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />                          LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>,<br />                                     nStyle < <span style="color: #000000;">9</span> ? box.bottom<span style="color: #000000;">+1</span> : <span style="color: #000000;">nHeightCtrl</span> <span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #000000;">&#125;</span><br /><br />                        SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                        DeleteObject<span style="color: #000000;">&#40;</span> hPen<span style="color: #000000;">&#41;</span>;<br />                        <span style="color: #00C800;">break</span>;<br />                  <span style="color: #000000;">&#125;</span><br />               <span style="color: #000000;">&#125;</span><br />               <span style="color: #00C800;">else</span>  <span style="color: #B900B9;">// Box para Headers !!!</span><br />               <span style="color: #000000;">&#123;</span><br />                  box.<span style="color: #0000ff;">left</span> ++;<br /><br />                  <span style="color: #B900B9;">// CeSoTech</span><br />                  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bFooter <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Linea negra sobre el Footer</span><br />                  <span style="color: #000000;">&#123;</span><br />                    hPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span>;<br />                    hOldPen = <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hPen <span style="color: #000000;">&#41;</span>;<br />                    MoveTo<span style="color: #000000;">&#40;</span> hDC, box.left<span style="color: #000000;">-1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                    LineTo<span style="color: #000000;">&#40;</span> hDC, box.right<span style="color: #000000;">+1</span>, box.top<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />                    SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldPen <span style="color: #000000;">&#41;</span>;<br />                  <span style="color: #000000;">&#125;</span><br /><br />                  box.right--  ;<br />                  box.bottom-- ;<br />                  WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, hGrayPen <span style="color: #000000;">&#41;</span>;<br />                  box.bottom++  ;<br />                  box.<span style="color: #0000ff;">right</span>++  ;<br />                  WndDrawBox<span style="color: #000000;">&#40;</span> hDC, &box, hWhitePen, <span style="color: #000000;">&#40;</span>HPEN<span style="color: #000000;">&#41;</span> GetStockObject<span style="color: #000000;">&#40;</span> BLACK_PEN <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />                  box.<span style="color: #0000ff;">left</span> --;<br /><br />               <span style="color: #000000;">&#125;</span><br />           <span style="color: #000000;">&#125;</span><br />           <span style="color: #00C800;">else</span><br />           <span style="color: #000000;">&#123;</span><br />              <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> wType & NUMERIC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />              <span style="color: #000000;">&#123;</span><br />                 box.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">16</span>;<br />              <span style="color: #000000;">&#125;</span><br />           <span style="color: #000000;">&#125;</span><br /><br />          <span style="color: #B900B9;">// CeSoTech if( bFocused && wFocus > 0 && wIndex == wFocus )</span><br />           <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDrawFocusRect && bFocused && wFocus > <span style="color: #000000;">0</span> &&<br />               wIndex == wFocus && nStyle != <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />           <span style="color: #000000;">&#123;</span><br />            rct->left++;<br />            rct->top++;<br />            DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, rct <span style="color: #000000;">&#41;</span>;<br />            rct->left--;<br />            rct->top--;<br />           <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #000000;">&#125;</span><br /><br />        #ifndef __HARBOUR__<br />           _tos--;<br />        #endif<br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct->right >= iMaxRight <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            wIndex = wLen + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span><br />           ++wIndex;<br /><br /><br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bDrawFocusRect && !bTree && bFocused && wFocus==<span style="color: #000000;">0</span> && nStyle!=<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CeSoTech</span><br />      DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &wholebox <span style="color: #000000;">&#41;</span>;<br /><br />  hb_itemRelease<span style="color: #000000;">&#40;</span> uElem <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSELBOX <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC, nRow, nFirstCol, nCurCol,;</span><br />                     <span style="color: #B900B9;">//   lFocus, aSizes, hFont)</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wCol        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bFocused    = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR pAsizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   TEXTMETRIC tm;<br />   RECT rct;<br />   HFONT hOldFont;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// By CeSoTech</span><br />      wRow-- ;<br /><br />   rct.top    = tm.tmHeight * wRow ;<br />   rct.bottom = tm.tmHeight * <span style="color: #000000;">&#40;</span> wRow + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br />   rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex < wCol <span style="color: #000000;">&#41;</span><br />      rct.<span style="color: #0000ff;">left</span>  += GetInt<span style="color: #000000;">&#40;</span> pAsizes, wIndex++ <span style="color: #000000;">&#41;</span>;<br /><br />   rct.<span style="color: #0000ff;">right</span>  =  rct.<span style="color: #0000ff;">left</span>+GetInt<span style="color: #000000;">&#40;</span> pAsizes, wCol <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span>;<br /><br />   MaskRegion<span style="color: #000000;">&#40;</span> hDC, &rct, GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>, GetSysColor<span style="color: #000000;">&#40;</span>COLOR_ACTIVECAPTION<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bFocused <span style="color: #000000;">&#41;</span><br />      DrawFocusRect<span style="color: #000000;">&#40;</span> hDC, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWLINE <span style="color: #000000;">&#41;</span>        <span style="color: #B900B9;">// ( hWnd, hDC, nRow, aText, aSizes, nFirstItem, ;</span><br />                           <span style="color: #B900B9;">// nClrFore, nClrBack, hFont, lTree, aJustify, nPressed,</span><br />                           <span style="color: #B900B9;">// nStyle, nColAct, lFocused )</span><br />                           <span style="color: #B900B9;">// bTextColor, bBkColor, nClrLine, lFooter, lSelect,</span><br />                           <span style="color: #B900B9;">// bFont, lDrawFocusRect ) // New's by CesoTech</span><br /><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   WORD wHeight;<br />   RECT rct, box;<br />   PCLIPVAR bClrFore, bClrBack;<br />   COLORREF clrFore = <span style="color: #000000;">0</span>;<br />   COLORREF clrBack = <span style="color: #000000;">0</span>;<br />   HPEN hGrayPen    ;<br />   HPEN hWhitePen   ;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   BOOL bTree      = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br />   BOOL bFooter = HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">19</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> ;  <span style="color: #B900B9;">// CeSoTech</span><br /><br />   WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   hGrayPen    = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />   hWhitePen   = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   nHeightCtrl = rct.bottom-rct.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />   SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Es una Cabecera</span><br />      wHeight = wHeaderHeight + <span style="color: #000000;">1</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ! bFooter <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wRow == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> && bDrawHeaders <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Es una Cabecera</span><br />      <span style="color: #000000;">&#123;</span><br />         rct.top    = <span style="color: #000000;">0</span> ;<br />         rct.bottom = wHeaderHeight + <span style="color: #000000;">1</span> ;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />      <span style="color: #000000;">&#123;</span><br />        rct.top    = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  ;<br />        rct.bottom = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span>wHeight * wRow<span style="color: #000000;">&#41;</span>  ;<br />      <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />      rct.top    = rct.bottom - <span style="color: #000000;">&#40;</span>wFooterHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br /><br />   PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, 0xFFFF <span style="color: #000000;">&#41;</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, 0xFFFF <span style="color: #000000;">&#41;</span>,<br />                 hWhitePen, hGrayPen, bTree,<br />                 HB_ISARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>,<br />                 <span style="color: #000000;">&#40;</span>wRow == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                 hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span>,<br />                 HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                 bFooter,                                <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span>,  <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">21</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                 HB_ISLOG<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> ? hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">22</span> <span style="color: #000000;">&#41;</span> : <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span>;<span style="color: #B900B9;">// CeSoTech</span><br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />       ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.top,    <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> AWBRWROWDIM <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd      = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRow      = <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont    = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC  hDC       = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   TEXTMETRIC tm;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />   tm.tmHeight += <span style="color: #000000;">1</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow++, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> tm.tmHeight * wRow,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseX<span style="color: #000000;">&#40;</span> WORD wX <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span> * wX / LOWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br />WORD ScreenBaseY<span style="color: #000000;">&#40;</span> WORD wY <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    <span style="color: #00C800;">return</span> <span style="color: #000000;">8</span> * wY / HIWORD<span style="color: #000000;">&#40;</span> GetDialogBaseUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWRECT <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hWnd, nRow, aSizes, nFirstItem, nCol,</span><br />                   <span style="color: #B900B9;">//   nLineStyle, nWidthVScroll )</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />   HDC hDC          = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   WORD wRow        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wHeight ;<br />   RECT rct;<br />   WORD nStyle = HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> ? hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span> ; <span style="color: #B900B9;">// CeSoTech</span><br /><br /><br />   #ifdef __CLIPPER__<br />      PCLIPVAR paSizes = _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />      WORD wLen        = _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />   #else<br />      #ifdef __HARBOUR__<br /><span style="color: #B900B9;">//       void * paSizes = ( void * ) _param( 3, HB_IT_ARRAY );</span><br />         WORD wLen      = hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />      #else<br />         void * paSizes = <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> _param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, 0x8000 <span style="color: #000000;">&#41;</span>;<br />         WORD wLen      = _VARRAYLEN<span style="color: #000000;">&#40;</span> paSizes <span style="color: #000000;">&#41;</span>;<br />      #endif<br />   #endif<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wCol        = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wMaxRight;<br />   LONG l;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !wCol || wCol > wLen <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">return</span>;<br /><br /><br />   GetWindowRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   wMaxRight = rct.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">2</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   rct.top    = rct.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />                <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br /><br />   rct.bottom = rct.top + wHeight;<br />   rct.<span style="color: #0000ff;">right</span>  = rct.<span style="color: #0000ff;">left</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wIndex <= wCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />        rct.<span style="color: #0000ff;">left</span>   = rct.<span style="color: #0000ff;">right</span>;<br /><br />        #ifndef __FLAT__<br /><br />           rct.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />                                         : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + GetInt<span style="color: #000000;">&#40;</span> paSizes, wIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />        #else<br />           #ifndef __HARBOUR__<br />              <span style="color: #00D7D7;">#define</span> _parnl<span style="color: #000000;">&#40;</span>x,y<span style="color: #000000;">&#41;</span> PARNL<span style="color: #000000;">&#40;</span>x,params,y<span style="color: #000000;">&#41;</span>;<br />           #endif<br />           l = hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, wIndex <span style="color: #000000;">&#41;</span>;<br /><br />           rct.<span style="color: #0000ff;">right</span>  = <span style="color: #000000;">&#40;</span> wIndex == wLen && bAdjLastCol ? wMaxRight<br />                                         : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">left</span> + l <span style="color: #000000;">&#41;</span>;<br />        #endif<br /><br />        <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">right</span> >= wMaxRight <span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            wIndex = wCol + <span style="color: #000000;">1</span>;   <span style="color: #B900B9;">// ya no pintamos m s</span><br />            rct.<span style="color: #0000ff;">right</span> = wMaxRight;<br />        <span style="color: #000000;">&#125;</span><br />        <span style="color: #00C800;">else</span><br />            wIndex++;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />   #ifdef __XPP__<br />      <span style="color: #00D7D7;">#define</span> _storni<span style="color: #000000;">&#40;</span> x, y, z <span style="color: #000000;">&#41;</span> STORNI<span style="color: #000000;">&#40;</span> x, params, y, z <span style="color: #000000;">&#41;</span><br />   #endif<br /><br /><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">//CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />      rct.top-- ;  <span style="color: #B900B9;">// Las coord.de edicion deberan ser mas arriba tambien !!!</span><br /><br /><br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.top,    <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.<span style="color: #0000ff;">left</span>,   <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> rct.bottom, <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   hb_storvni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wMaxRight <= rct.<span style="color: #0000ff;">right</span> <span style="color: #000000;">&#41;</span> ?<br />              wMaxRight - hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">rct</span>.<span style="color: #0000ff;">right</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWPANE <span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// ( hWnd, hDC, Self, bLine, aSizes, nFirstItem,</span><br />                           <span style="color: #B900B9;">//   nClrFore, nClrBack, hFont, aJustify, nStyle</span><br />                           <span style="color: #B900B9;">//   lCellStyle, lFocused ) -> nRowsSkipped</span><br />                           <span style="color: #B900B9;">//   bTextColor, bBkColor, nClrLine, nColorFondo, bFont ) // New's by CesoTech</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HDC hDC          = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   WORD wRows;<br />   WORD wLastBottom = <span style="color: #000000;">0</span>;<br />   WORD wRow        = <span style="color: #000000;">1</span>;<br />   WORD wSkipped    = <span style="color: #000000;">1</span>;<br />   PCLIPVAR <span style="color: #00C800;">Self</span>    = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR bLine   = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR pASizes = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont      = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   BOOL bDestroyDC  = <span style="color: #00C800;">FALSE</span>;<br />   WORD wHeight ;<br />   RECT rct, box, <span style="color: #00C800;">client</span>;<br />   WORD wIndex      = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />   PCLIPVAR bClrFore = <span style="color: #000000;">0</span>, bClrBack = <span style="color: #000000;">0</span>;<br />   COLORREF clrFore = <span style="color: #000000;">0</span>;<br />   COLORREF clrBack = <span style="color: #000000;">0</span>;<br />   HPEN hGrayPen    = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// RGB( 128, 128, 128 ) );</span><br />   HPEN hWhitePen   = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// GetStockObject( WHITE_PEN );</span><br />   #ifndef __HARBOUR__<br />   BOOL bColBlock   = pASizes->wType & BLOCK;<br />   #else<br />   BOOL bColBlock   = hb_itemType<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> & BLOCK;<br />   PHB_ITEM aLine = hb_itemNew<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />   #endif<br />   PCLIPVAR pAJustify = HB_ISARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>: <span style="color: #000000;">0</span>;<br />   WORD nHeightCtrl ; <span style="color: #B900B9;">// by CeSoTech</span><br />   WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         bClrFore = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #00C800;">else</span><br />         clrFore = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hb_pcount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #000000;">&#123;</span><br />         bClrBack = hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span>;<br />         _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br />      <span style="color: #000000;">&#125;</span><br />      <span style="color: #00C800;">else</span><br />         clrBack = hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDestroyDC = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! pSkip <span style="color: #000000;">&#41;</span><br />       pSkip = _Get_Sym<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SKIP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #B900B9;">/////////////////////////</span><br />   <span style="color: #B900B9;">// Borremos el Area de la derecha no coubierta</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bAdjBrowse && !bAdjLastCol <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />       GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />       SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />       <span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span> wIndex=wIndex ; wIndex <= <span style="color: #000000;">&#40;</span>WORD<span style="color: #000000;">&#41;</span> hb_parinfa<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>; wIndex++ <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//nmm Null por 0 hb_parinfa( 5, NULL )</span><br />       <span style="color: #000000;">&#123;</span><br />            rct.<span style="color: #0000ff;">left</span> += hb_parvni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, wIndex <span style="color: #000000;">&#41;</span> ;<br />       <span style="color: #000000;">&#125;</span><br /><br />       <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">7</span> || nStyle == <span style="color: #000000;">8</span> || nStyle == <span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />          rct.<span style="color: #0000ff;">left</span>++;<br /><br />       ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />                   &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />       wIndex = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />       GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">/////////////////////////</span><br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &client <span style="color: #000000;">&#41;</span>;<br /><br />   nHeightCtrl = <span style="color: #00C800;">client</span>.bottom-<span style="color: #00C800;">client</span>.top ; <span style="color: #B900B9;">// by CeSoTech</span><br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   wRows = WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! bClrFore <span style="color: #000000;">&#41;</span><br />      SetTextColor<span style="color: #000000;">&#40;</span> hDC, clrFore <span style="color: #000000;">&#41;</span>;<br />      SetBkColor<span style="color: #000000;">&#40;</span> hDC, clrBack <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">while</span><span style="color: #000000;">&#40;</span> wRow <= wRows && wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      rct.top    = <span style="color: #00C800;">client</span>.top + <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> +<br />                   <span style="color: #000000;">&#40;</span>wHeight * <span style="color: #000000;">&#40;</span>wRow<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />      rct.bottom = rct.top + wHeight;<br />      rct.<span style="color: #0000ff;">left</span>   = <span style="color: #000000;">0</span>;<br />      rct.<span style="color: #0000ff;">right</span>  = <span style="color: #00C800;">client</span>.<span style="color: #0000ff;">right</span>;<br /><br />      #ifndef __HARBOUR__<br /><br />         _cEval0<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span>;<br />         _xPushM<span style="color: #000000;">&#40;</span> _eval <span style="color: #000000;">&#41;</span>;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />            SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />            SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bColBlock <span style="color: #000000;">&#41;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span>;<br /><br />         PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, _tos,<br />                       <span style="color: #000000;">&#40;</span> bColBlock ? _eval : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />                       hWhitePen, hGrayPen,<br />                       bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />                       hb_parni <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>,                           <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         _tos--;<br /><br />         _PutSym<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span>;<br />         _xPushM<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />         _PutQ<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />         _xSend<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />      #else<br />      <span style="color: #000000;">&#123;</span><br />         <span style="color: #B900B9;">// aLine.type = HB_IT_NIL;</span><br /><br />         <span style="color: #B900B9;">// Esta extension de xHarbour no se puede aplicar en Harbour</span><br />         <span style="color: #B900B9;">// hb_itemForwardValue( aLine, hb_vmEvalBlock( bLine ) );</span><br /><br />         hb_itemCopy<span style="color: #000000;">&#40;</span> aLine, hb_vmEvalBlock<span style="color: #000000;">&#40;</span> bLine <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrFore <span style="color: #000000;">&#41;</span>;<br />            SetTextColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            _cEval0<span style="color: #000000;">&#40;</span> bClrBack <span style="color: #000000;">&#41;</span>;<br />            SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br /><br />         PaintTheLine<span style="color: #000000;">&#40;</span> hDC, &rct, wIndex, aLine,<br />                       <span style="color: #000000;">&#40;</span> bColBlock ? hb_vmEvalBlock<span style="color: #000000;">&#40;</span> pASizes <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">pASizes</span> <span style="color: #000000;">&#41;</span>,<br />                       hWhitePen, hGrayPen,<br />                       bColBlock, pAJustify, <span style="color: #000000;">0</span>, <span style="color: #00C800;">FALSE</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>,<br />                       hb_parnl <span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>, hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span>,<br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">15</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       wRow, nHeightCtrl,                      <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISNUM<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> ? hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">-1</span>,        <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span>, <span style="color: #00C800;">FALSE</span>,                           <span style="color: #B900B9;">// CeSoTech</span><br />                       HB_ISBLOCK<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span> ? hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">18</span>, HB_IT_BLOCK <span style="color: #000000;">&#41;</span> : <span style="color: #000000;">0</span>,   <span style="color: #B900B9;">// CeSoTech</span><br />                       <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> ;<br /><br />         <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#123;</span><br />            hb_vmPushSymbol<span style="color: #000000;">&#40;</span> hb_dynsymSymbol<span style="color: #000000;">&#40;</span> pSkip <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />            hb_vmPush<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span>;<br />            hb_vmPushLong<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />            hb_vmDo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />         <span style="color: #000000;">&#125;</span><br />      <span style="color: #000000;">&#125;</span><br /><br />      #endif<br /><br />      wLastBottom = rct.bottom ;<br />      wSkipped = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>;<br /><br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> wSkipped == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />          wRow++;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #B900B9;">////////////////////////</span><br />   <span style="color: #B900B9;">// Borremos el Area de Abajo no cubierta</span><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   SetBkColor<span style="color: #000000;">&#40;</span> hDC, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   rct.top = wLastBottom + <span style="color: #000000;">1</span> ;<br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wLastBottom == <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// No Mostro Registros</span><br />      rct.top = <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   rct.bottom-=  <span style="color: #000000;">1</span> + <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />       nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />      rct.top--;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !bDrawFooters <span style="color: #000000;">&#41;</span><br />      rct.bottom++;<br /><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rct.top < rct.bottom <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      ExtTextOut<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">left</span>, rct.top, ETO_OPAQUE | ETO_CLIPPED,<br />                  &rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br />   <span style="color: #B900B9;">////////////////////////</span><br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> hGrayPen <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> hWhitePen <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDestroyDC <span style="color: #000000;">&#41;</span><br />       ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br /><br />   hb_retni<span style="color: #000000;">&#40;</span> wRow <span style="color: #000000;">&#41;</span>;<br /><br />   hb_itemRelease<span style="color: #000000;">&#40;</span> aLine <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSET <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( lAdjLastCol, lAdjBrowse, lDrawHeaders, lDrawFooters )</span><br /><span style="color: #000000;">&#123;</span>                                                                  <span style="color: #B900B9;">// CeSoTech</span><br />    bAdjLastCol  =  hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste o no de ultima columna al control.</span><br />    bAdjBrowse   =  hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ; <span style="color: #B900B9;">// Ajuste del Browse a la derecha</span><br />                                 <span style="color: #B900B9;">// cuando no existe ajuste de ultima columna.</span><br />    bDrawHeaders = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>  ; <span style="color: #B900B9;">// Si quiere visualizar Headers !!!</span><br />    bDrawFooters = hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>  ; <span style="color: #B900B9;">// Si se quiere visualizar Footers !!!</span><br /><br />    wHeaderHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>  ;<br />    wFooterHeight= hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>  ;<br />    wLineHeight  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>  ;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Devuelve Nro. de Filas de Datos (No incluye Headers ni Footers)</span><br /><span style="color: #00C800;">static</span> WORD WBrwRowsC<span style="color: #000000;">&#40;</span> HWND hWnd, HDC hDC, HFONT hFont <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   WORD wHeight;<br />   RECT rct;<br />   WORD wRows;<br />   BOOL bDCDestroy = <span style="color: #00C800;">FALSE</span>;<br />   HFONT hOldFont;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      bDCDestroy = <span style="color: #00C800;">TRUE</span>;<br />      hDC = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   wHeight = wLineHeight + <span style="color: #000000;">1</span> ;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br />   wRows = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct.bottom - rct.top - <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> -<br />             <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> -<br />             <span style="color: #000000;">&#40;</span> bDrawFooters ? wFooterHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> / wHeight ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> bDCDestroy <span style="color: #000000;">&#41;</span><br />      ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> wRows;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWROWS <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC, hFont )</span><br /><span style="color: #000000;">&#123;</span><br />   hb_retni<span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />                      <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWSCRL <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, nRows, hFont, nLineStyle, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd   = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   int wRows  = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC hDC = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;  <span style="color: #B900B9;">//  = GetDC( hWnd );</span><br />   RECT rct;<br />   WORD nStyle = hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> bDrawHeaders <span style="color: #000000;">&#41;</span><br />      rct.top += wHeaderHeight<span style="color: #000000;">+1</span> ;<br /><br /><br />   <span style="color: #B900B9;">// Defino Bottom de Area del Scroll</span><br />   rct.bottom = <span style="color: #000000;">&#40;</span> WBrwRowsC<span style="color: #000000;">&#40;</span> hWnd, hDC, hFont <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> +<br />                <span style="color: #000000;">&#40;</span> bDrawHeaders ? wHeaderHeight<span style="color: #000000;">+1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>  ;<br /><br /><br />   <span style="color: #B900B9;">// Si es un estilo sin separadores horizontales, pintar uno mas arriba</span><br />   <span style="color: #B900B9;">// CeSoTech para que que bien completa el area !!!</span><br />   <span style="color: #B900B9;">// El Area Scroll deber  entonces no tomar el separator (forma parte de ant)</span><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> !<span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">5</span> || nStyle == <span style="color: #000000;">6</span> ||<br />          nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span> || nStyle == <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      rct.bottom++;   <span style="color: #B900B9;">// Debe tomarse dado que no pinta celda 1 una mas arriba</span><br /><br />  <span style="color: #B900B9;">// ScrollWindowEx( hWnd, 0, -( (wLineHeight+1) * wRows ), 0, &rct, 0, 0, 0 );</span><br /><br />   ScrollDC<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, -<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>wLineHeight<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span> * wRows <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, &rct, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br /><br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />  <span style="color: #B900B9;">//  ReleaseDC( hWnd, hDC );</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> WBRWHEIGHT <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hFont )</span><br /><span style="color: #000000;">&#123;</span><br />   HWND hWnd   = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hFont = <span style="color: #000000;">&#40;</span> HFONT <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   HFONT hOldFont;<br />   HDC hDC     = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   TEXTMETRIC tm;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   GetTextMetrics<span style="color: #000000;">&#40;</span> hDC, &tm <span style="color: #000000;">&#41;</span>;<br />   hb_retni<span style="color: #000000;">&#40;</span> tm.tmHeight <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br />   ReleaseDC<span style="color: #000000;">&#40;</span> hWnd, hDC <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> void FW_DrawText<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, LPCSTR pText,<br />                         WORD wAlign, int iWidth,<br />                         HFONT hFont, BOOL bHeadFoot <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br />   RECT rcttmp     ;<br />   int iHeight     ;<br />   UINT uiFlag     ;<br />   HFONT hOldFont  ;<br />   int iFactor     ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      hOldFont = <span style="color: #000000;">&#40;</span>HFONT<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC, hFont <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #B900B9;">/////////////////////////////</span><br />   <span style="color: #B900B9;">// Alineaciones Verticales //</span><br />   <span style="color: #B900B9;">/////////////////////////////</span><br />   iHeight = DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, DT_CALCRECT <span style="color: #000000;">&#41;</span> ;<br />   iFactor = <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_TOP <span style="color: #000000;">&#41;</span><br />      iFactor = <span style="color: #000000;">0</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & VA_BOTTOM <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      iFactor = <span style="color: #000000;">&#40;</span> rct->bottom - rct->top <span style="color: #000000;">&#41;</span> - iHeight - <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br />   rcttmp.top    = rct->top + iFactor ;<br />   rcttmp.bottom = rct->bottom ;<br />   rcttmp.<span style="color: #0000ff;">left</span>   = rct->left   ;<br />   rcttmp.<span style="color: #0000ff;">right</span>  = rct->right  ;<br /><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> rcttmp.top < rct->top <span style="color: #000000;">&#41;</span><br />     rcttmp.top = rct->top ;<br /><br />   <span style="color: #B900B9;">///////////////////////////////</span><br />   <span style="color: #B900B9;">// Alineaciones Horizontales //</span><br />   <span style="color: #B900B9;">///////////////////////////////</span><br />   uiFlag = DT_LEFT ;<br />   rcttmp.<span style="color: #0000ff;">left</span>+= <span style="color: #000000;">2</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_CENTER <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />     rcttmp.left-= <span style="color: #000000;">2</span> ;<br />     uiFlag = DT_CENTER ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wAlign & HA_RIGHT <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />     rcttmp.left-= <span style="color: #000000;">2</span> ;<br />     uiFlag = DT_RIGHT ;<br />     rcttmp.right-= <span style="color: #000000;">2</span> + <span style="color: #000000;">&#40;</span> bHeadFoot ? <span style="color: #000000;">1</span> : <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br /><br />   ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ETO_OPAQUE | ETO_CLIPPED, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />   DrawText<span style="color: #000000;">&#40;</span> hDC, pText, iWidth, &rcttmp, uiFlag | DT_NOPREFIX <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hFont <span style="color: #000000;">&#41;</span><br />      SelectObject<span style="color: #000000;">&#40;</span> hDC, hOldFont <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> void FW_DrawBitmapCenter<span style="color: #000000;">&#40;</span> HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   WORD wWidth   ;<br />   WORD wHeight  ;<br />   WORD wRow ;<br />   WORD wCol ;<br />   BITMAP bm;<br />   LONG lBkColorBMP, lBkColor = GetBkColor<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />   BOOL bFlag = <span style="color: #00C800;">FALSE</span> ;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>nStyle == <span style="color: #000000;">0</span> || nStyle == <span style="color: #000000;">3</span> || nStyle == <span style="color: #000000;">5</span> ||<br />         nStyle == <span style="color: #000000;">6</span> || nStyle == <span style="color: #000000;">9</span> || nStyle == <span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> && bSelect <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      rct->bottom-- ;<br />      bFlag = <span style="color: #00C800;">TRUE</span> ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   wWidth  = rct->right - rct->left ;<br />   wHeight = rct->bottom - rct->top ;<br />   GetObject<span style="color: #000000;">&#40;</span> hBmp, sizeof<span style="color: #000000;">&#40;</span> BITMAP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> &bm <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wHeight > bm.bmHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      wRow = rct->top + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wHeight - bm.bmHeight <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />      wHeight = bm.bmHeight ;<br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      wRow = rct->top ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> wWidth > bm.bmWidth <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      wCol = rct->left + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> wWidth - bm.bmWidth <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />      wWidth = bm.bmWidth ;<br />   <span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span><br />   <span style="color: #000000;">&#123;</span><br />      wCol = rct->left ;<br />   <span style="color: #000000;">&#125;</span><br /><br />   rct->bottom++;<br />   ExtTextOut<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">0</span>, rct->top, ETO_OPAQUE, rct, <span style="color: #ff0000;">""</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br />   rct->bottom--;<br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> hBmp > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #000000;">&#123;</span><br />      DrawBitmap<span style="color: #000000;">&#40;</span> hDC, hBmp, wRow, wCol, wWidth, wHeight, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> lBkColorBMP = GetPixel<span style="color: #000000;">&#40;</span> hDC, wCol, wRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != lBkColor<span style="color: #000000;">&#41;</span><br />           MaskRegion<span style="color: #000000;">&#40;</span> hDC, rct, lBkColorBMP, lBkColor <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bFlag<span style="color: #000000;">&#41;</span><br />      rct->bottom++ ;<br /><br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #B900B9;">/*******<br /><br /><br />static void FW_DrawBitmapCenter( HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bSelect )<br />{<br />   WORD wWidth   ;<br />   WORD wHeight  ;<br />   WORD wRow ;<br />   WORD wCol ;<br />   BITMAP bm;<br />   LONG lBkColorBMP, lBkColor = GetBkColor( hDC ), lBkColorOld;<br />   BOOL bFlag = FALSE ;<br /><br />   RECT rRect ;<br />   HDC hDC2 ;<br />   HBITMAP hBmp2, hBmpOld ;<br /><br /><br />   if ( (nStyle == 0 || nStyle == 3 || nStyle == 5 ||<br />          nStyle == 6 || nStyle == 9 || nStyle == 10) && bSelect )<br />   {<br />      rct->bottom-- ;<br />      bFlag = TRUE ;<br />   }<br /><br />   ///////////////////////////////<br />   // Creo un buffer auxiliar ////<br />   rRect.top    = 0 ;<br />   rRect.left   = 0 ;<br />   rRect.right  = rct->right - rct->left ;<br />   rRect.bottom = rct->bottom - rct->top ;<br /><br />   hDC2    = CreateCompatibleDC( hDC );<br />   hBmp2   = CreateCompatibleBitmap( hDC, rRect.right, rRect.bottom );<br />   hBmpOld = SelectObject( hDC2, hBmp2 );<br />   BitBlt( hDC2, 0, 0, rRect.right, rRect.bottom, hDC, 0, 0, SRCCOPY );<br />   ///////////////////////////////<br /><br /><br />   wWidth  = rct->right - rct->left ;<br />   wHeight = rct->bottom - rct->top ;<br />   GetObject( hBmp, sizeof( BITMAP ), ( LPSTR ) &bm );<br /><br />   if ( wHeight > bm.bmHeight )<br />   {<br />      wRow = 0 + ( ( wHeight - bm.bmHeight ) / 2 ) ;<br />      wHeight = bm.bmHeight ;<br />   } else<br />   {<br />      wRow = 0 ;<br />   }<br /><br />   if ( wWidth > bm.bmWidth )<br />   {<br />      wCol = 0 + ( ( wWidth - bm.bmWidth ) / 2 ) ;<br />      wWidth = bm.bmWidth ;<br />   } else<br />   {<br />      wCol = 0 ;<br />   }<br /><br />   rRect.bottom++;<br />   lBkColorOld = SetBkColor( hDC2, lBkColor );<br />   ExtTextOut( hDC2, 0, 0, ETO_OPAQUE, &rRect, "", 0, 0 );<br />   rRect.bottom--;<br /><br />   if ( hBmp > 0 )<br />   {<br />      DrawBitmap( hDC2, hBmp, wRow, wCol, wWidth, wHeight, 0 ) ;<br />      if( ( lBkColorBMP = GetPixel( hDC2, wCol, wRow ) ) != lBkColor)<br />           MaskRegion( hDC2, &rRect, lBkColorBMP, lBkColor );<br />   }<br /><br />   ///////////////////////////////<br />   // Pego el buffer auxiliar ////<br />   BitBlt( hDC, rct->left, rct->top, rRect.right, rRect.bottom, hDC2, 0, 0, SRCCOPY );<br />   SetBkColor( hDC2, lBkColorOld );<br />   SelectObject( hDC2, hBmpOld );<br />   DeleteObject( hBmp2 );<br />   DeleteObject( hBmpOld );<br />   DeleteDC( hDC2 );<br />   ///////////////////////////////<br /><br />   if (bFlag)<br />      rct->bottom++ ;<br /><br />}<br /><br /><br />************/</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FW_DISPBEGIN <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />  HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  HDC hDC          = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />  HDC hDC2 ;<br />  HBITMAP hBmp, hBmpOld ;<br />  RECT rct;<br /><br />  GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />  hDC2    = CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />  hBmp    = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top <span style="color: #000000;">&#41;</span>;<br />  hBmpOld = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmp <span style="color: #000000;">&#41;</span>;<br />  BitBlt<span style="color: #000000;">&#40;</span> hDC2, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span>, rct.bottom, hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br /><br />  hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hWnd   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC    , <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC2   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmp   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmpOld, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FW_DISPEND <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// { hWnd, hDC, hDC2, hBmp, hBmpOld }</span><br /><span style="color: #000000;">&#123;</span><br />   RECT rct;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top, <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br />   SelectObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">return</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWDISPBEGIN <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// ( hWnd, hDC )</span><br /><span style="color: #000000;">&#123;</span><br />  HWND hWnd        = <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  HDC hDC          = <span style="color: #000000;">&#40;</span> HDC <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />  HDC hDC2 ;<br />  HBITMAP hBmp, hBmpOld ;<br />  RECT rct;<br /><br />  GetClientRect<span style="color: #000000;">&#40;</span> hWnd, &rct <span style="color: #000000;">&#41;</span>;<br /><br />  hDC2    = CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />  hBmp    = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top <span style="color: #000000;">&#41;</span>;<br />  hBmpOld = <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmp <span style="color: #000000;">&#41;</span>;<br />  BitBlt<span style="color: #000000;">&#40;</span> hDC2, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span>, rct.bottom, hDC, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br /><br />  hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hWnd   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC    , <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hDC2   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmp   , <span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />  hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hBmpOld, <span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FWDISPEND <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// { hWnd, hDC, hDC2, hBmp, hBmpOld }</span><br /><span style="color: #000000;">&#123;</span><br />   RECT rct;<br /><br />   GetClientRect<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, &rct <span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, rct.<span style="color: #0000ff;">right</span> - rct.<span style="color: #0000ff;">left</span>, rct.bottom - rct.top, <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, SRCCOPY <span style="color: #000000;">&#41;</span>;<br />   SelectObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteObject<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HDC<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> hb_parvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><br />   <span style="color: #00C800;">return</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /> </div>[/code:1tjh0mnr] Slds,
Compilación para 12.05
Para los Warnings de TSCAN debes modificar las siguientes funciones: [code=fw:3vknk3rn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETNEXTSOURCENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetNextSourceName<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETDEFAULTSOURCENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetDefaultSourceName<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;</div>[/code:3vknk3rn] Debido a que se espera un LPSTR solo es agregarlo antes del parametro. [code=fw:3vknk3rn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETNEXTSOURCENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetNextSourceName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LPSTR<span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETDEFAULTSOURCENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetDefaultSourceName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LPSTR<span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp;</div>[/code:3vknk3rn]
Compilación para 12.05
Gracias Nicanor, ya hice las pruebas y también funcionan. Ahora solo me queda un detalle con Menus.C de Tamayo. Reporta el 'Suspicios pointer' en la linea 180, pero si la veo declarada. [code=fw:2xu58dgo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#define</span> OEMRESOURCE<br /><br /><span style="color: #00D7D7;">#include</span> <WinTen.h><br /><span style="color: #00D7D7;">#include</span> <Windows.h><br /><span style="color: #00D7D7;">#include</span> <ClipApi.h><br /><br />BOOL bStrAt<span style="color: #000000;">&#40;</span> BYTE bChar, LPSTR szText <span style="color: #000000;">&#41;</span>;<br />LPSTR StrToken<span style="color: #000000;">&#40;</span> LPSTR szText, WORD wOcurrence, BYTE bSeparator, LPWORD pwLen <span style="color: #000000;">&#41;</span>;<br /><br />void WindowBoxIn<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br />void WndDrawBox<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rct, HPEN hPUpLeft, HPEN hPBotRit <span style="color: #000000;">&#41;</span>;<br />void WindowInset<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br />void WindowRaised<span style="color: #000000;">&#40;</span> HDC hDC, RECT * pRect <span style="color: #000000;">&#41;</span>;<br />void DrawBitmap<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD, WORD, WORD, WORD, DWORD <span style="color: #000000;">&#41;</span>;<br />void DrawMasked<span style="color: #000000;">&#40;</span> HDC, HBITMAP, WORD, WORD <span style="color: #000000;">&#41;</span>;<br />void DrawGrayed<span style="color: #000000;">&#40;</span> HDC, HBITMAP, int, int <span style="color: #000000;">&#41;</span>;<br />void RectDisable<span style="color: #000000;">&#40;</span> HDC, LPRECT<span style="color: #000000;">&#41;</span>;<br />void DegardeFill<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rori, COLORREF cFrom, COLORREF cTo, int nDegType <span style="color: #000000;">&#41;</span> ;<br />void DegradColor<span style="color: #000000;">&#40;</span> HDC hDC, RECT * rori, COLORREF cFrom, COLORREF cTo, int nDegType, int iRound <span style="color: #000000;">&#41;</span> ;<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_CREATEMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> CreateMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_CREATEPOPUPMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> CreatePopupMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_TRACKPOPUP<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; _retl<span style="color: #000000;">&#40;</span> TrackPopupMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_ENABLEMENUITEM<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> EnableMenuItem<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_CHECKMENUITEM<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// ()</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> CheckMenuItem<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETMITEMCOUNT<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// ()</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retni<span style="color: #000000;">&#40;</span> GetMenuItemCount<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETMITEMID<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// hMenu, nPos</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retni<span style="color: #000000;">&#40;</span> GetMenuItemID<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETSYSTEMMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// ()</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> GetSystemMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_DESTROYMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// &nbsp;() &nbsp; hMenu</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> DestroyMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETSUBMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// hMenu, nPos</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> GetSubMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETMENUSTRING<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// () &nbsp; hMenu, nId, nPosOrValue</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;BYTE bBuffer<span style="color: #000000;">&#91;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp;WORD wLen = GetMenuString<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> bBuffer,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">199</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_retclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> bBuffer, wLen <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETMENUSTATE<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// () &nbsp; hMenu, nId, nFlags</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retni<span style="color: #000000;">&#40;</span> GetMenuState<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_DRAWMENUBAR<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// () &nbsp; &nbsp;hWnd</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;DrawMenuBar<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_HILITEMENUITEM<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// () &nbsp;hWnd, hMenu, idItem, nHiliteFlags</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> HiliteMenuItem<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_LOADMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> LoadMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HINSTANCE <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, _parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_APPENDMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> AppendMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> UINT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, _parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_SETMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> SetMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_MODIFYMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> ModifyMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> UINT <span style="color: #000000;">&#41;</span> _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> UINT <span style="color: #000000;">&#41;</span> _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>, _parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_INSERTMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hMenu, nIdItem, nFlags, nNewItem, cPrompt ) --> lSuccess</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> InsertMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, _parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_REMOVEMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hMenu, nItem, nFlags ) --> lSuccess</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> RemoveMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> UINT <span style="color: #000000;">&#41;</span> _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> UINT <span style="color: #000000;">&#41;</span> _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_ATMENUDRAWITEM<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( pDrawItemStruct, cPrompt, lTop, hBitmap,lSeparator,acolor,lbar )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">&#40;</span> LPDRAWITEMSTRUCT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;LPSTR szPrompt = _parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL bTab = bStrAt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, szPrompt <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;WORD wLen;<br />&nbsp; &nbsp;BOOL lSeparator = _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL lBar &nbsp; &nbsp; &nbsp; = _parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HPEN hNormal,hOldPen;<br />&nbsp; &nbsp;HBRUSH hBrush;<br />&nbsp; &nbsp;LOGBRUSH lb;<br />&nbsp; &nbsp;RECT rct;<br />&nbsp; &nbsp;RECT rctdg;<br />&nbsp; &nbsp;RECT rctsep;<br />&nbsp; &nbsp;RECT rctshd;<br />&nbsp; &nbsp;COLORREF nClrMenu &nbsp; &nbsp; = &nbsp;_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;COLORREF nClrMenuTxt &nbsp;= &nbsp;_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;COLORREF nClrBack &nbsp; &nbsp; = &nbsp;_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;COLORREF nClrTo &nbsp; &nbsp; &nbsp; = &nbsp;_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;COLORREF nClrHighBai &nbsp;= &nbsp;_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;COLORREF nClrHighBaf &nbsp;= &nbsp;_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;COLORREF nClrHighTxt &nbsp;= &nbsp;_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;COLORREF nClrHighBar &nbsp;= &nbsp;_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;HBITMAP hBmp = <span style="color: #000000;">&#40;</span> HBITMAP <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #00C800;">switch</span><span style="color: #000000;">&#40;</span> lpdis->itemAction <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> ODA_DRAWENTIRE:<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> ODA_SELECT:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">lb</span>.lbStyle = BS_SOLID;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lb.lbColor = nClrMenu;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hBrush = CreateBrushIndirect<span style="color: #000000;">&#40;</span> &lb <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> lpdis->hDC, &lpdis->rcItem, hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetBkColor<span style="color: #000000;">&#40;</span> lpdis->hDC, nClrMenu <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetBkMode<span style="color: #000000;">&#40;</span> lpdis->hDC, TRANSPARENT <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SetTextColor<span style="color: #000000;">&#40;</span> lpdis->hDC, nClrMenuTxt<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_SELECTED &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! <span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_GRAYED <span style="color: #000000;">&#41;</span> && !lSeparator <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lb.lbColor = nClrHighBai;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetBkColor<span style="color: #000000;">&#40;</span> lpdis->hDC, nClrHighBai <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetTextColor<span style="color: #000000;">&#40;</span> lpdis->hDC, nClrHighTxt <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !lBar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> += <span style="color: #000000;">22</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lb.lbColor = nClrMenu;<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hBrush = CreateBrushIndirect<span style="color: #000000;">&#40;</span> &lb <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> lpdis->hDC, &lpdis->rcItem, hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_SELECTED &&<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! <span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_GRAYED <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !lBar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpdis->rcItem.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">22</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!lBar<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.top &nbsp; &nbsp;= lpdis->rcItem.top &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">left</span> &nbsp; = lpdis->rcItem.<span style="color: #0000ff;">left</span> &nbsp;<span style="color: #000000;">+23</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= lpdis->rcItem.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.bottom = lpdis->rcItem.bottom- <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.top &nbsp; &nbsp;= lpdis->rcItem.top &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">left</span> &nbsp; = lpdis->rcItem.<span style="color: #0000ff;">left</span> &nbsp;+ <span style="color: #000000;">1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.<span style="color: #0000ff;">right</span> &nbsp;= lpdis->rcItem.<span style="color: #0000ff;">right</span> - <span style="color: #000000;">4</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rct.bottom = lpdis->rcItem.bottom- <span style="color: #000000;">1</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctshd.top &nbsp; &nbsp;= lpdis->rcItem.top &nbsp;<span style="color: #000000;">+3</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctshd.<span style="color: #0000ff;">left</span> &nbsp; = lpdis->rcItem.right<span style="color: #000000;">-3</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctshd.<span style="color: #0000ff;">right</span> &nbsp;= lpdis->rcItem.<span style="color: #0000ff;">right</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctshd.bottom = lpdis->rcItem.bottom ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctdg.top &nbsp; &nbsp;= lpdis->rcItem.top &nbsp; <span style="color: #000000;">-1</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctdg.<span style="color: #0000ff;">left</span> &nbsp; = lpdis->rcItem.<span style="color: #0000ff;">left</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctdg.<span style="color: #0000ff;">right</span> &nbsp;= <span style="color: #000000;">22</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctdg.bottom = lpdis->rcItem.bottom<span style="color: #000000;">+1</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !lBar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DegradColor<span style="color: #000000;">&#40;</span> lpdis->hDC, &rctdg, nClrBack, nClrTo, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_SELECTED <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_GRAYED <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//&&</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hNormal = CreatePen<span style="color: #000000;">&#40;</span>PS_SOLID,<span style="color: #000000;">0</span>,nClrHighBar<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hOldPen = SelectObject<span style="color: #000000;">&#40;</span>lpdis->hDC,hNormal<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rectangle(lpdis->hDC,rct.left-1,rct.top-1,rct.right+1,rct.bottom+1);</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span>lpdis->hDC,hOldPen<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hNormal <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DegradColor<span style="color: #000000;">&#40;</span> lpdis->hDC, &rct, nClrHighBai, nClrHighBaf, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>lBar<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lb.lbColor = GetSysColor<span style="color: #000000;">&#40;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hBrush = CreateBrushIndirect<span style="color: #000000;">&#40;</span> &lb <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> lpdis->hDC, &rctshd, hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctshd.top &nbsp; &nbsp;= lpdis->rcItem.top;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctshd.<span style="color: #0000ff;">left</span> &nbsp; = lpdis->rcItem.right<span style="color: #000000;">-3</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctshd.<span style="color: #0000ff;">right</span> &nbsp;= lpdis->rcItem.<span style="color: #0000ff;">right</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctshd.bottom = lpdis->rcItem.top<span style="color: #000000;">+3</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lb.lbColor = nClrMenu;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hBrush = CreateBrushIndirect<span style="color: #000000;">&#40;</span> &lb <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> lpdis->hDC, &rctshd, hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!lBar<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_CHECKED <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HBITMAP hBmp = LoadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> OBM_CHECK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_SELECTED <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawMasked<span style="color: #000000;">&#40;</span> lpdis->hDC, hBmp, lpdis->rcItem.top + <span style="color: #000000;">3</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawMasked<span style="color: #000000;">&#40;</span> lpdis->hDC, hBmp, lpdis->rcItem.top + <span style="color: #000000;">3</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hBmp &nbsp;&& !<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span> hBmp == <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_CHECKED <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawMasked<span style="color: #000000;">&#40;</span> lpdis->hDC, hBmp, lpdis->rcItem.top + <span style="color: #000000;">3</span>, <span style="color: #B900B9;">//ojo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpdis->rcItem.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! <span style="color: #000000;">&#40;</span> lpdis->itemState & ODS_SELECTED <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawGrayed<span style="color: #000000;">&#40;</span> lpdis->hDC, hBmp, lpdis->rcItem.top + <span style="color: #000000;">3</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpdis->rcItem.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawMasked<span style="color: #000000;">&#40;</span> lpdis->hDC, hBmp, lpdis->rcItem.top + <span style="color: #000000;">3</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpdis->rcItem.<span style="color: #0000ff;">left</span> + <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!lBar<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.top &nbsp;+= &nbsp;<span style="color: #000000;">2</span>; &nbsp;<span style="color: #B900B9;">// &nbsp;2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> += <span style="color: #000000;">27</span>; &nbsp;<span style="color: #B900B9;">// 26</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.top &nbsp;+= <span style="color: #000000;">2</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> += <span style="color: #000000;">3</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !bTab <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lSeparator <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctsep.top &nbsp; &nbsp;= lpdis->rcItem.top &nbsp;<span style="color: #000000;">+1</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctsep.<span style="color: #0000ff;">left</span> &nbsp; = lpdis->rcItem.<span style="color: #0000ff;">left</span> <span style="color: #000000;">-3</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctsep.<span style="color: #0000ff;">right</span> &nbsp;= lpdis->rcItem.right<span style="color: #000000;">+5</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rctsep.bottom = lpdis->rcItem.bottom - <span style="color: #000000;">4</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lb.lbStyle = BS_SOLID;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lb.lbColor = nClrHighBar ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hBrush = CreateBrushIndirect<span style="color: #000000;">&#40;</span> &lb <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> lpdis->hDC, &rctsep, hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!lBar<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawText<span style="color: #000000;">&#40;</span> lpdis->hDC, szPrompt, <span style="color: #000000;">-1</span>, &lpdis->rcItem, DT_LEFT <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">5</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DrawText<span style="color: #000000;">&#40;</span> lpdis->hDC, szPrompt, <span style="color: #000000;">-1</span>, &lpdis->rcItem, DT_CENTER <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> += <span style="color: #000000;">5</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpdis->rcItem.<span style="color: #0000ff;">right</span> -= <span style="color: #000000;">26</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StrToken<span style="color: #000000;">&#40;</span> szPrompt, <span style="color: #000000;">1</span>, <span style="color: #000000;">9</span>, &wLen <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// 32 bits does not fill wLen before</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawText<span style="color: #000000;">&#40;</span> lpdis->hDC, StrToken<span style="color: #000000;">&#40;</span>szPrompt, <span style="color: #000000;">1</span>, <span style="color: #000000;">9</span>, &wLen<span style="color: #000000;">&#41;</span>, wLen, &lpdis->rcItem, DT_LEFT <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StrToken<span style="color: #000000;">&#40;</span> szPrompt, <span style="color: #000000;">2</span>, <span style="color: #000000;">9</span>, &wLen <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// 32 bits does not fill wLen before</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DrawText<span style="color: #000000;">&#40;</span> lpdis->hDC, StrToken<span style="color: #000000;">&#40;</span>szPrompt, <span style="color: #000000;">2</span>, <span style="color: #000000;">9</span>, &wLen<span style="color: #000000;">&#41;</span>, wLen, &lpdis->rcItem, DT_RIGHT <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpdis->rcItem.<span style="color: #0000ff;">right</span> += <span style="color: #000000;">26</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!lBar<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !lSeparator )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( lpdis->itemState & ODS_GRAYED )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RectDisable( lpdis->hDC, &lpdis->rcItem );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.top &nbsp;-= &nbsp;<span style="color: #000000;">2</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">26</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.top &nbsp;-= <span style="color: #000000;">2</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpdis->rcItem.<span style="color: #0000ff;">left</span> -= <span style="color: #000000;">4</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">break</span>;<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> ODA_FOCUS:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">break</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">/*<br />#ifdef __HARBOUR__<br />&nbsp; &nbsp;CLIPPER MENUMEASUREITEM( PARAMS ) // ( pMeasureItemStruct, nLen )<br />#else<br />&nbsp; &nbsp;CLIPPER MENUMEASUR( PARAMS ) // EITEM( pMeasureItemStruct, nLen )<br />#endif<br />{<br />&nbsp; &nbsp;LPMEASUREITEMSTRUCT lp = ( LPMEASUREITEMSTRUCT ) _parnl( 1 );<br />&nbsp; &nbsp;lp->itemWidth &nbsp;= _parni( 2 );<br />&nbsp; &nbsp;lp->itemHeight = GetSystemMetrics( SM_CYMENU ); //18<br />}<br />*/</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETMEAITEM<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( pMeasureItemStruct ) --> nMenuItemID</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LPMEASUREITEMSTRUCT lp = <span style="color: #000000;">&#40;</span> LPMEASUREITEMSTRUCT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> lp->itemID <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETDRAWITEM<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( pDrawItemStruct ) --> nMenuItemID</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">&#40;</span> LPDRAWITEMSTRUCT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> lpdis->itemID <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_GETDRAWMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( pDrawItemStruct ) --> hMenu</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LPDRAWITEMSTRUCT lpdis = <span style="color: #000000;">&#40;</span> LPDRAWITEMSTRUCT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> lpdis->hwndItem <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />HARBOUR HB_FUN_ISMENU<span style="color: #000000;">&#40;</span> PARAMS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;_retl<span style="color: #000000;">&#40;</span> IsMenu<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMENU <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> _GETMENUID<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; _retnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span>GetMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span>_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span> <span style="color: #000000;">&#40;</span> _COLORMENU <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HMENU &nbsp; &nbsp; &nbsp;iMenu;<br />&nbsp; &nbsp;MENUINFO &nbsp; iMenuInfo ;<br />&nbsp; &nbsp;COLORREF lColor = _parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;BOOL &nbsp;lSubMenu = _parl<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;HWND &nbsp;himage ;<br /><br />&nbsp; &nbsp;himage = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span>LoadImage<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,IMAGE_BITMAP ,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,LR_LOADFROMFILE | LR_LOADMAP3DCOLORS | LR_LOADTRANSPARENT <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>himage==<span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;himage = <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span>LoadImage<span style="color: #000000;">&#40;</span>GetModuleHandle<span style="color: #000000;">&#40;</span><span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>,_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,IMAGE_BITMAP ,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>, LR_LOADMAP3DCOLORS&nbsp; &nbsp; | LR_LOADTRANSPARENT <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;iMenu &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= GetMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;GetMenuInfo<span style="color: #000000;">&#40;</span>iMenu, &iMenuInfo<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;iMenuInfo.cbSize &nbsp; = sizeof<span style="color: #000000;">&#40;</span>MENUINFO<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;iMenuInfo.dwStyle &nbsp;= GetWindowLongPtr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, GWL_STYLE <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>lSubMenu<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iMenuInfo.fMask &nbsp; &nbsp;= MIM_BACKGROUND | MIM_APPLYTOSUBMENUS ;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; iMenuInfo.fMask &nbsp; &nbsp;= MIM_BACKGROUND;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>himage==<span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;iMenuInfo.hbrBack = CreateSolidBrush<span style="color: #000000;">&#40;</span>lColor<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;iMenuInfo.hbrBack = CreatePatternBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HBITMAP<span style="color: #000000;">&#41;</span> himage<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;SetMenuInfo<span style="color: #000000;">&#40;</span>iMenu, &iMenuInfo<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;DrawMenuBar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">HB_FUNC</span> <span style="color: #000000;">&#40;</span> _COLORSUBMENU <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HMENU &nbsp; &nbsp; &nbsp;iMenu;<br />&nbsp; &nbsp;MENUINFO &nbsp; iMenuInfo ;<br />&nbsp; &nbsp;COLORREF lColor = _parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;iMenu &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= GetMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;GetMenuInfo<span style="color: #000000;">&#40;</span>iMenu, &iMenuInfo<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;iMenuInfo.cbSize &nbsp; = sizeof<span style="color: #000000;">&#40;</span>MENUINFO<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;iMenuInfo.fMask &nbsp; &nbsp;= MIM_BACKGROUND | MIM_APPLYTOSUBMENUS;<br />&nbsp; &nbsp;iMenuInfo.hbrBack &nbsp;= CreateSolidBrush<span style="color: #000000;">&#40;</span>lColor<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;SetMenuInfo<span style="color: #000000;">&#40;</span>iMenu, &iMenuInfo<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// &nbsp; DrawMenuBar((HWND) _parnl(1));</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CHGMENUMEA <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// pMeasureItemStruct, nWidth, nHeight</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LPMEASUREITEMSTRUCT lp = <span style="color: #000000;">&#40;</span> LPMEASUREITEMSTRUCT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;lp->itemWidth &nbsp;= _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;lp->itemHeight = _parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETDRAWISR <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( pDrawitemstruct )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LPDRAWITEMSTRUCT lp = <span style="color: #000000;">&#40;</span> LPDRAWITEMSTRUCT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->CtlType &nbsp; &nbsp; &nbsp;, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->CtlID &nbsp; &nbsp; &nbsp; &nbsp;, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->itemID &nbsp; &nbsp; &nbsp; , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->itemAction &nbsp; , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->itemState &nbsp; &nbsp;, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> lp->hwndItem &nbsp; &nbsp; , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">6</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> lp->hDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">7</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->rcItem.top &nbsp; , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">8</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->rcItem.<span style="color: #0000ff;">left</span> &nbsp;, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">9</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->rcItem.bottom, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->rcItem.<span style="color: #0000ff;">right</span> , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_stornd<span style="color: #000000;">&#40;</span> lp->itemData &nbsp; &nbsp; , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETMEAUSUR <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( pMeasureItemStruct )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;LPMEASUREITEMSTRUCT lp = <span style="color: #000000;">&#40;</span> LPMEASUREITEMSTRUCT <span style="color: #000000;">&#41;</span> _parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->CtlType &nbsp; &nbsp; &nbsp;, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->CtlID &nbsp; &nbsp; &nbsp; &nbsp;, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->itemID &nbsp; &nbsp; &nbsp; , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">3</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->itemWidth &nbsp; &nbsp;, &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">4</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_storni<span style="color: #000000;">&#40;</span> lp->itemHeight &nbsp; , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">5</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;_stornd<span style="color: #000000;">&#40;</span> lp->itemData &nbsp; &nbsp; , &nbsp; &nbsp;<span style="color: #000000;">-1</span>, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:2xu58dgo]
Compilación para 12.05
Me siento frustrado!!! Ya superé los problemas de compilación, pero el WBrowse no funciona. Nicanor, ¿tienes la lib trabajando?. Para no abrumar el hilo me gustaría contactarte por correo, será posible?
Compilación para 12.05
Alfredo, Con muy poco esfuerzo puedes migrar al xbrowse de FWH, anímate <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Te ayudamos aqui
Compilación para 12.05
Antonio: Abusando de tu bondad, donde puedo ver un ejemplo con TXbrowse en modo de edición por celda, que incluya desde cuando la tabla esta vacia (agregar el primer registro) hasta la modificación de los campos de un registro ya existente?. La idea es sustituir a la TSBrowse del buen amigo Manuel Mercado (Saludos Manuel). Por cierto uso recordset. Saludos y gracias por el apoyo
Compilación para 12.05
No hay problema, escribeme al correo, <!-- e --><a href="mailto:nnicanor@yahoo.com">nnicanor@yahoo.com</a><!-- e --> Slds
Compilación para 12.05
Gracia por la sugerencia Antonio. Ya he trabajado XBrowse con resultados muy aceptables, logré simular el comportamiento de Excel en el diseño de un paso para cédulas de apoyo en el control fiscal (edición, fórmulas, calculos, enlace contable y otros). Lamentablemente mi aplicación tiene cientos de pasos que usan WBrowse, he contado 78 Prgs y en el primero de la lista uso 12 listbox. Te comento que la premura se debe a que al parecer estoy rebasando algunas condiciones de SQLRDD para MySQL, en una red con decenas de equipos se están agotando los recursos. "2011-05-01 15:00 UTC-0300 Luiz Rafael Culik ! Fixed some memory leaks that can cause apps slow and huge memory consume, correct to call mysql_library". Espero que despues de incorporar estos cambios se resuelva el problema.
Compilación para 12.05
Armando, [code=fw:28u1iypm]<div class="fw" id="{CB}" style="font-family: monospace;">   @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWndForms LINES FASTEDIT ;<br />      <span style="color: #0000ff;">AUTOCOLS</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> AUTOSORT</div>[/code:28u1iypm] Para las operaciones de añadir, editar, borrar, buscar, imprimir, etc.. revisa el código fuente de FiveDBU: [url:28u1iypm]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=fivedbu_20120614_2&#46;zip&can=2&q=[/url:28u1iypm]
Compilación para 12.05
Antonio: Tienes mucha razón, aunque FiveDBU trabaja con Arrays y el ejemplo es muy escueto, será mi miopia? Gracias
Compilación para 12.05
Armando, En los browses de FiveDBU se añaden registros, se editan, se borran, se hacen búsquedas, se imprime, tienes las operaciones básicas. Que más funcionalidades necesitas ?
Compilación para 12.05
A partir de la versión 7.12 comencé a utilizar xbrowse. Siempre me pareció un control muy flexible y potente pero muy trabajoso para parametrizar. Al actualizarme a la versión 12.04 la posibilidad de usar comandos para definirlo reveló una facilidad increible. He cambiado todas mis tablas a este control y lo he hecho en tiempo record. La edición de celdas está muy bien resuelta. Saludos
Compilación para 12.05
Horacio: Te importaría poner un ejemplo con FASTEDIT ? Saludos
Compilación para 12.05
Este fin de semana retomé la compilación con FWH 12.05 y ya logré pasar sin errores. Comento que los cambios realizados por Antonio y Nicanor en WBrowse !SI FUNCIONAN!, podemos seguir usando esta clase de Hernan con confianza. El problema está con la versión actual de SQLRDD, el comportamiento de las listas no responde como debería con WBrowse ni con XBrowse. Al parecer hubo cambios en OrdKeyCount(), OrdKeyGoTo() y OrdKeyNo(). Aquí ya no se que hacer, no se si alguien ya superó esta situación o habrá que solicitar apoyo del equipo de Patrick Mast. (Snif!)
Compilación para 12.05
Hola Alfredo: Estoy intentando probar SQLRDD con el xHarbour y BCC 5.8.2. No tengo éxito. He bajado la versión demo desde xharbour.com para BCC 5.82 y faltan un montón de librerías: sql.lib, odbccp32.lib, etc. He escrito varios correos a Patrick Mast y ni caso. La verdad, estoy bastante decepcionado con el trato recibido. Pretendo probar un producto que no funciona y que cuesta 990 euros y pasan. No quiero ni pensar cómo te tratan si lo compras. ¿Hay alguna dirección de soporte?. ¿Podrías por favor compartir estas librerías para xHarbour y BCC 5.8.2?. Muchísimas gracias. Saludos
Compilación para 12.05
Lucas: Hasta los 20 usuarios no había tenido la necesidad de solicitar soporte, el RDD es muy estable. Hoy mi cliente ha superado los 30 usuarios y es muy inestable, no hay daño en la información pero si un consumo excesivo de recursos. Vi que hicieron una mejora para evitar ese consumo y deseo usarla, ya solicité ápoyo y no he tenido respuesta esperaré un par de días y comento que pasa. Si deseas compartir experiencias y avances puedes ponerte en contacto en <!-- e --><a href="mailto:soporte@rc-extended.com.mx">soporte@rc-extended.com.mx</a><!-- e -->.
Compilación para 12.05
Alfredo: ¿Has conseguido solucionarlo?. Muchas gracias.
Compilación para 12.05
Hola Alfredo: Prueba con esta versión de SQL.lib, a ver si te funciona bien xBrowse: <!-- m --><a class="postlink" href="http://ul.to/yt7r0ven">http://ul.to/yt7r0ven</a><!-- m --> Un saludo
Compilación para 12.05
estimados en las new de xharbour beta o de sqlrdd se atienden los problemas yo no he solicitado, pero he mirado que le dan repuestas a otros usuario de forma mas o menos aceptable. nota, si ya lo habeis hecho por esa via y no funciona, esta jodida la cosa. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> salu2 carlos vargas
Compilación para 12.05
lucas, eso que te faltan varias liberias puede ser falla en los path, yo he particular he usado la version para compilador borland sin problemas, lo que si he hecho es adecuar los path y las las carpetas, ya que por defecto esta version he visto que no es lo mas adecuado. yo siempre busco que me queden asi: d:\borland\sqlrdd\lib d:\borland\sqlrdd\include d:\borland\sqlrdd\samples d:\borland\sqlrdd\dll en la carpeta lib copio todas las lib que viene en el paquete, ya que solamente vienen las sql library para bcc5.5 y 5.8 y me parece recorda que al paquete le faltan las librerias de los motores de datos. si bien deberian vernir a como en paquete de xhabour.com se puede extraer facilmente desde las dll originales. por ejemplo implib libmysq.lib mysqllib.dll implib ...... etc salu2 carlos vargas
Compilación para 12.05
<!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Gracias. salu2 carlos Vargas
Compilación para 12.05
Hola Carlos: Muchas gracias por tu interés. Sí, generé las libs con implib y nada. El problema al final fue curioso. La versión de odbc32.lib que trae BCC 5.8.2 no está completa, le faltan las siguientes funciones: [quote:av8mdkdm]Error: Unresolved external 'SQLInstallerError' referenced from C:\XHB2\LIB\BCC\SQLBCC58.LIB|sqlsrodbc Error: Unresolved external 'SQLConfigDataSource' referenced from C:\XHB2\LIB\BCC\SQLBCC58.LIB|sqlsrodbc[/quote:av8mdkdm] Al final, tuve que sustituir odbc32.lib de Borland por implib de c:\windows\system, pues en odbc32.dll sí que están estas funciones. Esto lo tuve que resolver por mi cuenta mirando todas las dependencias. En la demo de SQLRDD no dice nada de esto, ni siquiera cómo generar las libs que faltan (fb_client.lib, libpd.lib, etc). Tampoco recibí respuesta de Patrick. Al final lo he podido compilar y me funciona. Lo estoy probando. Muchas gracias de nuevo por tu interés. Eres un importante colaborador de la comunidad y es muy meritorio. Saludos
Compilación para 12.05
Amigos, Me temo xHarbour.com es una empresa fracasada. Todavía ofrecen un compilador compilado con Pelles, no hay versión de 64 bits, sin soporte... Está principalmente regentada por Patrick Mast, nadie más. Pero lo que quiero compartir es que nuestra empresa compró SQLRDD un par de años antes. Tuvimos varios problemas y no hemos obtenido respuesta de Patrick. Hemos enviado muchos mensajes de correo electrónico, pero sin respuesta. Cansados, al final dejamos SQLRDD. En cierta medida, el producto es un timo. El mejor consejo que hacer con SQLRDD de xHarbour.com y Patrick Mast es, simplemente, desecharlo. Al contrario, siempre con el FTDN hemos obtenido un muy buen soporte de Fivetech.
Compilación para 12.05
¡Final feliz! En la tarea de identificar el consumo de recursos vimos que Windows Server y MySQL no se entienden muy bien, tratamos de modificar el comportamiento moviendo los diferentes parámetros de configuración sin lograr mejor respuesta, con 20+ sesiones se muestran problemas. Decidimos probar la pareja Linux y MySQL, y funcionó. Abrimos 150+ sesiones y no se refleja problema alguno, llevamos tres días trabajando de manera muy estable y sin un solo cambio a la aplicación original. Y sí, no veo la atención oportuna del equipo de xHarbour.
Compilación para 12.05
Alfredo, Muchas gracias por tu respuesta. Por favor, ¿podrías compartir el fichero de configuración?. ¿Y arreglaste lo de xBrowse?. Un saludo, PD. A ver si los de xHarbour.com se ponen las pilas. Tienen un producto que funciona a falta de algunos pequeños ajustes. No entiendo cómo no prestan más atención la verdad.
Compilación para 12.05
alfredo como has misaro el comportamiento de wbrowse con sqlrdd es que hace unos meses probe y como que se movian los datos, evidentemente hay una funcion llamada ordkeycount que es muy usada en todos los browse y que en sqlrdd siempre retorna un 0 por efecto de rendimiento, pero que a los browses en general le siente mal ese valor retornado. salu2 carlos vargas
Compilación para 12.05
Las versiones del RDD que compilan con xHarbour 1.0 son muy estables, pero algo hiceron en las versiones actuales. He estado esperando respuesta de Patrick, dijo que pronto (hace mas de un mes).
Compilador C para 64 Bits
Antonio o quien me pueda ayudar, digamos que ya tengo la PC con procesador de 64 Bits (AMD Athlon), digamos que le instalo el WinXP 64 Bits que tambien tengo, adicionalmente cuento tambien con los Harbour y xHarbour de 64 Bits que Fivetech crea para sus clientes, salvo que me equivoque lo unico que me falta es el compilador C de 64 Bits ???? O algo mas ??? (Quizas un ambiente de compilacion como Verce, xMate o xDev compilado en 64 Bits o los actuales sirven) ??? Varias dudas, espero me iluminen, gracias
Compilador C para 64 Bits
Lo puse primero por error en el foro de Ingles <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Antonio o quien me pueda ayudar, digamos que ya tengo la PC con procesador de 64 Bits (AMD Athlon), digamos que le instalo el WinXP 64 Bits que tambien tengo, adicionalmente cuento tambien con los Harbour y xHarbour de 64 Bits que Fivetech crea para sus clientes, salvo que me equivoque lo unico que me falta es el compilador C de 64 Bits ???? O algo mas ??? (Quizas un ambiente de compilacion como Verce, xMate o xDev compilado en 64 Bits o los actuales sirven) ??? Varias dudas, espero me iluminen, gracias
Compilador C para 64 Bits
Enrique, El compilador de Microsoft C 64 bits es gratuito y puedes descargarlo desde: Web Install: <!-- m --><a class="postlink" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&DisplayLang=en">http://www.microsoft.com/downloads/deta ... layLang=en</a><!-- m --> Full Install: <!-- m --><a class="postlink" href="http://www.microsoft.com/downloads/details.aspx?familyid=EBA0128F-A770-45F1-86F3-7AB010B398A3&displaylang=en">http://www.microsoft.com/downloads/deta ... laylang=en</a><!-- m --> ISO Install: <!-- m --><a class="postlink" href="http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&displaylang=en">http://www.microsoft.com/downloads/deta ... laylang=en</a><!-- m -->
Compilador C para 64 Bits
Enrique, El compilador de Microsoft C 64 bits es gratuito y puedes descargarlo desde: Web Install: <!-- m --><a class="postlink" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&DisplayLang=en">http://www.microsoft.com/downloads/deta ... layLang=en</a><!-- m --> Full Install: <!-- m --><a class="postlink" href="http://www.microsoft.com/downloads/details.aspx?familyid=EBA0128F-A770-45F1-86F3-7AB010B398A3&displaylang=en">http://www.microsoft.com/downloads/deta ... laylang=en</a><!-- m --> ISO Install: <!-- m --><a class="postlink" href="http://www.microsoft.com/downloads/details.aspx?familyid=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92&displaylang=en">http://www.microsoft.com/downloads/deta ... laylang=en</a><!-- m -->
Compilador VERC y PELLESC
Donde se puede conseguir el compilador VERC y el PELLESC. Gracias.
Compilador VERC y PELLESC
PellesC: <!-- m --><a class="postlink" href="http://www.smorgasbordet.com/pellesc/">http://www.smorgasbordet.com/pellesc/</a><!-- m --> Te refieres al verce? <!-- m --><a class="postlink" href="http://incosmx.blogspot.com.es/">http://incosmx.blogspot.com.es/</a><!-- m -->
Compilador VERC y PELLESC
Muchas gracias Cnavarro. El PellecC tiene la posibilidad de compilar en 64bits pero el VerC/VeRCE no veo claro que se pueda. Es que mi intención es empezar a practicar en 64bits.
Compilador VERC y PELLESC
Creo, por lo que he leído (yo tampoco he usado Fwh64) que lo más recomendable es usar Visual Studio La version profesional que es la que yo uso, trae editor de recursos y, como habrás leído Antonio ha puesto unos hilos en estos días, sobre estos temas. muy interesantes Sinceramente, para mí ha sido y es, un "palo" cambiar la mentalidad y empezar a usar un IDE me está costando un montón ya que siempre he sido un defensor de los .bat y .mak, pero es lo que hay. No sé si Verce podrá usarse con harb y Fwh64, aunque en principio, por qué no?, aunque en este tema creo que seguramente hay otros usuarios en el foro que podrán aclararlo. En lo que se pueda, ya sabes
Compilador VERC y PELLESC
Que conste que yo nunca he usado IDEs, no me gustan, pues me siento bastante "atado" <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> De hecho tengo una anécdota curiosa al respecto: Conocí a un programador profesional de C cuando yo comenzaba a aprender Clipper, y viendole trabajar con el Turbo C le comenté que como era que no usaba el IDE para trabajar, ya que el IDE de Turbo C era realmente espectacular (para lo que habia, ó mejor dicho, no había entonces). Me contestó: Nunca uso el IDE, desde la línea de comandos puedo construir y hacer todo lo que necesite. En aquel momento me chocó, pero con el tiempo comprendí que un auténtico experto puede trabajar de cualquier forma, pero por encima de todo, se ama la libertad de poder hacer nosotros lo que queramos. La prueba está en que con Harbour y FWH podemos usar cualquier editor de código fuente, podemos construir desde el IDE de Microsoft, podemos construir usando un batch, ó un make, ó la gran cantidad de utilidades que han ido apareciendo. Todo eso significa: libertad, no estar atados. Lo que en su dia intentó Visual Objects, luego Visual dBase, luego Visual FoxPro, etc. Y donde quedaron todos esos ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Recuerdo tambien cuando iba a aparecer Visual dBase, pensé "RIP a FiveWin", han pasado los años y aqui seguimos dando guerra <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Compilador VERC y PELLESC
A otro programador (un programador japones para más detalles, aunque vivía en mi misma ciudad) le ví un dia trabajar con el Norton Comander y me quedé embobado viéndo con que facilidad y rapidez hacia todo. Me dió por probarlo... hasta la fecha. De él pasé al Total Commander y sin él no puedo trabajar de forma profesional en un ordenador <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Historias de cada uno, seguro que todos teneis muchas batallas como las mias para contar, que al final nos han convertido en los programadores que somos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Compilador VERC y PELLESC
Estoy con Antonio y Cnavarro en lo referente a que empezar con un IDE me va a resultar laborioso. Yo soy mas de "ventana de comandos" te da libertad de desarrollo. Comenzare con VeRCE y/o PellesC en 32 bits para irle cojiendo el tranquillo. Posteriormente pasaré a los 64bits y probaremos el Visual Studio Experss en 64bits. ¿Algún enlace de como empezar a usar VeRCE y PellesC? Gracias por vuestras opiniones.
Compilador VERC y PELLESC
To All I have worked with FiveWin for many years and when I tell people "I just write CODE", I pick up notepad, run a couple batch files and 'out pops' your Executable .. and most have NO CLUE or 'just seem brain dead' as to what I am saying. I am not a fan of IDE's because they inherently have restrictions on the code they can write. I find it amazing that ( in the usa ) job recruiters will not even talk to you if you do not have Asp.net c# ( visual studio ) experience <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> When I talk to those people and show them what I have accomplished with (x)Harbour\FiveWin and a C++ compiler, single .exe .. they just seem 'tone deaf' .. like I am "talking to the wind'. <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> I found this excerpt about dot net in an article I was recently reading .. and I thought I would share it .. specifically about using IDE's to write code.. [quote:1tu6roog] Now let me clarify — .NET is a dandy language. It’s modern, it’s fancy, it’s got all the bells and whistles. And if you’re doing Windows Mobile 7 apps (which the stats suggest you aren’t), it’s your only choice. But choosing .NET is a choice, and whenever anybody does it, I can’t help but ask “why?” Don’t get me wrong: .NET on your resume isn’t an instant showstopper. But it will definitely raise questions during the phone screen, for reasons that are best explained by simile: Programming with .NET is like cooking in a McDonalds kitchen. It is full of amazing tools that automate absolutely everything. Just press the right button and follow the beeping lights, and you can churn out flawless 1.6 oz burgers faster than anybody else on the planet. However, if you need to make a 1.7 oz burger, you simply can’t. There’s no button for it. The patties are pre-formed in the wrong size. They start out frozen so they can’t be smushed up and reformed, and the thawing machine is so tightly integrated with the cooking machine that there’s no way to intercept it between the two. A McDonalds kitchen makes exactly what’s on the McDonalds menu — and does so in an absolutely foolproof fashion. But it can’t go off the menu, and any attempt to bend the machine to your will just breaks it such that it needs to be sent back to the factory for repairs. [/quote:1tu6roog] Rick Lipkin
Compilador VERC y PELLESC
Rick Very good
Compilador de BCC63 de HARBOUR
En el SVN de harbour he visto que viene con el Compilador de Borland BCC63, supongo que supone una mejora sustancial respecto a sus antecesores. Alguien sabe si supone algun inconveniente su uso, por el tema de licencias o incompatibilidades con FIVEWIN.
Compilador de BCC63 de HARBOUR
Puedes descargarlo aquí: <!-- m --><a class="postlink" href="http://www.mediafire.com/?b71rccdw8vlcl2b">http://www.mediafire.com/?b71rccdw8vlcl2b</a><!-- m --> Yo aún no lo he probado.
Compilador de BCC63 de HARBOUR
Gracias, la verdad es que lo he configurado y parece que no da problemas. Lo único era por si representaba un problema de licencias.
Compilando FWH + HB32 Falta HBCURL.LIB
?????????????????????????????????????????????????????????????????????????????? ? FiveWin for Harbour 15.03 - Mar. 2015 Harbour development power ?? ? (c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ?? ???????????????????????????????????????????????????????????????????????????????   ????????????????????????????????????????????????????????????????????????????? Compiling... Harbour 3.2.0dev (r1501292255) Copyright (c) 1999-2015, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m --> Compiling 'TUTOR01.prg' and generating preprocessed output to 'TUTOR01.ppo'... Lines 4270, Functions/Procedures 1 Generating C source output to 'TUTOR01.c'... Done. Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland TUTOR01.c: Borland Resource Compiler Version 5.40 Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved. Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland Fatal: Unable to open file 'HBCURL.LIB' * Linking errors * C:\fwh15\samples> C:\hb32>DIR HBC*.* /S El volumen de la unidad C no tiene etiqueta. El número de serie del volumen es: 0CD1-213B Directorio de C:\hb32\include 05/02/2015 06:14 a.m. 5.279 hbcdpreg.h 05/02/2015 06:14 a.m. 2.918 hbchksum.h 05/02/2015 06:14 a.m. 37.176 hbclass.ch 05/02/2015 06:14 a.m. 5.848 hbcom.ch 05/02/2015 06:14 a.m. 24.209 hbcomp.h 05/02/2015 06:14 a.m. 31.249 hbcompdf.h 6 archivos 106.679 bytes Directorio de C:\hb32\lib 05/02/2015 06:19 a.m. 1.024 hbcomio-bcc.lib 05/02/2015 06:19 a.m. 6.144 hbcomio.lib 05/02/2015 06:19 a.m. 1.536 hbcomm-bcc.lib 05/02/2015 06:19 a.m. 6.656 hbcomm.lib 05/02/2015 06:15 a.m. 132.608 hbcommon.lib 05/02/2015 06:17 a.m. 723.968 hbcpage.lib 05/02/2015 06:15 a.m. 332.288 hbcplr.lib 05/02/2015 06:18 a.m. 47.104 hbct-bcc.lib 05/02/2015 06:18 a.m. 334.336 hbct.lib 9 archivos 1.585.664 bytes @ECHO OFF CLS ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ECHO ³ FiveWin for Harbour 15.03 - Mar. 2015 Harbour development power ³Ü ECHO ³ (c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ³Û ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß if A%1 == A GOTO :SINTAX if NOT EXIST %1.prg GOTO :NOEXIST [b:3dof87fo]SET HBDIR=C:\HB32[/b:3dof87fo] if "%FWDIR%" == "" set FWDIR=.\.. if "%HBDIR%" == "" set HBDIR=c:\harbour rem if "%2" == "/b" set GT=gtwin rem if not "%2" == "/b" set GT=gtgui set GT=gtgui ECHO Compiling... set hdir=%HBDIR% set hdirl=%hdir%\lib set fwh=%FWDIR% if exist c:\bcc582 set bcdir=c:\bcc582 if exist c:\bcc64 set bcdir=c:\bcc64 %hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log if errorlevel 1 goto COMPILEERRORS @type comp.log @type warnings.log echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include %1.c > b32.bc %bcdir%\bin\bcc32 -M -c @b32.bc :ENDCOMPILE IF EXIST %1.rc %bcdir%\bin\brc32 -r -I%bcdir%\include -I%bcdir%\include\windows\sdk %1 rem IF EXIST %1.rc %vcdir%\bin\rc -r -d__FLAT__ %1 echo %bcdir%\lib\c0w32.obj + > b32.bc echo %1.obj, + >> b32.bc echo %1.exe, + >> b32.bc echo %1.map, + >> b32.bc echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib %fwh%\lib\dolphin.lib + >> b32.bc echo %hdirl%\hbwin.lib + >> b32.bc echo %hdirl%\gtgui.lib + >> b32.bc echo %hdirl%\hbrtl.lib + >> b32.bc echo %hdirl%\hbvm.lib + >> b32.bc echo %hdirl%\hblang.lib + >> b32.bc echo %hdirl%\hbmacro.lib + >> b32.bc echo %hdirl%\hbrdd.lib + >> b32.bc echo %hdirl%\rddntx.lib + >> b32.bc echo %hdirl%\rddcdx.lib + >> b32.bc echo %hdirl%\rddfpt.lib + >> b32.bc echo %hdirl%\hbsix.lib + >> b32.bc echo %hdirl%\hbdebug.lib + >> b32.bc echo %hdirl%\hbcommon.lib + >> b32.bc echo %hdirl%\hbpp.lib + >> b32.bc echo %hdirl%\hbcpage.lib + >> b32.bc echo %hdirl%\hbcplr.lib + >> b32.bc echo %hdirl%\hbct.lib + >> b32.bc echo %hdirl%\hbpcre.lib + >> b32.bc echo %hdirl%\xhb.lib + >> b32.bc echo %hdirl%\hbziparc.lib + >> b32.bc echo %hdirl%\hbmzip.lib + >> b32.bc echo %hdirl%\hbzlib.lib + >> b32.bc echo %hdirl%\minizip.lib + >> b32.bc echo %hdirl%\png.lib + >> b32.bc echo %hdirl%\hbcurl.lib + >> b32.bc echo %hdirl%\hbusrrdd.lib + >> b32.bc echo %fwh%\lib\libcurl.lib + >> b32.bc rem Uncomment these two lines to use Advantage RDD rem echo %hdirl%\rddads.lib + >> b32.bc rem echo %hdirl%\Ace32.lib + >> b32.bc rem echo %fwh%\lib\dolphin.lib + >> b32.bc rem echo %fwh%\lib\libmysql.lib + >> b32.bc echo %bcdir%\lib\cw32.lib + >> b32.bc echo %bcdir%\lib\uuid.lib + >> b32.bc echo %bcdir%\lib\import32.lib + >> b32.bc echo %bcdir%\lib\ws2_32.lib + >> b32.bc echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc echo %bcdir%\lib\psdk\shell32.lib, >> b32.bc IF EXIST %1.res echo %1.res >> b32.bc if %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s @b32.bc IF ERRORLEVEL 1 GOTO LINKERROR if %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc IF ERRORLEVEL 1 GOTO LINKERROR ECHO * Application successfully built * rem signtool.exe sign /fd sha256 %1.exe %1 GOTO EXIT ECHO rem delete temporary files @del %1.c :COMPILEERRORS @type comp.log @type warnings.log ECHO * Compile errors * GOTO EXIT :LINKERROR ECHO * Linking errors * GOTO EXIT :SINTAX ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG ECHO {-- Don't specify .PRG extension GOTO EXIT :NOEXIST ECHO The specified PRG %1 does not exist :EXIT
Compilando FWH + HB32 Falta HBCURL.LIB
removido echo %hdirl%\hbcurl.lib + >> b32.bc Logré compilar removiendo la lib logre ubicarla <!-- m --><a class="postlink" href="https://harbour-and-xharbour-builds.googlecode.com/files/hbcurl.lib">https://harbour-and-xharbour-builds.goo ... hbcurl.lib</a><!-- m --> Genera incidencia Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland Error: 'C:\HB32\LIB\HBCURL.LIB' contains invalid OMF record, type 0x21 (possibl COFF) * Linking errors * C:\fwh15\samples> Buscare a Lib en otros sitios, Si algun colega la posee agradezco si puede enviarla a <!-- e --><a href="mailto:jnavas@datapronet.com">jnavas@datapronet.com</a><!-- e --> para enlazar con bcc582
Compilando FWH + HB32 Falta HBCURL.LIB
Saludos Resuelto <!-- m --><a class="postlink" href="https://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=hbcurl.zip&can=2&q=">https://code.google.com/p/harbour-and-x ... p&can=2&q=</a><!-- m --> Antonio Recomiendo bifucar si existe este archivo se incluye en el buildh.bat
Compilando FWH + HB32 Falta HBCURL.LIB
Antonio, Saludos cordiales Hice este pequeño cambio @ECHO OFF CLS ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ECHO ³ FiveWin for Harbour 15.03 - Mar. 2015 Harbour development power ³Ü ECHO ³ (c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ³Û ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß if A%1 == A GOTO :SINTAX if NOT EXIST %1.prg GOTO :NOEXIST if "%FWDIR%" == "" set FWDIR=.\.. if "%HBDIR%" == "" set HBDIR=c:\harbour rem if "%2" == "/b" set GT=gtwin rem if not "%2" == "/b" set GT=gtgui set GT=gtgui ECHO Compiling... set hdir=%HBDIR% set hdirl=%hdir%\lib set fwh=%FWDIR% if exist c:\bcc582 set bcdir=c:\bcc582 if exist c:\bcc64 set bcdir=c:\bcc64 %hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log if errorlevel 1 goto COMPILEERRORS @type comp.log @type warnings.log echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include %1.c > b32.bc %bcdir%\bin\bcc32 -M -c @b32.bc :ENDCOMPILE IF EXIST %1.rc %bcdir%\bin\brc32 -r -I%bcdir%\include -I%bcdir%\include\windows\sdk %1 rem IF EXIST %1.rc %vcdir%\bin\rc -r -d__FLAT__ %1 echo %bcdir%\lib\c0w32.obj + > b32.bc echo %1.obj, + >> b32.bc echo %1.exe, + >> b32.bc echo %1.map, + >> b32.bc echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib %fwh%\lib\dolphin.lib + >> b32.bc echo %hdirl%\hbwin.lib + >> b32.bc echo %hdirl%\gtgui.lib + >> b32.bc echo %hdirl%\hbrtl.lib + >> b32.bc echo %hdirl%\hbvm.lib + >> b32.bc echo %hdirl%\hblang.lib + >> b32.bc echo %hdirl%\hbmacro.lib + >> b32.bc echo %hdirl%\hbrdd.lib + >> b32.bc echo %hdirl%\rddntx.lib + >> b32.bc echo %hdirl%\rddcdx.lib + >> b32.bc echo %hdirl%\rddfpt.lib + >> b32.bc echo %hdirl%\hbsix.lib + >> b32.bc echo %hdirl%\hbdebug.lib + >> b32.bc echo %hdirl%\hbcommon.lib + >> b32.bc echo %hdirl%\hbpp.lib + >> b32.bc echo %hdirl%\hbcpage.lib + >> b32.bc echo %hdirl%\hbcplr.lib + >> b32.bc echo %hdirl%\hbct.lib + >> b32.bc echo %hdirl%\hbpcre.lib + >> b32.bc echo %hdirl%\xhb.lib + >> b32.bc echo %hdirl%\hbziparc.lib + >> b32.bc echo %hdirl%\hbmzip.lib + >> b32.bc echo %hdirl%\hbzlib.lib + >> b32.bc echo %hdirl%\minizip.lib + >> b32.bc echo %hdirl%\png.lib + >> b32.bc [b:22yhn286]if exist %hdirl%\hbcurl.lib echo %hdirl%\hbcurl.lib + >> b32.bc[/b:22yhn286] echo %hdirl%\hbusrrdd.lib + >> b32.bc echo %fwh%\lib\libcurl.lib + >> b32.bc rem Uncomment these two lines to use Advantage RDD rem echo %hdirl%\rddads.lib + >> b32.bc rem echo %hdirl%\Ace32.lib + >> b32.bc rem echo %fwh%\lib\dolphin.lib + >> b32.bc rem echo %fwh%\lib\libmysql.lib + >> b32.bc echo %bcdir%\lib\cw32.lib + >> b32.bc echo %bcdir%\lib\uuid.lib + >> b32.bc echo %bcdir%\lib\import32.lib + >> b32.bc echo %bcdir%\lib\ws2_32.lib + >> b32.bc echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc echo %bcdir%\lib\psdk\shell32.lib, >> b32.bc IF EXIST %1.res echo %1.res >> b32.bc if %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s @b32.bc IF ERRORLEVEL 1 GOTO LINKERROR if %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc IF ERRORLEVEL 1 GOTO LINKERROR ECHO * Application successfully built * rem signtool.exe sign /fd sha256 %1.exe %1 GOTO EXIT ECHO rem delete temporary files @del %1.c :COMPILEERRORS @type comp.log @type warnings.log ECHO * Compile errors * GOTO EXIT :LINKERROR ECHO * Linking errors * GOTO EXIT :SINTAX ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG ECHO {-- Don't specify .PRG extension GOTO EXIT :NOEXIST ECHO The specified PRG %1 does not exist :EXIT
Compilando FWH + HB32 Falta HBCURL.LIB
Dear friends, ejiste una HBCURL.LIB para xHarbour? Gracias, saludos.
Compilando FWH + HB32 Falta HBCURL.LIB
Gracias, master Cristobal Navarro: [url:11ttdkx9]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/27271-rotina-para-gravar-backup-google-drive/[/url:11ttdkx9] Regards, saludos.
Compilando Proyecto con MINGW
Saludos al Forum He compilado mi proiyecto con BCC y Visual Studio , peor como minigui me da este error. como debo compilar para que no me salga este error ya que dicha funcion esta definida en ambas librerias. [code=fw:38kfvzny]<div class="fw" id="{CB}" style="font-family: monospace;"><br />k:/c_mingw/mingw102_32/bin/../lib/gcc/i686-w64-mingw32/<span style="color: #000000;">10.2</span><span style="color: #000000;">.0</span>/../../../../i686-w64-mingw32/bin/ld.exe: \harbour_v\harbour_mingw10\lib\win\mingw/libhbrtl.a<span style="color: #000000;">&#40;</span>alert.o<span style="color: #000000;">&#41;</span>:<span style="color: #000000;">alert</span>.c:<span style="color: #000000;"><span style="color: #000000;">&#40;</span></span>.<span style="color: #0000ff;">text</span>+0x70<span style="color: #000000;">&#41;</span>: <span style="color: #000000;">multiple</span> definition <span style="color: #0000ff;">of</span> `HB_FUN_ALERT<span style="color: #ff0000;">'; <span style="color: #000000;">\f</span>wh<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\f</span>ivehg.lib(ALERT.o):ALERT.c:(.text+0x3a): first defined here<br />collect2.exe: error: ld returned 1 exit status<br /><br /><br /></span></div>[/code:38kfvzny]
Compilando Proyecto con MINGW
Dario, Prueba a usar este flag de gcc: --allow-multiple-definition
Compilando Proyecto con MINGW
Gracias, Antonio Funciono. Ok
Compilando Proyecto con MINGW
En mi proyecto no me da valores cuando uso estas estruciones screenWidth := HB_GTINFO( HB_GTI_DESKTOPWIDTH ) screenHeight:= HB_GTINFO( HB_GTI_DESKTOPHEIGHT ) no asigna ningun valor en screenWidth y screenHeight wvt_SetFont( "Lucida Console", Round(( screenHeight / MaxRow() ),0)-4, Round(( screenWidth / MaxCol() ),0), 0 ) El proyecto lo compilo con BCCo VSS funciona.
Compilando Proyecto con MINGW
Tal vez tengas que llamar a SetMode() previamente [url:1nlisif5]https&#58;//harbour&#46;harbour-project&#46;narkive&#46;com/119Wi69S/wvg-problem[/url:1nlisif5]
Compilando Proyecto con MINGW
Gracias , Antonio. Funciona y todo pefectamente, si faltaba lo que me indicaste
Compilando Proyecto con MINGW
Antonio me podria orientar para este caso. En mi caso uso WvgCrt():New(,,... Esporadicamente se me distorciona la pantalla. le anexo imagen para una mejor explicacion del problema. Esto pasa si compilo con bcc o vss o minigw [url:2ovo5zgx]https&#58;//www&#46;4shared&#46;com/photo/7zGaovdWea/pantalla_disp&#46;html[/url:2ovo5zgx]
Compilando Proyecto con MINGW
Creo que el problema es que estás usando versiones de librerias construidas con una version de mingw distinata a la actual
Compilando Proyecto con MINGW
Ruben, Siento no poder ayudarte. No tengo experiencia con Wvg
Compilando TDOSPRN y TXTVIEW
Hola amigos... estoy tratando de hace anda lo arriba... y da el siguiente error al compilar Error: Unresolved external '_HB_PCREPOS_LIBRARY' referenced from C:\XHARBOUR\LIB\RTL.LIB|regex gracias david argentina
Compilando TDOSPRN y TXTVIEW
David, Hay que agregar la LIB, pcrepos.lib a la lista de LIB.
Compilando TDOSPRN y TXTVIEW
PERFECTO MUCHAS GRACIAS david argentinas
Compilando TSCAN MVC2010
Trantando de compilar TSCAN con Harbour 3.1 y MVC 2010 tengo estos problemas al enlazar he creado la lib de la siguiente manera desde EZTW32.DLL impdef twain.def EZTW32.DLL lib.exe /DEF:twain.def /OUT:twain.lib /MACHINE:X86 Para crear la lib he probado con parametros de impdef -a , -aa, -h. Si compilo y enlazo con Harbour 3.1 o xHarbour 1.2.1 y BCC63 lo hace bien, no se que me falta con MVC TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_Acquire@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ACQUIRE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_FreeNative@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_FREE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SelectImageSource@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SELECTIMAGESOURCE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_AcquireNative@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ACQUIRENATIVE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_AcquireToClipboard@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ACQUIRETOCLIPBOARD TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_AcquireMemory@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ACQUIREMEMORY TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_AcquireToFilename@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ACQUIRETOFILENAME TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_AcquireFile@12 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ACQUIREFILE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_IsAvailable@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_AVAIL TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_EasyVersion@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_EASYVERSION TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_State@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_STATE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SourceName@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SOURCENAME TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetSourceName@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETSOURCENAME TSCAN.obj : error LNK2019: sÝmbolo externo _DIB_WriteToJpeg@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_DIBWJPG TSCAN.obj : error LNK2019: sÝmbolo externo _DIB_WriteToBmp@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_DIBWBMP TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_IsJpegAvailable@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ISJPG TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetSaveFormat@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETSAVEFORMAT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetSaveFormat@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETSAVEFORMAT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetJpegQuality@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETJPEGQUALITY TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetJpegQuality@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETJPEGQUALITY TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_WriteNativeToFilename@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_WRITENATIVETOFILENAME TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_LoadNativeFromFilename@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_LOADNATIVEFROMFILENAME TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetMultiTransfer@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETMULTITRANSFER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetMultiTransfer@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETMULTITRANSFER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetHideUI@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETHIDEUI TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetHideUI@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETHIDEUI TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_DisableParent@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_DISABLEPARENT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetDisableParent@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETDISABLEPARENT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_RegisterApp@32 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_REGISTERAPP TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetAppTitle@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETAPPTITLE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_LoadSourceManager@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_LOADSOURCEMANAGER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_OpenSourceManager@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_OPENSOURCEMANAGER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_OpenDefaultSource@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_OPENDEFAULTSOURCE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetSourceList@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETSOURCELIST TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetNextSourceName@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETNEXTSOURCENAME TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetDefaultSourceName@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETDEFAULTSOURCENAME TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_OpenSource@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_OPENSOURCE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_EnableSource@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ENABLESOURCE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_DisableSource@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_DISABLESOURCE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_CloseSource@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_CLOSESOURCE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_CloseSourceManager@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_CLOSESOURCEMANAGER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_UnloadSourceManager@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_UNLOADSOURCEMANEGER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetCurrentUnits@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETCURRENTUNITS TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetCurrentUnits@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETCURRENTUNITS TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetBitDepth@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETBITDEPTH TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetBitDepth@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETBITDEPTH TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetPixelType@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETPIXELTYPE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetCurrentPixelType@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETCURRENTPIXELTYPE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetCurrentResolution@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETCURRENTRESOLUTION TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetYResolution@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETYRESOLUTION TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetCurrentResolution@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETCURRENTRESOLUTION TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetXResolution@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETXRESOLUTION TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetYResolution@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETYRESOLUTION TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetContrast@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETCONTRATS TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetBrightness@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETBRIGHTNESS TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetThreshold@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETTHRESHOLD TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetCurrentThreshold@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETCURRENTTHRESHOLD TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetXferMech@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETXFERMECH TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_XferMech@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_XFERMECH TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SupportsFileXfer@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SUPPORTSFILEXFER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetPaperSize@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETPAPERSIZE TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_HasFeeder@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_HASFEEDER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_IsFeederSelected@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ISFEEDERSELECTED TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SelectFeeder@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SELECTFEEDER TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_IsAutoFeedOn@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ISAUTOFEEDON TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetAutoFeed@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETAUTOFEDD TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_IsFeederLoaded@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ISFEEDERLOADED TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetDuplexSupport@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETDUPLEXSUPPORT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_EnableDuplex@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ENABLEDUPLEX TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_IsDuplexEnabled@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_ISDUPLEXENABLED TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_HasControllableUI@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_HASCONTROLLABLEUI TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetIndicators@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETINDICATORS TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_Compression@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_COMPRESSION TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetCompression@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETCOMPRESSION TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_Tiled@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_TILED TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetTiled@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETTILED TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_PlanarChunky@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_PLANARCHUNKY TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetPlanarChunky@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETPLANARCHUNKY TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_PixelFlavor@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_PIXELFLAVOR TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetPixelFlavor@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETPIXELFLAVOR TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetLightPath@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETLIGHTPATH TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetAutoBright@4 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETAUTOBRIGHT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetGamma@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETGAMMA TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetShadow@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETSHADOW TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetHighlight@8 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETHIGHLIGHT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_SetImageLayout@32 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_SETIMAGELAYOUT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_ResetImageLayout@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_RESETIMAGELAYOUT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetImageLayout@16 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETIMAGELAYOUT TSCAN.obj : error LNK2019: sÝmbolo externo _TWAIN_GetDefaultImageLayout@16 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_GETDEFAULTIMAGELAYOUT TSCAN.obj : error LNK2019: sÝmbolo externo _DIB_GetFromClipboard@0 sin resolver al que se hace referencia en la funci¾n _HB_FUN_TW_DIB_GETFROMCLIPBOARD Slds
Compilando TSCAN MVC2010
Aqui esta el fuente de TSCAN tomado de TSCAN32 de Rafa Carmona [code=fw:2xeu0cmf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// &nbsp;$Id: TSCAN.prg,v 1.1 2004/03/22 12:20:43 xthefull Exp $</span><br /><span style="color: #B900B9;">// Example scanner, Class TSCAN32 and Wrappers for [x]Harbour</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;it under the terms of the GNU General Public License as published by</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;(at your option) any later version.</span><br /><br /><span style="color: #B900B9;">// &nbsp; &nbsp;This program is distributed in the hope that it will be useful,</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;GNU General Public License for more details.</span><br /><br /><span style="color: #B900B9;">// &nbsp; &nbsp;You should have received a copy of the GNU General Public License</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;along with this software; see the file COPYING. &nbsp;If not, write to</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;the Free Software Foundation, Inc., 59 Temple Place, Suite 330,</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;Boston, MA 02111-1307 USA (or visit the web site <!-- m --><a class="postlink" href="http://www.gnu.org/">http://www.gnu.org/</a><!-- m -->).</span><br /><br /><span style="color: #B900B9;">// &nbsp; &nbsp;The exception is that, if you link the class Tscan32 and Wrappers C with other</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;files to produce an executable, this does not by itself cause the</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;resulting executable to be covered by the GNU General Public License.</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;Your use of that executable is in no way restricted on account of</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;linking the Tscan32 and Wrappers library code into it.</span><br /><br /><span style="color: #B900B9;">// 2003(c)- Rafa Carmona( Thefull )</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// interface to Dosadi EZTWAIN library by TheFull</span><br /><span style="color: #B900B9;">// Interface para la libreria EZTWAIN de Dosadi por TheFull</span><br /><span style="color: #B900B9;">// 32 bits</span><br /><br /><span style="color: #B900B9;">// ATENTION. THIS LICENSE NOT APLICATTE A EZTWAIN.</span><br /><span style="color: #B900B9;">// YOUR VIEW LICENSE EZTW32.DLL IN <!-- w --><a class="postlink" href="http://WWW.DOSADI.COM">WWW.DOSADI.COM</a><!-- w --></span><br /><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"HBCLASS.CH"</span><br /><br /><br /><span style="color: #B900B9;">// Returns the TWAIN Protocol State per the spec.</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_PRESESSION&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source manager not loaded</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_SM_LOADED&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source manager loaded</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_SM_OPEN&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">3</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source manager open</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_SOURCE_OPEN&nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #000000;">4</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source open but not enabled</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_SOURCE_ENABLED&nbsp; &nbsp; <span style="color: #000000;">5</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source enabled to acquire</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_TRANSFER_READY&nbsp; &nbsp; <span style="color: #000000;">6</span>&nbsp; &nbsp;<span style="color: #B900B9;">// image ready to transfer</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_TRANSFERRING&nbsp; &nbsp; &nbsp; <span style="color: #000000;">7</span>&nbsp; &nbsp;<span style="color: #B900B9;">// image in transit</span><br /><br />***************************************************************************<br />*<br />* <span style="color: #00C800;">CLASS</span> TSCAN32<br />* <span style="color: #000000;">2003</span><span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span>- by Rafa Carmona <span style="color: #000000;">&#40;</span> TheFull <span style="color: #000000;">&#41;</span><br />* Beta <span style="color: #000000;">1.0</span><br />* Beta <span style="color: #000000;">2.0</span> &nbsp;<span style="color: #00C800;">New</span>. Support <span style="color: #0000ff;">Get</span> ClipBoard <span style="color: #0000ff;">to</span> hDib.<br />* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">New</span>. ClipboardToFile<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span> -> Save File Jpg into Clipboard.<br />*<br />* Beta <span style="color: #000000;">3.0</span> &nbsp;<span style="color: #00C800;">New</span>. ReWrite <span style="color: #00C800;">Method</span> End, conflict GPFs &nbsp;;<span style="color: #000000;">&#41;</span><br />*<br />* Beta <span style="color: #000000;">4.0</span> &nbsp;<span style="color: #00C800;">Return</span> parameters in format Logical. <span style="color: #0000ff;">Change</span> hb_retni<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> with hb_retl<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*<br />****************************************************************************<br /><br /><span style="color: #00C800;">CLASS</span> TSCAN32<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> hWnd<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> cFile<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> hDib<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> lError <span style="color: #0000ff;">INIT</span> .F.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> nState<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> lBmp &nbsp; <span style="color: #0000ff;">INIT</span> .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cFile, hWnd <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> Register<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> FreeNative <span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> Close &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> DigiToFile<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> DibToJpeg<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> TW_DibWJpg<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDib</span>, cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> DibToBmp<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #00C800;">INLINE</span> TW_DibWBmp<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDib</span>, cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetJpegQ<span style="color: #000000;">&#40;</span> nQuality<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> TW_SetJpegQuality<span style="color: #000000;">&#40;</span> nQuality <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// 1..100 Default 75</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> Acquire<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_Acquire<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> AcquireClipBoard<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> TW_AcquireToClipboard<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> , <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> OpenDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> OpenSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> EnableSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_EnableSource<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> Choose<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_SelectImageSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ********** &nbsp; &nbsp;Basic TWAIN Inquiries **********************************</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> IsAvailable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> TW_Avail<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> Version<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> TW_EasyVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> / <span style="color: #000000;">100</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> State<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">nState</span> := TW_State<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SourceName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_SourceName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> GetSourceName<span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> TW_GetSourceName<span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//************ &nbsp; Global Options *****************************************</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetHide<span style="color: #000000;">&#40;</span> lHide <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> IIF<span style="color: #000000;">&#40;</span> lHide , TW_SetHideUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, TW_SetHideUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//-*********** High-level Capability Negotiation Functions **************</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// These functions should only be called in State 4 (TWAIN_SOURCE_OPEN)</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> PixelType<span style="color: #000000;">&#40;</span> nType <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">State</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nState</span> >= TWAIN_SOURCE_OPEN,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TW_SetCurrentPixelType<span style="color: #000000;">&#40;</span> nType <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetRes<span style="color: #000000;">&#40;</span> dRes <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">State</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nState</span> >= TWAIN_SOURCE_OPEN,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TW_SetCurrentResolution<span style="color: #000000;">&#40;</span> dRes <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetXRes<span style="color: #000000;">&#40;</span> dRes <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> TW_SetXResolution<span style="color: #000000;">&#40;</span> dRes <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetYRes<span style="color: #000000;">&#40;</span> dRes <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> TW_SetYResolution<span style="color: #000000;">&#40;</span> dRes <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetUnits<span style="color: #000000;">&#40;</span> nUnits <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_SETCURRENTUNITS<span style="color: #000000;">&#40;</span> nUnits <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetContrats<span style="color: #000000;">&#40;</span> dContrats<span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> TW_SETCONTRATS<span style="color: #000000;">&#40;</span> dContrats &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetBright<span style="color: #000000;">&#40;</span> dBright <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_SETBRIGHTNESS<span style="color: #000000;">&#40;</span> dBright <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetPaper<span style="color: #000000;">&#40;</span> nPaper <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_SETPAPERSIZE<span style="color: #000000;">&#40;</span> nPaper <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> GetResolution<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> TW_GETCURRENTRESOLUTION<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//******** Image Layout (Region of Interest) **********************</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> RegionSet<span style="color: #000000;">&#40;</span> nLeft,nTop, nRigth, nBottom <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> TW_SetImageLayout<span style="color: #000000;">&#40;</span> nLeft,nTop, nRigth, nBottom <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> RegionReset<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_ResetImageLayout<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> RegionGet<span style="color: #000000;">&#40;</span> L,T,R,B <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> TW_GetImageLayout<span style="color: #000000;">&#40;</span>@L,@T,@R,@B<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> RegionGetDefault<span style="color: #000000;">&#40;</span> L,T,R,B <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> TW_GetDefaultImageLayout<span style="color: #000000;">&#40;</span>@L,@T,@R,@B<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> ClipBoardToFile<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> DIB_GetFromClipboard<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> TW_DIB_GetFromClipboard<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// feeader</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> HasFeeder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> TW_HasFeeder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> IsFeederLoad<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> TW_IsFeederLoaded<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> IsAutoFeedOn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> TW_IsAutoFeedon<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SetAutoFedd<span style="color: #000000;">&#40;</span> lOnOff <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> TW_SetAutoFedd<span style="color: #000000;">&#40;</span> lOnOff <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> SelectFeeder<span style="color: #000000;">&#40;</span> lOnOff <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> TW_SelectFeeder<span style="color: #000000;">&#40;</span> lOnOff <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br />***********************************************************<br />***********************************************************<br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cFile, hWnd <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSCAN32<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">hWnd</span> := GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cFile</span> := <span style="color: #ff0000;">"TestTscan32.jpg"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cFile</span> := cFile<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> !::<span style="color: #000000;">IsAvailable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lError</span> := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// MsgStop( "TWAIN no found","Attention!") // Only Fivewin</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> !::<span style="color: #000000;">lError</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #ff0000;">"1.0 Beta"</span>,<span style="color: #ff0000;">"by Rafa Carmona"</span>,<span style="color: #ff0000;">"Scan by Thefull"</span>,<span style="color: #ff0000;">"Scan For [x]Harbour"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">OpenSource</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">OpenDefault</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br />**********************************************************************<br />* Comprueba que esta disponible TWAIN y cargalo<br />**********************************************************************<br /><span style="color: #00C800;">METHOD</span> OpenSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSCAN32<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> nResult := TW_LoadSourceManager<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nResult = <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lError</span> := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// MsgStop("Error Driver TWAIN"," ¿ Insufficient Memory ?")</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Return</span> <span style="color: #00C800;">Self</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Self</span><br /><br />***********************************************************************<br />* &nbsp;Abre TWAIN el ultimo que fue seleccionado desde <span style="color: #0000ff;">Select</span> ..<span style="color: #0000ff;">Dialog</span><br />* Si no puede cargarlo solicita seleccionar Source.<br />***********************************************************************<br /><span style="color: #00C800;">METHOD</span> OpenDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSCAN32<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> nResult := TW_OpenDefaultSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nResult = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">Choose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nResult = <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lError</span> := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">OTHERWISE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lError</span> := .F.<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Self</span><br /><br />**************************************************************************<br />* Liberamos hDib y cerramos el dispositivo<br />**************************************************************************<br /><span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSCAN32<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDib</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; TW_Free<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDib</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;TW_CloseSourceManager<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Close para evitar GPF</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br /><br />***************************************************************************<br />* Registra la aplicacion<br />***************************************************************************<br /><span style="color: #00C800;">METHOD</span> Register<span style="color: #000000;">&#40;</span> nMajor ,nMinor,nLanguage,nCountry,cVersion,cName,cFamily,cProduct <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSCAN32<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;TW_REGISTERAPP<span style="color: #000000;">&#40;</span> nMajor ,nMinor,nLanguage,nCountry,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cVersion,cName,cFamily,cProduct <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Self</span><br /><br />***********************************************************<br />* Digitaliza hacia un fichero .jpg<br />***********************************************************<br /><span style="color: #00C800;">METHOD</span> DigiToFile<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> EMPTY<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cFile := ::<span style="color: #000000;">cFile</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> !::<span style="color: #000000;">lError</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">hDib</span> := ::<span style="color: #000000;">Acquire</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Importar</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDib</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lBmp</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Format bmp</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">DibToBmp</span><span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Si no hacemos uso de BMP</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> TW_IsJpg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Si puede hacer uso del JPG</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibToJpeg</span><span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">DibToBmp</span><span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Si no hacemos uso de BMP</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Self</span><br /><br /><br />************************************************************************<br />* Save content clipboard into <span style="color: #0000ff;">to</span> file.jpg<br />************************************************************************<br /><span style="color: #00C800;">METHOD</span> ClipBoardToFile<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSCAN32<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> hDib, nError<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cFile</span> := <span style="color: #ff0000;">"TestTscan32.jpg"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cFile</span> := cFile<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; hDib := ::<span style="color: #000000;">DIB_GetFromClipboard</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">&#40;</span> hDib <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lBmp</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TW_DibWBmp<span style="color: #000000;">&#40;</span> &nbsp;hDib, ::<span style="color: #000000;">cFile</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> TW_IsJpg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Si puede hacer uso del JPG</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TW_DibWJpg<span style="color: #000000;">&#40;</span> hDib, &nbsp;::<span style="color: #000000;">cFile</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TW_DibWBmp<span style="color: #000000;">&#40;</span> &nbsp;hDib, ::<span style="color: #000000;">cFile</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TW_Free<span style="color: #000000;">&#40;</span> hDib <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><span style="color: #B900B9;">/* -----------------------------------------------------------------<br />&nbsp; Implementation Language C for [x]Harbour(WIN32)<br />&nbsp; 2003(c)- by Rafa Carmona ( TheFull )<br /><br />&nbsp; Wrappers for EZTW32.DLL the DosAdi.<br /><br />-------------------------------------------------------------------- */</span><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br />&nbsp;<span style="color: #00D7D7;">#include</span> <windows.h><br />&nbsp;<span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"eztwain.h"</span><br />&nbsp;<span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><br /><br /><span style="color: #B900B9;">/*--------- Top-Level Calls -------------------------------------*/</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ACQUIRE <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// hWnd</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp;<br />&nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span>TWAIN_Acquire<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_FREE <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #B900B9;">// hDib</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; TWAIN_FreeNative<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HANDLE <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SELECTIMAGESOURCE <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// hWnd</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SelectImageSource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ACQUIRENATIVE <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// hWnd, nPixTypes</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span>TWAIN_AcquireNative<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>unsigned<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ACQUIRETOCLIPBOARD <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// hWnd, nPixTypes</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_AcquireToClipboard<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span>unsigned<span style="color: #000000;">&#41;</span> hb_parni<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ACQUIREMEMORY <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// hWnd</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span>TWAIN_AcquireMemory<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ACQUIRETOFILENAME <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// hWnd, cFileName</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_AcquireToFilename<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ACQUIREFILE <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// hWnd, nFF, cFileName</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_AcquireFile<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ,hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//--------- Basic TWAIN Inquiries</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_AVAIL <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_IsAvailable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_EASYVERSION<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_EasyVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_STATE <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_State<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SOURCENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retc<span style="color: #000000;">&#40;</span> TWAIN_SourceName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETSOURCENAME <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// pzName</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; TWAIN_GetSourceName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LPSTR<span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//--------- DIB handling utilities ---------</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_DIBWJPG <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// hDib, cName</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_parni<span style="color: #000000;">&#40;</span> DIB_WriteToJpeg<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HANDLE <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_DIBWBMP <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// hDib, cName</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_parni<span style="color: #000000;">&#40;</span> DIB_WriteToBmp<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HANDLE <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">//--------- File Read/Write</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ISJPG <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_IsJpegAvailable<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETSAVEFORMAT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetSaveFormat<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETSAVEFORMAT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetSaveFormat<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETJPEGQUALITY <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// nQuality 1...100</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; TWAIN_SetJpegQuality<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETJPEGQUALITY <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetJpegQuality<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_WRITENATIVETOFILENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_WriteNativeToFilename<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HANDLE<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_LOADNATIVEFROMFILENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> TWAIN_LoadNativeFromFilename<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><br /><span style="color: #B900B9;">//--------- Global Options ----------------------------------------------</span><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETMULTITRANSFER <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; TWAIN_SetMultiTransfer<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETMULTITRANSFER <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetMultiTransfer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETHIDEUI &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// nHide</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; TWAIN_SetHideUI<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETHIDEUI &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetHideUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_DISABLEPARENT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; TWAIN_DisableParent<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETDISABLEPARENT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetDisableParent<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_REGISTERAPP <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br /><br />&nbsp;TWAIN_RegisterApp<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>,hb_parni<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,hb_parni<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>,hb_parni<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETAPPTITLE <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; TWAIN_SetAppTitle<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><span style="color: #B900B9;">//--------- TWAIN State Control ---------------------------------------</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_LOADSOURCEMANAGER <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_LoadSourceManager<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_OPENSOURCEMANAGER <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// hWnd</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_OpenSourceManager<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_OPENDEFAULTSOURCE <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_OpenDefaultSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETSOURCELIST <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetSourceList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETNEXTSOURCENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetNextSourceName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LPSTR<span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETDEFAULTSOURCENAME <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetDefaultSourceName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LPSTR<span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_OPENSOURCE <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_OpenSource<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ENABLESOURCE <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// hWnd</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_EnableSource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_DISABLESOURCE <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_DisableSource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_CLOSESOURCE <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_CloseSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_CLOSESOURCEMANAGER <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_CloseSourceManager<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HWND<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_UNLOADSOURCEMANEGER <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_UnloadSourceManager<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><br /><br /><span style="color: #B900B9;">//--------- High-level Capability Negotiation Functions --------------</span><br /><span style="color: #B900B9;">// These functions should only be called in State 4 (TWAIN_SOURCE_OPEN)</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETCURRENTUNITS <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetCurrentUnits<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETCURRENTUNITS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// nUnits</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetCurrentUnits<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETBITDEPTH <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetBitDepth<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETBITDEPTH <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetBitDepth<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETPIXELTYPE <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetPixelType<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETCURRENTPIXELTYPE <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// nBits</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetCurrentPixelType<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETCURRENTRESOLUTION <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retnd<span style="color: #000000;">&#40;</span> TWAIN_GetCurrentResolution<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETYRESOLUTION <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retnd<span style="color: #000000;">&#40;</span> TWAIN_GetYResolution<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETCURRENTRESOLUTION <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// dRes</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetCurrentResolution<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETXRESOLUTION <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetXResolution<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETYRESOLUTION <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetYResolution<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETCONTRATS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//dCon</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetContrast<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// -1000....+1000</span><br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETBRIGHTNESS <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//dBri</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetBrightness<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// -1000....+1000</span><br />&nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETTHRESHOLD <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetThreshold<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETCURRENTTHRESHOLD <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retnd<span style="color: #000000;">&#40;</span> TWAIN_GetCurrentThreshold<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETXFERMECH <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetXferMech<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_XFERMECH <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_XferMech<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SUPPORTSFILEXFER <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SupportsFileXfer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETPAPERSIZE <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// nTypePaper</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetPaperSize<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//-------- Document Feeder ---------------------------------</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_HASFEEDER <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_HasFeeder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ISFEEDERSELECTED <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_IsFeederSelected<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SELECTFEEDER <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_SelectFeeder<span style="color: #000000;">&#40;</span> hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ISAUTOFEEDON <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_IsAutoFeedOn<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETAUTOFEDD <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_SetAutoFeed<span style="color: #000000;">&#40;</span> hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ISFEEDERLOADED <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_IsFeederLoaded<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//-------- Duplex Scanning ------------------------------------------</span><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETDUPLEXSUPPORT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_GetDuplexSupport<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ENABLEDUPLEX <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_EnableDuplex<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_ISDUPLEXENABLED <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_IsDuplexEnabled<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//--------- Other 'exotic' capabilities --------</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_HASCONTROLLABLEUI <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_HasControllableUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETINDICATORS <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetIndicators<span style="color: #000000;">&#40;</span> hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_COMPRESSION <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_Compression<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETCOMPRESSION <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetCompression<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_TILED <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retl<span style="color: #000000;">&#40;</span> TWAIN_Tiled<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETTILED <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetTiled<span style="color: #000000;">&#40;</span> hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_PLANARCHUNKY <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_PlanarChunky<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETPLANARCHUNKY <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetPlanarChunky<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_PIXELFLAVOR <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_PixelFlavor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETPIXELFLAVOR <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetPixelFlavor<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETLIGHTPATH <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetLightPath<span style="color: #000000;">&#40;</span> hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETAUTOBRIGHT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetAutoBright<span style="color: #000000;">&#40;</span> hb_parl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETGAMMA <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetGamma<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETSHADOW <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetShadow<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETHIGHLIGHT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetHighlight<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><span style="color: #B900B9;">//--------- Image Layout (Region of Interest) --------</span><br /><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_SETIMAGELAYOUT <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// left, top, right, bottom</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> TWAIN_SetImageLayout<span style="color: #000000;">&#40;</span> hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>,hb_parnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_RESETIMAGELAYOUT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; TWAIN_ResetImageLayout<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_ret<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETIMAGELAYOUT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; double L,T,R,B;<br />&nbsp; int nRet;<br /><br />&nbsp; nRet = TWAIN_GetImageLayout<span style="color: #000000;">&#40;</span> &L,&T,&R,&B <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; hb_stornd<span style="color: #000000;">&#40;</span> L, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_stornd<span style="color: #000000;">&#40;</span> T, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_stornd<span style="color: #000000;">&#40;</span> R, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_stornd<span style="color: #000000;">&#40;</span> B, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> nRet <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_GETDEFAULTIMAGELAYOUT <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; double L,T,R,B;<br />&nbsp; int nRet;<br /><br />&nbsp; nRet = TWAIN_GetDefaultImageLayout<span style="color: #000000;">&#40;</span> &L, &T, &R, &B<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; hb_stornd<span style="color: #000000;">&#40;</span> L, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_stornd<span style="color: #000000;">&#40;</span> T, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_stornd<span style="color: #000000;">&#40;</span> R, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_stornd<span style="color: #000000;">&#40;</span> B, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; hb_retni<span style="color: #000000;">&#40;</span> nRet <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//HANDLE EZTAPI DIB_GetFromClipboard(void);</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TW_DIB_GETFROMCLIPBOARD <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>LONG<span style="color: #000000;">&#41;</span> DIB_GetFromClipboard<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">// para no depender de Five, y harbour poder el solito trabajar ;)</span><br />&nbsp;<span style="color: #00C800;">HB_FUNC</span> <span style="color: #000000;">&#40;</span> GETACTIVEWINDOW <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /><br /><span style="color: #B900B9;">/*<br />&nbsp; TWAIN.<br />&nbsp; Bajo estas siglas se esconde la tecnologica de adquisicion de imagen<br />&nbsp; desde cualquier tipo de dispositivo que cumpla dicho standar, como<br />&nbsp; puede ser el dispositivo mas comun, el scanner, a otros como las camaras<br />&nbsp; WebCam.<br /><br />&nbsp; En este capitulo veremos las posibilidades qe tenemos nosotros , vil<br />&nbsp; progrmador de Harbour&Fivewin, de aprovecharnos.<br /><br />&nbsp; He de decir que nosotros usaremos un 'atajo'. Dicho 'atajo' sera hacer<br />&nbsp; uso de un par de DLL que a parte de cumplir nuestro requisito , que es<br />&nbsp; ni mas ni menos que controlar un dispositivo que cumpla la norma TWAIN,<br />&nbsp; nos hara la programacion muchisimo mas sencilla.<br /><br />&nbsp; La primera DLL a usar sera EZTW32.DLL, de la compañia dosadi.<br />&nbsp; Dicha DLL nos brinda la posibilidad de conectar con el standard TWAIN<br />&nbsp; de &nbsp;una forma mucho mas simple.<br />&nbsp; He de decir que es perfectamente posible programar el TWAIN directamente,<br />&nbsp; ahora bien, no creo que el esfuerzo invertido merezca la pena teniendo<br />&nbsp; dicha DLL a nuestro alcance.<br /><br />&nbsp; La segunda es ij11.dll de la casa Intel. Dicha libreria es usada por<br />&nbsp; la dll EZTW32.DLL para guardar la imagen obtenido a un fichero JPEG.<br />&nbsp; Si no tuvieramos dicha ij11.dll, simplemente se guardara en formato BMP.<br /><br />&nbsp; Teniendo en cuenta todo esto, empezaremos a explicar la clase de mi<br />&nbsp; creacion: TSCAN32.<br /><br />&nbsp; El motivo principal a que me ha llevado a crear la interface con el<br />&nbsp; driver TWAIN son dos:<br /><br />&nbsp; &nbsp;1.- La clase TScan de 16 bits que viene con Fivewin, en determinados<br />&nbsp; &nbsp; &nbsp; &nbsp;momentos no funciona como deberia de funcionar.<br /><br />&nbsp; &nbsp;2.- La salida no era posible guardala como formato JPEG.<br /><br />&nbsp; &nbsp;Asi que os podeis imaginar las mejoras de la nueva clase con respecto<br />&nbsp; &nbsp;a la de 16 bits:<br /><br />&nbsp; &nbsp;1.- 32 Bits<br />&nbsp; &nbsp;2.- Interface en lenguaje C.<br />&nbsp; &nbsp;3.- Graba en JPEGS o directamente al portapapeles!!!<br />&nbsp; &nbsp;4.- Realmente funciona!!! ;-)<br /><br />&nbsp; &nbsp;Veamos pues todo el entramado en codigo fuente.<br /><br />&nbsp; &nbsp;Creacion de un objeto TScan y scaneando:<br /><br />&nbsp; &nbsp; &nbsp; oScan := TScan32():New( cFile )<br />&nbsp; &nbsp; &nbsp; oScan:DigiToFile()<br /><br />&nbsp; &nbsp;Y esto es todo lo que tienes que escribir!!<br />&nbsp; &nbsp;Realmente fantastico, no crees ?<br /><br />&nbsp; &nbsp;Ahora bien, como es logico de suponer , quizas nos interese escoger<br />&nbsp; &nbsp;que tipo de salida queremos, dimensiones, etc..., como por ejemplo:<br /><br />&nbsp; &nbsp; &nbsp; oScan:PixelType( TWPT_GRAY &nbsp;) &nbsp;// TWPT_GRAY &nbsp;= 1<br /><br />&nbsp; &nbsp;con esta simple instruccion estamos definiendo que el dispositivo<br />&nbsp; &nbsp;capture en Escala de Grises!<br />&nbsp; &nbsp;Realmente esto no podria ser mas simple!<br /><br />&nbsp; &nbsp;Teneis disponible un ejemplo donde vereis como podemos escanear y<br />&nbsp; &nbsp;visualizar lo que hemos escaneado para que veais que con cuatro lineas<br />&nbsp; &nbsp;de codigo podemos hacer cosas muy potente.<br /><br />&nbsp; &nbsp;Ahora bien, os preguntareis como funciona el chiringuito, pues pasemos<br />&nbsp; &nbsp;a ver como esta construido y el porque.<br /><br />&nbsp; &nbsp;CLASE TSCAN32. Variables de Instancia y metodos.<br /><br />&nbsp; &nbsp;La clase TScan32 te encapsula todo el funcionamiento interno para que<br />&nbsp; &nbsp;a la hora de escribir tu aplicacion , el coste de implementacion sea<br />&nbsp; &nbsp;minimo, y ya lo creo que es minimo!!! 2 Lineas de programacion y<br />&nbsp; &nbsp;tienes tu aplicacion disponible para escanner desde scanners,webcam,etc...<br /><br />&nbsp; &nbsp;Aqui detallare los metodos mas interesantes o mas comunes, aunque en<br />&nbsp; &nbsp;la implementacion en C realice un largo y tedioso trabajo y esta el<br />&nbsp; &nbsp;95% portada para que puedas hacer uso si ese es tu deseo.<br /><br />&nbsp; &nbsp;DATAs:<br />&nbsp; &nbsp; &nbsp; DATA hWnd<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Handle de la ventana padre.<br />&nbsp; &nbsp; &nbsp; DATA cFile<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Nombre del fichero resultante.<br />&nbsp; &nbsp; &nbsp; DATA hDib<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Handle del DIB<br />&nbsp; &nbsp; &nbsp; DATA lError INIT .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Indica si se ha producido un error<br />&nbsp; &nbsp; &nbsp; DATA nState<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Indica en que estado se encuentra el dispositivo TWAIN<br />&nbsp; &nbsp; &nbsp; DATA lBmp &nbsp; INIT .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Indica qe quiero salida BMP si es .T.<br /><br /><br />&nbsp; &nbsp;METHODs:<br /><br />&nbsp; &nbsp; &nbsp; New( cFile, hWnd ) CONSTRUCTOR<br />&nbsp; &nbsp; &nbsp; Inicializa el dispositivo TWAIN.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFile := Nombre del Fichero resultante<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hWnd := Handle de la ventana padre<br /><br />&nbsp; &nbsp; &nbsp; End(), FreeNative , Close<br />&nbsp; &nbsp; &nbsp; Cierra el dispositivo TWAIN y libera hDib.<br /><br />&nbsp; &nbsp; &nbsp; Register()<br />&nbsp; &nbsp; &nbsp; Registra la aplicacion.<br /><br />&nbsp; &nbsp; &nbsp; DigiToFile( cFile )<br />&nbsp; &nbsp; &nbsp; Digitaliza directamente a un fichero.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFile := Fichero resultante opcional.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Por defecto es ::cFile<br /><br />&nbsp; &nbsp; &nbsp; DibToJpeg( cFile ) &nbsp;y DibToBmp( cFile )<br />&nbsp; &nbsp; &nbsp; Guarda el contenido del resultado de la adquisicion, hDib,<br />&nbsp; &nbsp; &nbsp; en un fichero JPEG o BMP<br /><br />&nbsp; &nbsp; &nbsp; SetJpegQ( nQuality)<br />&nbsp; &nbsp; &nbsp; Calidad del JPEG. Por defecto es 75.<br />&nbsp; &nbsp; &nbsp; El baremo es entre 1...100 , siendo 100 maxima calidad.<br /><br />&nbsp; &nbsp; &nbsp; Acquire()<br />&nbsp; &nbsp; &nbsp; Digilitaliza. Devuelve un DIB.<br /><br />&nbsp; &nbsp; &nbsp; AcquireClipBoard()<br />&nbsp; &nbsp; &nbsp; Digilitaliza directamente al portapapeles.<br />&nbsp; &nbsp; &nbsp; Devuelve .T. o .F. dependiendo si hay error o no.<br /><br />&nbsp; &nbsp; &nbsp; OpenDefault()<br />&nbsp; &nbsp; &nbsp; Abre TWAIN el ultimo que fue seleccionado desde Select ..Dialog<br />&nbsp; &nbsp; &nbsp; Si no puede cargarlo solicita seleccionar Source.<br /><br />&nbsp; &nbsp; &nbsp; OpenSource()<br />&nbsp; &nbsp; &nbsp; Comprueba que esta disponible TWAIN y lo carga si no estuviera cargado<br /><br />&nbsp; &nbsp; &nbsp; Choose()<br />&nbsp; &nbsp; &nbsp; Permite seleccionar la fuente desde donde vamos a adquirir.<br /><br /><br />&nbsp; &nbsp; &nbsp; IsAvailable()<br />&nbsp; &nbsp; &nbsp; Devuelve si esta o no disponible TWAIN en el sistema<br /><br />&nbsp; &nbsp; &nbsp; Version()<br />&nbsp; &nbsp; &nbsp; Devuelve Version de la DLL de DosAdi.<br /><br />&nbsp; &nbsp; &nbsp; State()<br />&nbsp; &nbsp; &nbsp; Devuelve el estado del dispositivo.<br /><br /><br />&nbsp; &nbsp; &nbsp; SetHide( lHide )<br />&nbsp; &nbsp; &nbsp; Oculta UI del escanner.<br /><br /><br />&nbsp; &nbsp; &nbsp; Estos metodos solamente pueden ser llamados cuando el dispositvo TWAIN<br />&nbsp; &nbsp; &nbsp; se encuentro en un Estado 4 &nbsp;(TWAIN_SOURCE_OPEN)<br /><br />&nbsp; &nbsp; &nbsp; PixelType( nType )<br />&nbsp; &nbsp; &nbsp; Tipo de scaneo del dispositivo.<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWPT_BW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp;Blanco/Negro<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWPT_GRAY &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp;Escala de Grises<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWPT_RGB &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp;Color Real<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWPT_PALETTE &nbsp; &nbsp; 3 &nbsp;Color Paleta.<br /><br /><br />&nbsp; &nbsp; &nbsp; SetRes( dRes )<br />&nbsp; &nbsp; &nbsp; Prepara resolucion a capturar en el dispositivo.<br /><br />&nbsp; &nbsp; &nbsp; SetXRes( dRes ) &nbsp;y SetYRes( dRes )<br />&nbsp; &nbsp; &nbsp; Prepara resolucion Horizontal y Vertical del dispositivo.<br /><br />&nbsp; &nbsp; &nbsp; SetUnits( nUnits )<br />&nbsp; &nbsp; &nbsp; Sistema de Medida. Atencion, no todos los dispositivos admiten<br />&nbsp; &nbsp; &nbsp; alguna medida de estas, pero todos si que admiten inches.<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWUN_INCHES &nbsp; &nbsp; &nbsp;0<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWUN_CENTIMETERS 1<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWUN_PICAS &nbsp; &nbsp; &nbsp; 2<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWUN_POINTS &nbsp; &nbsp; &nbsp;3<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWUN_TWIPS &nbsp; &nbsp; &nbsp; 4<br />&nbsp; &nbsp; &nbsp; &nbsp; #define TWUN_PIXELS &nbsp; &nbsp; &nbsp;5<br /><br />&nbsp; &nbsp; &nbsp; SetContrats( dContrats)<br />&nbsp; &nbsp; &nbsp; Contraste del dispositivo.<br /><br />&nbsp; &nbsp; &nbsp; SetBright( dBright )<br />&nbsp; &nbsp; &nbsp; Brillo del dispositivo.<br /><br />&nbsp; &nbsp; &nbsp; SetPaper( nPaper )<br />&nbsp; &nbsp; &nbsp; Seleccionar tipo de papel , tamaño, del dispositivo,<br />&nbsp; &nbsp; &nbsp; Por poner unos pocos, si quieres mas tipo mirate &nbsp;TWSS_* en TWAIN.H<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_A4LETTER &nbsp; &nbsp;1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_B5LETTER &nbsp; &nbsp;2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_USLETTER &nbsp; &nbsp;3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_USLEGAL &nbsp; &nbsp; 4<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_A5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_B4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_B6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_USLEDGER &nbsp; &nbsp;9<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_USEXECUTIVE 10<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_A3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;11<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_B3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;12<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_A6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;13<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_C4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;14<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_C5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;15<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#define PAPER_C6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;16<br /><br />&nbsp; &nbsp; &nbsp; GetResolution()<br />&nbsp; &nbsp; &nbsp; Devuelve que resolucion actualmente tiene el dispositivo.<br /><br /><br />&nbsp; &nbsp; &nbsp; Con estos metodos que acontinuacion veremos , podemos seleccionar<br />&nbsp; &nbsp; &nbsp; una porcion de la region a adquirir.<br /><br />&nbsp; &nbsp; &nbsp; RegionSet( nLeft,nTop, nRigth, nBottom )<br />&nbsp; &nbsp; &nbsp; Selecciona una region para adquirir.<br /><br />&nbsp; &nbsp; &nbsp; METHOD RegionReset()<br />&nbsp; &nbsp; &nbsp; Restaura a la region que habia por defecto, toda la superficie.<br /><br />&nbsp; &nbsp; &nbsp; RegionGet( L,T,R,B )<br />&nbsp; &nbsp; &nbsp; Devuelve en las variables la porciones de la region actualmente definidas.<br />&nbsp; &nbsp; &nbsp; El uso es muy simple:<br /><br />&nbsp; &nbsp; &nbsp; Local L,T,R,B &nbsp;// Left,Top,Rigth y Bottom, logicamente ;)<br />&nbsp; &nbsp; &nbsp; oScan := oScan:New()<br />&nbsp; &nbsp; &nbsp; oScan:RegionGet(@L,@T,@R,@B), obteniendo el resultado en las misma variables<br />&nbsp; &nbsp; &nbsp; pasadas por referencia.<br /><br />&nbsp; &nbsp; &nbsp; RegionGetDefault( L,T,R,B )<br />&nbsp; &nbsp; &nbsp; Devuelve los valores de la region por defecto. El mismo ejemplo del method<br />&nbsp; &nbsp; &nbsp; RegionGet es aplicable a este.<br /><br /><br />&nbsp; &nbsp; &nbsp; Y para finalizar , un par de metodos muy utiles:<br /><br />&nbsp; &nbsp; &nbsp; ClipBoardToFile( cFile )<br />&nbsp; &nbsp; &nbsp; Guarda el contenido del portapapeles en un fichero.<br /><br />&nbsp; &nbsp; &nbsp; DIB_GetFromClipboard()<br />&nbsp; &nbsp; &nbsp; Coge el contenido del portapapeles ,DIB., y lo asigna a hDib.<br /><br />&nbsp; &nbsp; &nbsp; Como podeis observar , esto es mas que suficiente para dotar a nuestras<br />&nbsp; &nbsp; &nbsp; aplicaciones Fivewin&Harbour de capacidades de TWAIN.<br /><br />&nbsp; &nbsp; &nbsp; Otro aspecto a tener em cuenta son las funciones en C, pero que se<br />&nbsp; &nbsp; &nbsp; escapan a la teoria de este libro.<br /><br />&nbsp; &nbsp; &nbsp; Quien realemente esta mas interesado en saber sobre TWAIN, vaya a<br />&nbsp; &nbsp; &nbsp; internet y realice una busqueda.<br />&nbsp; &nbsp; &nbsp; Creo que para nosotros , programadores de Fivewin, esto es mucho<br />&nbsp; &nbsp; &nbsp; mas que suficiente y ya les gustaria a mas de uno de otros lenguajes<br />&nbsp; &nbsp; &nbsp; de programacion tener esto a su alcance tan facil como aqui he explicado.<br /><br />&nbsp; &nbsp; &nbsp; Los wrappers en C los teneis disponibles junto en el fichero de la clase<br />&nbsp; &nbsp; &nbsp; TSCAN32 para los que quieran ver el interior o modificarlo a su gusto.<br /><br />&nbsp; &nbsp; &nbsp; Teneis portadas 90 funciones desde C para que hagais uso desde harbour.<br /><br />&nbsp; &nbsp; &nbsp; Como comentario final, he de decir que a sido probado y con exito en<br />&nbsp; &nbsp; &nbsp; scanners paralelos, usb y SCSI, asi como camaras WebCam.<br /><br /><br />&nbsp; &nbsp;*/</span><br /><br /><br /><br /><br /><br /><br /><br /><br />*/<br />&nbsp;</div>[/code:2xeu0cmf]
Compilando TSCAN MVC2010
Nicanor, Es un error típico al haber compilado una parte en C++ y la otra en C (por ejemplo, que la librería de importación use símbolos para C y no C++). Prueba a todo el código en C meterlo dentro de esta sentencia: extern "C" { ... funciones ... };
Compilando TSCAN MVC2010
Antonio, Meti todas las instrucciones dentro de la sentencia al compilar me sale este mensaje: cl /c -W3 -GA /D_CRT_SECURE_NO_WARNINGS /D__HARBOUR__ /D__FLAT__ "obj\TSCAN.c" /Foobj\TSCAN.obj TSCAN.c TSCAN.prg(293) : error C2059: error de sintaxis : 'cadena' Slds
Compilando TSCAN MVC2010
El error deja de salir cuando agrego el parametro /TP para forzar la compilacion C++ pero igual salen los simbolos sin resolver Slds
Compilando TSCAN MVC2010
Nicanor, Copia aqui el contenido de twain.def
Compilando TSCAN MVC2010
Antonio, twain1.def generado asi: impdef twain1.def eztw32.dll [code=fw:o2fcwtb0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">LIBRARY</span> &nbsp; &nbsp; EZTW32.DLL<br /><br />EXPORTS<br />&nbsp; &nbsp; CONTAINER_Array &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">317</span> ; CONTAINER_Array<br />&nbsp; &nbsp; CONTAINER_ContainsValue &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">308</span> ; CONTAINER_ContainsValue<br />&nbsp; &nbsp; CONTAINER_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">302</span> ; CONTAINER_Copy<br />&nbsp; &nbsp; CONTAINER_CurrentIndex &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">324</span> ; CONTAINER_CurrentIndex<br />&nbsp; &nbsp; CONTAINER_CurrentValue &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">310</span> ; CONTAINER_CurrentValue<br />&nbsp; &nbsp; CONTAINER_DefaultIndex &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">323</span> ; CONTAINER_DefaultIndex<br />&nbsp; &nbsp; CONTAINER_DefaultValue &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">311</span> ; CONTAINER_DefaultValue<br />&nbsp; &nbsp; CONTAINER_DeleteItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">321</span> ; CONTAINER_DeleteItem<br />&nbsp; &nbsp; CONTAINER_Enumeration &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">318</span> ; CONTAINER_Enumeration<br />&nbsp; &nbsp; CONTAINER_FindValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">309</span> ; CONTAINER_FindValue<br />&nbsp; &nbsp; CONTAINER_FloatValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">306</span> ; CONTAINER_FloatValue<br />&nbsp; &nbsp; CONTAINER_Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">303</span> ; CONTAINER_Format<br />&nbsp; &nbsp; CONTAINER_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">301</span> ; CONTAINER_Free<br />&nbsp; &nbsp; CONTAINER_InsertItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">322</span> ; CONTAINER_InsertItem<br />&nbsp; &nbsp; CONTAINER_IntValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">307</span> ; CONTAINER_IntValue<br />&nbsp; &nbsp; CONTAINER_ItemCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">305</span> ; CONTAINER_ItemCount<br />&nbsp; &nbsp; CONTAINER_ItemType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">304</span> ; CONTAINER_ItemType<br />&nbsp; &nbsp; CONTAINER_MaxValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">313</span> ; CONTAINER_MaxValue<br />&nbsp; &nbsp; CONTAINER_MinValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">312</span> ; CONTAINER_MinValue<br />&nbsp; &nbsp; CONTAINER_OneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">315</span> ; CONTAINER_OneValue<br />&nbsp; &nbsp; CONTAINER_Range &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">316</span> ; CONTAINER_Range<br />&nbsp; &nbsp; CONTAINER_SelectCurrentItem &nbsp; &nbsp;@<span style="color: #000000;">320</span> ; CONTAINER_SelectCurrentItem<br />&nbsp; &nbsp; CONTAINER_SelectCurrentValue &nbsp; @<span style="color: #000000;">328</span> ; CONTAINER_SelectCurrentValue<br />&nbsp; &nbsp; CONTAINER_SelectDefaultItem &nbsp; &nbsp;@<span style="color: #000000;">327</span> ; CONTAINER_SelectDefaultItem<br />&nbsp; &nbsp; CONTAINER_SelectDefaultValue &nbsp; @<span style="color: #000000;">326</span> ; CONTAINER_SelectDefaultValue<br />&nbsp; &nbsp; CONTAINER_SetItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">319</span> ; CONTAINER_SetItem<br />&nbsp; &nbsp; CONTAINER_SetItemFrame &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">330</span> ; CONTAINER_SetItemFrame<br />&nbsp; &nbsp; CONTAINER_SetItemString &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">329</span> ; CONTAINER_SetItemString<br />&nbsp; &nbsp; CONTAINER_StepSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">314</span> ; CONTAINER_StepSize<br />&nbsp; &nbsp; CONTAINER_ValuePtr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">325</span> ; CONTAINER_ValuePtr<br />&nbsp; &nbsp; DIB_Allocate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">201</span> ; DIB_Allocate<br />&nbsp; &nbsp; DIB_ColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">216</span> ; DIB_ColorCount<br />&nbsp; &nbsp; DIB_ColorTableB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">231</span> ; DIB_ColorTableB<br />&nbsp; &nbsp; DIB_ColorTableG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">230</span> ; DIB_ColorTableG<br />&nbsp; &nbsp; DIB_ColorTableR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">229</span> ; DIB_ColorTableR<br />&nbsp; &nbsp; DIB_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">228</span> ; DIB_Copy<br />&nbsp; &nbsp; DIB_CreatePalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">214</span> ; DIB_CreatePalette<br />&nbsp; &nbsp; DIB_Depth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">205</span> ; DIB_Depth<br />&nbsp; &nbsp; DIB_DrawToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">212</span> ; DIB_DrawToDC<br />&nbsp; &nbsp; DIB_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">215</span> ; DIB_Free<br />&nbsp; &nbsp; DIB_GetFromClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">227</span> ; DIB_GetFromClipboard<br />&nbsp; &nbsp; DIB_Height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">207</span> ; DIB_Height<br />&nbsp; &nbsp; DIB_LoadFromFilename &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">221</span> ; DIB_LoadFromFilename<br />&nbsp; &nbsp; DIB_Lock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">209</span> ; DIB_Lock<br />&nbsp; &nbsp; DIB_PutOnClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">224</span> ; DIB_PutOnClipboard<br />&nbsp; &nbsp; DIB_ReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">213</span> ; DIB_ReadRow<br />&nbsp; &nbsp; DIB_ReadRowRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">232</span> ; DIB_ReadRowRGB<br />&nbsp; &nbsp; DIB_RowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">208</span> ; DIB_RowBytes<br />&nbsp; &nbsp; DIB_SetColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">223</span> ; DIB_SetColorCount<br />&nbsp; &nbsp; DIB_SetColorTableRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">218</span> ; DIB_SetColorTableRGB<br />&nbsp; &nbsp; DIB_SetGrayColorTable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">217</span> ; DIB_SetGrayColorTable<br />&nbsp; &nbsp; DIB_SetResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">202</span> ; DIB_SetResolution<br />&nbsp; &nbsp; DIB_SwapRedBlue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">222</span> ; DIB_SwapRedBlue<br />&nbsp; &nbsp; DIB_Unlock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">210</span> ; DIB_Unlock<br />&nbsp; &nbsp; DIB_Width &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">206</span> ; DIB_Width<br />&nbsp; &nbsp; DIB_WriteRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">211</span> ; DIB_WriteRow<br />&nbsp; &nbsp; DIB_WriteRowChannel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">226</span> ; DIB_WriteRowChannel<br />&nbsp; &nbsp; DIB_WriteToBmp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">219</span> ; DIB_WriteToBmp<br />&nbsp; &nbsp; DIB_WriteToBmpFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">225</span> ; DIB_WriteToBmpFile<br />&nbsp; &nbsp; DIB_WriteToJpeg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">220</span> ; DIB_WriteToJpeg<br />&nbsp; &nbsp; DIB_XResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">203</span> ; DIB_XResolution<br />&nbsp; &nbsp; DIB_YResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">204</span> ; DIB_YResolution<br />&nbsp; &nbsp; DllMain &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">27</span> &nbsp;; DllMain<br />&nbsp; &nbsp; TWAIN_AbortAllPendingXfers &nbsp; &nbsp; @<span style="color: #000000;">1</span> &nbsp; ; TWAIN_AbortAllPendingXfers<br />&nbsp; &nbsp; TWAIN_Acquire &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">101</span> ; TWAIN_Acquire<br />&nbsp; &nbsp; TWAIN_AcquireFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">142</span> ; TWAIN_AcquireFile<br />&nbsp; &nbsp; TWAIN_AcquireMemory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">89</span> &nbsp;; TWAIN_AcquireMemory<br />&nbsp; &nbsp; TWAIN_AcquireMemoryCallback &nbsp; &nbsp;@<span style="color: #000000;">143</span> ; TWAIN_AcquireMemoryCallback<br />&nbsp; &nbsp; TWAIN_AcquireNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">2</span> &nbsp; ; TWAIN_AcquireNative<br />&nbsp; &nbsp; TWAIN_AcquireToClipboard &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">3</span> &nbsp; ; TWAIN_AcquireToClipboard<br />&nbsp; &nbsp; TWAIN_AcquireToFilename &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">4</span> &nbsp; ; TWAIN_AcquireToFilename<br />&nbsp; &nbsp; TWAIN_BreakModalLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">59</span> &nbsp;; TWAIN_BreakModalLoop<br />&nbsp; &nbsp; TWAIN_BuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">73</span> &nbsp;; TWAIN_BuildName<br />&nbsp; &nbsp; TWAIN_ClearError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">55</span> &nbsp;; TWAIN_ClearError<br />&nbsp; &nbsp; TWAIN_CloseSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">5</span> &nbsp; ; TWAIN_CloseSource<br />&nbsp; &nbsp; TWAIN_CloseSourceManager &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">6</span> &nbsp; ; TWAIN_CloseSourceManager<br />&nbsp; &nbsp; TWAIN_Compression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">104</span> ; TWAIN_Compression<br />&nbsp; &nbsp; TWAIN_CreateDibPalette &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">7</span> &nbsp; ; TWAIN_CreateDibPalette<br />&nbsp; &nbsp; TWAIN_DS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">8</span> &nbsp; ; TWAIN_DS<br />&nbsp; &nbsp; TWAIN_DibDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">9</span> &nbsp; ; TWAIN_DibDepth<br />&nbsp; &nbsp; TWAIN_DibHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">10</span> &nbsp;; TWAIN_DibHeight<br />&nbsp; &nbsp; TWAIN_DibNumColors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">11</span> &nbsp;; TWAIN_DibNumColors<br />&nbsp; &nbsp; TWAIN_DibReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">71</span> &nbsp;; TWAIN_DibReadRow<br />&nbsp; &nbsp; TWAIN_DibRowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">70</span> &nbsp;; TWAIN_DibRowBytes<br />&nbsp; &nbsp; TWAIN_DibWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">12</span> &nbsp;; TWAIN_DibWidth<br />&nbsp; &nbsp; TWAIN_DisableParent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">144</span> ; TWAIN_DisableParent<br />&nbsp; &nbsp; TWAIN_DisableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">13</span> &nbsp;; TWAIN_DisableSource<br />&nbsp; &nbsp; TWAIN_DrawDibToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">14</span> &nbsp;; TWAIN_DrawDibToDC<br />&nbsp; &nbsp; TWAIN_EasyVersion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">15</span> &nbsp;; TWAIN_EasyVersion<br />&nbsp; &nbsp; TWAIN_EnableDuplex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">126</span> ; TWAIN_EnableDuplex<br />&nbsp; &nbsp; TWAIN_EnableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">16</span> &nbsp;; TWAIN_EnableSource<br />&nbsp; &nbsp; TWAIN_EndXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">53</span> &nbsp;; TWAIN_EndXfer<br />&nbsp; &nbsp; TWAIN_ErrorBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">51</span> &nbsp;; TWAIN_ErrorBox<br />&nbsp; &nbsp; TWAIN_Fix32ToFloat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">63</span> &nbsp;; TWAIN_Fix32ToFloat<br />&nbsp; &nbsp; TWAIN_FreeNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">17</span> &nbsp;; TWAIN_FreeNative<br />&nbsp; &nbsp; TWAIN_Get &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">78</span> &nbsp;; TWAIN_Get<br />&nbsp; &nbsp; TWAIN_GetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">18</span> &nbsp;; TWAIN_GetBitDepth<br />&nbsp; &nbsp; TWAIN_GetBuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">88</span> &nbsp;; TWAIN_GetBuildName<br />&nbsp; &nbsp; TWAIN_GetCapBool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">72</span> &nbsp;; TWAIN_GetCapBool<br />&nbsp; &nbsp; TWAIN_GetCapCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">19</span> &nbsp;; TWAIN_GetCapCurrent<br />&nbsp; &nbsp; TWAIN_GetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">76</span> &nbsp;; TWAIN_GetCapFix32<br />&nbsp; &nbsp; TWAIN_GetCapUint16 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">77</span> &nbsp;; TWAIN_GetCapUint16<br />&nbsp; &nbsp; TWAIN_GetConditionCode &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">20</span> &nbsp;; TWAIN_GetConditionCode<br />&nbsp; &nbsp; TWAIN_GetCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">80</span> &nbsp;; TWAIN_GetCurrent<br />&nbsp; &nbsp; TWAIN_GetCurrentResolution &nbsp; &nbsp; @<span style="color: #000000;">21</span> &nbsp;; TWAIN_GetCurrentResolution<br />&nbsp; &nbsp; TWAIN_GetCurrentThreshold &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">75</span> &nbsp;; TWAIN_GetCurrentThreshold<br />&nbsp; &nbsp; TWAIN_GetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">22</span> &nbsp;; TWAIN_GetCurrentUnits<br />&nbsp; &nbsp; TWAIN_GetDefault &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">79</span> &nbsp;; TWAIN_GetDefault<br />&nbsp; &nbsp; TWAIN_GetDefaultImageLayout &nbsp; &nbsp;@<span style="color: #000000;">149</span> ; TWAIN_GetDefaultImageLayout<br />&nbsp; &nbsp; TWAIN_GetDefaultSourceName &nbsp; &nbsp; @<span style="color: #000000;">140</span> ; TWAIN_GetDefaultSourceName<br />&nbsp; &nbsp; TWAIN_GetDisableParent &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">145</span> ; TWAIN_GetDisableParent<br />&nbsp; &nbsp; TWAIN_GetDuplexSupport &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">125</span> ; TWAIN_GetDuplexSupport<br />&nbsp; &nbsp; TWAIN_GetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">23</span> &nbsp;; TWAIN_GetHideUI<br />&nbsp; &nbsp; TWAIN_GetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">148</span> ; TWAIN_GetImageLayout<br />&nbsp; &nbsp; TWAIN_GetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">133</span> ; TWAIN_GetJpegQuality<br />&nbsp; &nbsp; TWAIN_GetMultiTransfer &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">69</span> &nbsp;; TWAIN_GetMultiTransfer<br />&nbsp; &nbsp; TWAIN_GetNextSourceName &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">139</span> ; TWAIN_GetNextSourceName<br />&nbsp; &nbsp; TWAIN_GetPixelType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">24</span> &nbsp;; TWAIN_GetPixelType<br />&nbsp; &nbsp; TWAIN_GetResultCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">25</span> &nbsp;; TWAIN_GetResultCode<br />&nbsp; &nbsp; TWAIN_GetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">131</span> ; TWAIN_GetSaveFormat<br />&nbsp; &nbsp; TWAIN_GetSourceList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">138</span> ; TWAIN_GetSourceList<br />&nbsp; &nbsp; TWAIN_GetSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">135</span> ; TWAIN_GetSourceName<br />&nbsp; &nbsp; TWAIN_GetYResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">64</span> &nbsp;; TWAIN_GetYResolution<br />&nbsp; &nbsp; TWAIN_HasControllableUI &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">121</span> ; TWAIN_HasControllableUI<br />&nbsp; &nbsp; TWAIN_HasFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">115</span> ; TWAIN_HasFeeder<br />&nbsp; &nbsp; TWAIN_IsAutoFeedOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">118</span> ; TWAIN_IsAutoFeedOn<br />&nbsp; &nbsp; TWAIN_IsAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">26</span> &nbsp;; TWAIN_IsAvailable<br />&nbsp; &nbsp; TWAIN_IsDuplexEnabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">127</span> ; TWAIN_IsDuplexEnabled<br />&nbsp; &nbsp; TWAIN_IsFeederLoaded &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">122</span> ; TWAIN_IsFeederLoaded<br />&nbsp; &nbsp; TWAIN_IsFeederSelected &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">116</span> ; TWAIN_IsFeederSelected<br />&nbsp; &nbsp; TWAIN_IsJpegAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">134</span> ; TWAIN_IsJpegAvailable<br />&nbsp; &nbsp; TWAIN_IsTransferReady &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">146</span> ; TWAIN_IsTransferReady<br />&nbsp; &nbsp; TWAIN_LastErrorCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">56</span> &nbsp;; TWAIN_LastErrorCode<br />&nbsp; &nbsp; TWAIN_LoadNativeFromFilename &nbsp; @<span style="color: #000000;">28</span> &nbsp;; TWAIN_LoadNativeFromFilename<br />&nbsp; &nbsp; TWAIN_LoadSourceManager &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">29</span> &nbsp;; TWAIN_LoadSourceManager<br />&nbsp; &nbsp; TWAIN_LogFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">151</span> ; TWAIN_LogFile<br />&nbsp; &nbsp; TWAIN_MessageHook &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">30</span> &nbsp;; TWAIN_MessageHook<br />&nbsp; &nbsp; TWAIN_Mgr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">31</span> &nbsp;; TWAIN_Mgr<br />&nbsp; &nbsp; TWAIN_ModalEventLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">32</span> &nbsp;; TWAIN_ModalEventLoop<br />&nbsp; &nbsp; TWAIN_NegotiatePixelTypes &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">33</span> &nbsp;; TWAIN_NegotiatePixelTypes<br />&nbsp; &nbsp; TWAIN_NegotiateXferCount &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">34</span> &nbsp;; TWAIN_NegotiateXferCount<br />&nbsp; &nbsp; TWAIN_OpenDefaultSource &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">35</span> &nbsp;; TWAIN_OpenDefaultSource<br />&nbsp; &nbsp; TWAIN_OpenSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">137</span> ; TWAIN_OpenSource<br />&nbsp; &nbsp; TWAIN_OpenSourceManager &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">36</span> &nbsp;; TWAIN_OpenSourceManager<br />&nbsp; &nbsp; TWAIN_PixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">110</span> ; TWAIN_PixelFlavor<br />&nbsp; &nbsp; TWAIN_PlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">108</span> ; TWAIN_PlanarChunky<br />&nbsp; &nbsp; TWAIN_RegisterApp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">37</span> &nbsp;; TWAIN_RegisterApp<br />&nbsp; &nbsp; TWAIN_ReportLastError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">50</span> &nbsp;; TWAIN_ReportLastError<br />&nbsp; &nbsp; TWAIN_Reset &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">82</span> &nbsp;; TWAIN_Reset<br />&nbsp; &nbsp; TWAIN_ResetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">150</span> ; TWAIN_ResetImageLayout<br />&nbsp; &nbsp; TWAIN_SelectFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">117</span> ; TWAIN_SelectFeeder<br />&nbsp; &nbsp; TWAIN_SelectImageSource &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">38</span> &nbsp;; TWAIN_SelectImageSource<br />&nbsp; &nbsp; TWAIN_SelfTest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">147</span> ; TWAIN_SelfTest<br />&nbsp; &nbsp; TWAIN_Set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">81</span> &nbsp;; TWAIN_Set<br />&nbsp; &nbsp; TWAIN_SetAppTitle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">152</span> ; TWAIN_SetAppTitle<br />&nbsp; &nbsp; TWAIN_SetAutoBright &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">83</span> &nbsp;; TWAIN_SetAutoBright<br />&nbsp; &nbsp; TWAIN_SetAutoFeed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">119</span> ; TWAIN_SetAutoFeed<br />&nbsp; &nbsp; TWAIN_SetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">39</span> &nbsp;; TWAIN_SetBitDepth<br />&nbsp; &nbsp; TWAIN_SetBrightness &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">61</span> &nbsp;; TWAIN_SetBrightness<br />&nbsp; &nbsp; TWAIN_SetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">87</span> &nbsp;; TWAIN_SetCapFix32<br />&nbsp; &nbsp; TWAIN_SetCapFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">128</span> ; TWAIN_SetCapFix32R<br />&nbsp; &nbsp; TWAIN_SetCapOneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">40</span> &nbsp;; TWAIN_SetCapOneValue<br />&nbsp; &nbsp; TWAIN_SetCompression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">105</span> ; TWAIN_SetCompression<br />&nbsp; &nbsp; TWAIN_SetContrast &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">60</span> &nbsp;; TWAIN_SetContrast<br />&nbsp; &nbsp; TWAIN_SetCurrentPixelType &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">41</span> &nbsp;; TWAIN_SetCurrentPixelType<br />&nbsp; &nbsp; TWAIN_SetCurrentResolution &nbsp; &nbsp; @<span style="color: #000000;">42</span> &nbsp;; TWAIN_SetCurrentResolution<br />&nbsp; &nbsp; TWAIN_SetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">43</span> &nbsp;; TWAIN_SetCurrentUnits<br />&nbsp; &nbsp; TWAIN_SetGamma &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">102</span> ; TWAIN_SetGamma<br />&nbsp; &nbsp; TWAIN_SetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">44</span> &nbsp;; TWAIN_SetHideUI<br />&nbsp; &nbsp; TWAIN_SetHighlight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">86</span> &nbsp;; TWAIN_SetHighlight<br />&nbsp; &nbsp; TWAIN_SetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">113</span> ; TWAIN_SetImageLayout<br />&nbsp; &nbsp; TWAIN_SetIndicators &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">120</span> ; TWAIN_SetIndicators<br />&nbsp; &nbsp; TWAIN_SetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">132</span> ; TWAIN_SetJpegQuality<br />&nbsp; &nbsp; TWAIN_SetLightPath &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">103</span> ; TWAIN_SetLightPath<br />&nbsp; &nbsp; TWAIN_SetMultiTransfer &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">68</span> &nbsp;; TWAIN_SetMultiTransfer<br />&nbsp; &nbsp; TWAIN_SetPaperSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">84</span> &nbsp;; TWAIN_SetPaperSize<br />&nbsp; &nbsp; TWAIN_SetPixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">111</span> ; TWAIN_SetPixelFlavor<br />&nbsp; &nbsp; TWAIN_SetPlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">109</span> ; TWAIN_SetPlanarChunky<br />&nbsp; &nbsp; TWAIN_SetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">130</span> ; TWAIN_SetSaveFormat<br />&nbsp; &nbsp; TWAIN_SetShadow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">85</span> &nbsp;; TWAIN_SetShadow<br />&nbsp; &nbsp; TWAIN_SetThreshold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">74</span> &nbsp;; TWAIN_SetThreshold<br />&nbsp; &nbsp; TWAIN_SetTiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">107</span> ; TWAIN_SetTiled<br />&nbsp; &nbsp; TWAIN_SetXResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">123</span> ; TWAIN_SetXResolution<br />&nbsp; &nbsp; TWAIN_SetXferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">66</span> &nbsp;; TWAIN_SetXferMech<br />&nbsp; &nbsp; TWAIN_SetYResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">124</span> ; TWAIN_SetYResolution<br />&nbsp; &nbsp; TWAIN_SourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">136</span> ; TWAIN_SourceName<br />&nbsp; &nbsp; TWAIN_State &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">45</span> &nbsp;; TWAIN_State<br />&nbsp; &nbsp; TWAIN_SupportsFileXfer &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">141</span> ; TWAIN_SupportsFileXfer<br />&nbsp; &nbsp; TWAIN_SuppressErrorMessages &nbsp; &nbsp;@<span style="color: #000000;">52</span> &nbsp;; TWAIN_SuppressErrorMessages<br />&nbsp; &nbsp; TWAIN_Testing123 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">67</span> &nbsp;; TWAIN_Testing123<br />&nbsp; &nbsp; TWAIN_Tiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">106</span> ; TWAIN_Tiled<br />&nbsp; &nbsp; TWAIN_ToFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">62</span> &nbsp;; TWAIN_ToFix32<br />&nbsp; &nbsp; TWAIN_ToFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">129</span> ; TWAIN_ToFix32R<br />&nbsp; &nbsp; TWAIN_UnloadSourceManager &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">46</span> &nbsp;; TWAIN_UnloadSourceManager<br />&nbsp; &nbsp; TWAIN_UserClosedSource &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">57</span> &nbsp;; TWAIN_UserClosedSource<br />&nbsp; &nbsp; TWAIN_WaitForNativeXfer &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">54</span> &nbsp;; TWAIN_WaitForNativeXfer<br />&nbsp; &nbsp; TWAIN_WriteNativeToFilename &nbsp; &nbsp;@<span style="color: #000000;">49</span> &nbsp;; TWAIN_WriteNativeToFilename<br />&nbsp; &nbsp; TWAIN_XferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">65</span> &nbsp;; TWAIN_XferMech<br /><br />&nbsp;</div>[/code:o2fcwtb0]
Compilando TSCAN MVC2010
Generado con impdef -a twain2.def eztwain.dll [code=fw:185icw57]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">LIBRARY</span> &nbsp; &nbsp; EZTW32.DLL<br /><br />EXPORTS<br />&nbsp; &nbsp; _CONTAINER_Array &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_Array &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_Array<br />&nbsp; &nbsp; _CONTAINER_ContainsValue &nbsp; &nbsp; &nbsp;= CONTAINER_ContainsValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_ContainsValue<br />&nbsp; &nbsp; _CONTAINER_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_Copy<br />&nbsp; &nbsp; _CONTAINER_CurrentIndex &nbsp; &nbsp; &nbsp; = CONTAINER_CurrentIndex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_CurrentIndex<br />&nbsp; &nbsp; _CONTAINER_CurrentValue &nbsp; &nbsp; &nbsp; = CONTAINER_CurrentValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_CurrentValue<br />&nbsp; &nbsp; _CONTAINER_DefaultIndex &nbsp; &nbsp; &nbsp; = CONTAINER_DefaultIndex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_DefaultIndex<br />&nbsp; &nbsp; _CONTAINER_DefaultValue &nbsp; &nbsp; &nbsp; = CONTAINER_DefaultValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_DefaultValue<br />&nbsp; &nbsp; _CONTAINER_DeleteItem &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_DeleteItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_DeleteItem<br />&nbsp; &nbsp; _CONTAINER_Enumeration &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_Enumeration &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_Enumeration<br />&nbsp; &nbsp; _CONTAINER_FindValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_FindValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_FindValue<br />&nbsp; &nbsp; _CONTAINER_FloatValue &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_FloatValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_FloatValue<br />&nbsp; &nbsp; _CONTAINER_Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_Format<br />&nbsp; &nbsp; _CONTAINER_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_Free<br />&nbsp; &nbsp; _CONTAINER_InsertItem &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_InsertItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_InsertItem<br />&nbsp; &nbsp; _CONTAINER_IntValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_IntValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_IntValue<br />&nbsp; &nbsp; _CONTAINER_ItemCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_ItemCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_ItemCount<br />&nbsp; &nbsp; _CONTAINER_ItemType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_ItemType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_ItemType<br />&nbsp; &nbsp; _CONTAINER_MaxValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_MaxValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_MaxValue<br />&nbsp; &nbsp; _CONTAINER_MinValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_MinValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_MinValue<br />&nbsp; &nbsp; _CONTAINER_OneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_OneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_OneValue<br />&nbsp; &nbsp; _CONTAINER_Range &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_Range &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_Range<br />&nbsp; &nbsp; _CONTAINER_SelectCurrentItem &nbsp;= CONTAINER_SelectCurrentItem &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_SelectCurrentItem<br />&nbsp; &nbsp; _CONTAINER_SelectCurrentValue = CONTAINER_SelectCurrentValue &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_SelectCurrentValue<br />&nbsp; &nbsp; _CONTAINER_SelectDefaultItem &nbsp;= CONTAINER_SelectDefaultItem &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_SelectDefaultItem<br />&nbsp; &nbsp; _CONTAINER_SelectDefaultValue = CONTAINER_SelectDefaultValue &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_SelectDefaultValue<br />&nbsp; &nbsp; _CONTAINER_SetItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_SetItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_SetItem<br />&nbsp; &nbsp; _CONTAINER_SetItemFrame &nbsp; &nbsp; &nbsp; = CONTAINER_SetItemFrame &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_SetItemFrame<br />&nbsp; &nbsp; _CONTAINER_SetItemString &nbsp; &nbsp; &nbsp;= CONTAINER_SetItemString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_SetItemString<br />&nbsp; &nbsp; _CONTAINER_StepSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_StepSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_StepSize<br />&nbsp; &nbsp; _CONTAINER_ValuePtr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_ValuePtr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_ValuePtr<br />&nbsp; &nbsp; _DIB_Allocate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Allocate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Allocate<br />&nbsp; &nbsp; _DIB_ColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_ColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_ColorCount<br />&nbsp; &nbsp; _DIB_ColorTableB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_ColorTableB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_ColorTableB<br />&nbsp; &nbsp; _DIB_ColorTableG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_ColorTableG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_ColorTableG<br />&nbsp; &nbsp; _DIB_ColorTableR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_ColorTableR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_ColorTableR<br />&nbsp; &nbsp; _DIB_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Copy<br />&nbsp; &nbsp; _DIB_CreatePalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_CreatePalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_CreatePalette<br />&nbsp; &nbsp; _DIB_Depth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_Depth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_Depth<br />&nbsp; &nbsp; _DIB_DrawToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_DrawToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_DrawToDC<br />&nbsp; &nbsp; _DIB_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Free<br />&nbsp; &nbsp; _DIB_GetFromClipboard &nbsp; &nbsp; &nbsp; &nbsp; = DIB_GetFromClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_GetFromClipboard<br />&nbsp; &nbsp; _DIB_Height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Height<br />&nbsp; &nbsp; _DIB_LoadFromFilename &nbsp; &nbsp; &nbsp; &nbsp; = DIB_LoadFromFilename &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_LoadFromFilename<br />&nbsp; &nbsp; _DIB_Lock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Lock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Lock<br />&nbsp; &nbsp; _DIB_PutOnClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_PutOnClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_PutOnClipboard<br />&nbsp; &nbsp; _DIB_ReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_ReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_ReadRow<br />&nbsp; &nbsp; _DIB_ReadRowRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_ReadRowRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_ReadRowRGB<br />&nbsp; &nbsp; _DIB_RowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_RowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_RowBytes<br />&nbsp; &nbsp; _DIB_SetColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_SetColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_SetColorCount<br />&nbsp; &nbsp; _DIB_SetColorTableRGB &nbsp; &nbsp; &nbsp; &nbsp; = DIB_SetColorTableRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_SetColorTableRGB<br />&nbsp; &nbsp; _DIB_SetGrayColorTable &nbsp; &nbsp; &nbsp; &nbsp;= DIB_SetGrayColorTable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_SetGrayColorTable<br />&nbsp; &nbsp; _DIB_SetResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_SetResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_SetResolution<br />&nbsp; &nbsp; _DIB_SwapRedBlue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_SwapRedBlue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_SwapRedBlue<br />&nbsp; &nbsp; _DIB_Unlock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Unlock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Unlock<br />&nbsp; &nbsp; _DIB_Width &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_Width &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_Width<br />&nbsp; &nbsp; _DIB_WriteRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_WriteRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_WriteRow<br />&nbsp; &nbsp; _DIB_WriteRowChannel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_WriteRowChannel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_WriteRowChannel<br />&nbsp; &nbsp; _DIB_WriteToBmp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_WriteToBmp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_WriteToBmp<br />&nbsp; &nbsp; _DIB_WriteToBmpFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_WriteToBmpFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_WriteToBmpFile<br />&nbsp; &nbsp; _DIB_WriteToJpeg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_WriteToJpeg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_WriteToJpeg<br />&nbsp; &nbsp; _DIB_XResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_XResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_XResolution<br />&nbsp; &nbsp; _DIB_YResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_YResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_YResolution<br />&nbsp; &nbsp; _DllMain &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DllMain &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DllMain<br />&nbsp; &nbsp; _TWAIN_AbortAllPendingXfers &nbsp; = TWAIN_AbortAllPendingXfers &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_AbortAllPendingXfers<br />&nbsp; &nbsp; _TWAIN_Acquire &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Acquire &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Acquire<br />&nbsp; &nbsp; _TWAIN_AcquireFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_AcquireFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireFile<br />&nbsp; &nbsp; _TWAIN_AcquireMemory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_AcquireMemory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireMemory<br />&nbsp; &nbsp; _TWAIN_AcquireMemoryCallback &nbsp;= TWAIN_AcquireMemoryCallback &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireMemoryCallback<br />&nbsp; &nbsp; _TWAIN_AcquireNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_AcquireNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireNative<br />&nbsp; &nbsp; _TWAIN_AcquireToClipboard &nbsp; &nbsp; = TWAIN_AcquireToClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_AcquireToClipboard<br />&nbsp; &nbsp; _TWAIN_AcquireToFilename &nbsp; &nbsp; &nbsp;= TWAIN_AcquireToFilename &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireToFilename<br />&nbsp; &nbsp; _TWAIN_BreakModalLoop &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_BreakModalLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_BreakModalLoop<br />&nbsp; &nbsp; _TWAIN_BuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_BuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_BuildName<br />&nbsp; &nbsp; _TWAIN_ClearError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_ClearError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ClearError<br />&nbsp; &nbsp; _TWAIN_CloseSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_CloseSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_CloseSource<br />&nbsp; &nbsp; _TWAIN_CloseSourceManager &nbsp; &nbsp; = TWAIN_CloseSourceManager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_CloseSourceManager<br />&nbsp; &nbsp; _TWAIN_Compression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Compression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Compression<br />&nbsp; &nbsp; _TWAIN_CreateDibPalette &nbsp; &nbsp; &nbsp; = TWAIN_CreateDibPalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_CreateDibPalette<br />&nbsp; &nbsp; _TWAIN_DS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DS<br />&nbsp; &nbsp; _TWAIN_DibDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DibDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DibDepth<br />&nbsp; &nbsp; _TWAIN_DibHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DibHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DibHeight<br />&nbsp; &nbsp; _TWAIN_DibNumColors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DibNumColors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DibNumColors<br />&nbsp; &nbsp; _TWAIN_DibReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DibReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DibReadRow<br />&nbsp; &nbsp; _TWAIN_DibRowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DibRowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DibRowBytes<br />&nbsp; &nbsp; _TWAIN_DibWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DibWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DibWidth<br />&nbsp; &nbsp; _TWAIN_DisableParent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DisableParent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DisableParent<br />&nbsp; &nbsp; _TWAIN_DisableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DisableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DisableSource<br />&nbsp; &nbsp; _TWAIN_DrawDibToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DrawDibToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DrawDibToDC<br />&nbsp; &nbsp; _TWAIN_EasyVersion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_EasyVersion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_EasyVersion<br />&nbsp; &nbsp; _TWAIN_EnableDuplex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_EnableDuplex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_EnableDuplex<br />&nbsp; &nbsp; _TWAIN_EnableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_EnableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_EnableSource<br />&nbsp; &nbsp; _TWAIN_EndXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_EndXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_EndXfer<br />&nbsp; &nbsp; _TWAIN_ErrorBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_ErrorBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ErrorBox<br />&nbsp; &nbsp; _TWAIN_Fix32ToFloat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_Fix32ToFloat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_Fix32ToFloat<br />&nbsp; &nbsp; _TWAIN_FreeNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_FreeNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_FreeNative<br />&nbsp; &nbsp; _TWAIN_Get &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Get &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Get<br />&nbsp; &nbsp; _TWAIN_GetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetBitDepth<br />&nbsp; &nbsp; _TWAIN_GetBuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetBuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetBuildName<br />&nbsp; &nbsp; _TWAIN_GetCapBool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetCapBool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetCapBool<br />&nbsp; &nbsp; _TWAIN_GetCapCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetCapCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetCapCurrent<br />&nbsp; &nbsp; _TWAIN_GetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetCapFix32<br />&nbsp; &nbsp; _TWAIN_GetCapUint16 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetCapUint16 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetCapUint16<br />&nbsp; &nbsp; _TWAIN_GetConditionCode &nbsp; &nbsp; &nbsp; = TWAIN_GetConditionCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetConditionCode<br />&nbsp; &nbsp; _TWAIN_GetCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetCurrent<br />&nbsp; &nbsp; _TWAIN_GetCurrentResolution &nbsp; = TWAIN_GetCurrentResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetCurrentResolution<br />&nbsp; &nbsp; _TWAIN_GetCurrentThreshold &nbsp; &nbsp;= TWAIN_GetCurrentThreshold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetCurrentThreshold<br />&nbsp; &nbsp; _TWAIN_GetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetCurrentUnits<br />&nbsp; &nbsp; _TWAIN_GetDefault &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetDefault &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetDefault<br />&nbsp; &nbsp; _TWAIN_GetDefaultImageLayout &nbsp;= TWAIN_GetDefaultImageLayout &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetDefaultImageLayout<br />&nbsp; &nbsp; _TWAIN_GetDefaultSourceName &nbsp; = TWAIN_GetDefaultSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetDefaultSourceName<br />&nbsp; &nbsp; _TWAIN_GetDisableParent &nbsp; &nbsp; &nbsp; = TWAIN_GetDisableParent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetDisableParent<br />&nbsp; &nbsp; _TWAIN_GetDuplexSupport &nbsp; &nbsp; &nbsp; = TWAIN_GetDuplexSupport &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetDuplexSupport<br />&nbsp; &nbsp; _TWAIN_GetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetHideUI<br />&nbsp; &nbsp; _TWAIN_GetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetImageLayout<br />&nbsp; &nbsp; _TWAIN_GetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetJpegQuality<br />&nbsp; &nbsp; _TWAIN_GetMultiTransfer &nbsp; &nbsp; &nbsp; = TWAIN_GetMultiTransfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetMultiTransfer<br />&nbsp; &nbsp; _TWAIN_GetNextSourceName &nbsp; &nbsp; &nbsp;= TWAIN_GetNextSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetNextSourceName<br />&nbsp; &nbsp; _TWAIN_GetPixelType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetPixelType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetPixelType<br />&nbsp; &nbsp; _TWAIN_GetResultCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetResultCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetResultCode<br />&nbsp; &nbsp; _TWAIN_GetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetSaveFormat<br />&nbsp; &nbsp; _TWAIN_GetSourceList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetSourceList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetSourceList<br />&nbsp; &nbsp; _TWAIN_GetSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetSourceName<br />&nbsp; &nbsp; _TWAIN_GetYResolution &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetYResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetYResolution<br />&nbsp; &nbsp; _TWAIN_HasControllableUI &nbsp; &nbsp; &nbsp;= TWAIN_HasControllableUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_HasControllableUI<br />&nbsp; &nbsp; _TWAIN_HasFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_HasFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_HasFeeder<br />&nbsp; &nbsp; _TWAIN_IsAutoFeedOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_IsAutoFeedOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_IsAutoFeedOn<br />&nbsp; &nbsp; _TWAIN_IsAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_IsAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_IsAvailable<br />&nbsp; &nbsp; _TWAIN_IsDuplexEnabled &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_IsDuplexEnabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_IsDuplexEnabled<br />&nbsp; &nbsp; _TWAIN_IsFeederLoaded &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_IsFeederLoaded &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_IsFeederLoaded<br />&nbsp; &nbsp; _TWAIN_IsFeederSelected &nbsp; &nbsp; &nbsp; = TWAIN_IsFeederSelected &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_IsFeederSelected<br />&nbsp; &nbsp; _TWAIN_IsJpegAvailable &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_IsJpegAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_IsJpegAvailable<br />&nbsp; &nbsp; _TWAIN_IsTransferReady &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_IsTransferReady &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_IsTransferReady<br />&nbsp; &nbsp; _TWAIN_LastErrorCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_LastErrorCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_LastErrorCode<br />&nbsp; &nbsp; _TWAIN_LoadNativeFromFilename = TWAIN_LoadNativeFromFilename &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_LoadNativeFromFilename<br />&nbsp; &nbsp; _TWAIN_LoadSourceManager &nbsp; &nbsp; &nbsp;= TWAIN_LoadSourceManager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_LoadSourceManager<br />&nbsp; &nbsp; _TWAIN_LogFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_LogFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_LogFile<br />&nbsp; &nbsp; _TWAIN_MessageHook &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_MessageHook &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_MessageHook<br />&nbsp; &nbsp; _TWAIN_Mgr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Mgr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Mgr<br />&nbsp; &nbsp; _TWAIN_ModalEventLoop &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_ModalEventLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ModalEventLoop<br />&nbsp; &nbsp; _TWAIN_NegotiatePixelTypes &nbsp; &nbsp;= TWAIN_NegotiatePixelTypes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_NegotiatePixelTypes<br />&nbsp; &nbsp; _TWAIN_NegotiateXferCount &nbsp; &nbsp; = TWAIN_NegotiateXferCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_NegotiateXferCount<br />&nbsp; &nbsp; _TWAIN_OpenDefaultSource &nbsp; &nbsp; &nbsp;= TWAIN_OpenDefaultSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_OpenDefaultSource<br />&nbsp; &nbsp; _TWAIN_OpenSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_OpenSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_OpenSource<br />&nbsp; &nbsp; _TWAIN_OpenSourceManager &nbsp; &nbsp; &nbsp;= TWAIN_OpenSourceManager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_OpenSourceManager<br />&nbsp; &nbsp; _TWAIN_PixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_PixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_PixelFlavor<br />&nbsp; &nbsp; _TWAIN_PlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_PlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_PlanarChunky<br />&nbsp; &nbsp; _TWAIN_RegisterApp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_RegisterApp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_RegisterApp<br />&nbsp; &nbsp; _TWAIN_ReportLastError &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_ReportLastError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_ReportLastError<br />&nbsp; &nbsp; _TWAIN_Reset &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Reset &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Reset<br />&nbsp; &nbsp; _TWAIN_ResetImageLayout &nbsp; &nbsp; &nbsp; = TWAIN_ResetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ResetImageLayout<br />&nbsp; &nbsp; _TWAIN_SelectFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SelectFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SelectFeeder<br />&nbsp; &nbsp; _TWAIN_SelectImageSource &nbsp; &nbsp; &nbsp;= TWAIN_SelectImageSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SelectImageSource<br />&nbsp; &nbsp; _TWAIN_SelfTest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SelfTest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SelfTest<br />&nbsp; &nbsp; _TWAIN_Set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Set<br />&nbsp; &nbsp; _TWAIN_SetAppTitle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetAppTitle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetAppTitle<br />&nbsp; &nbsp; _TWAIN_SetAutoBright &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetAutoBright &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetAutoBright<br />&nbsp; &nbsp; _TWAIN_SetAutoFeed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetAutoFeed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetAutoFeed<br />&nbsp; &nbsp; _TWAIN_SetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetBitDepth<br />&nbsp; &nbsp; _TWAIN_SetBrightness &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetBrightness &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetBrightness<br />&nbsp; &nbsp; _TWAIN_SetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetCapFix32<br />&nbsp; &nbsp; _TWAIN_SetCapFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetCapFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetCapFix32R<br />&nbsp; &nbsp; _TWAIN_SetCapOneValue &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetCapOneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetCapOneValue<br />&nbsp; &nbsp; _TWAIN_SetCompression &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetCompression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetCompression<br />&nbsp; &nbsp; _TWAIN_SetContrast &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetContrast &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetContrast<br />&nbsp; &nbsp; _TWAIN_SetCurrentPixelType &nbsp; &nbsp;= TWAIN_SetCurrentPixelType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetCurrentPixelType<br />&nbsp; &nbsp; _TWAIN_SetCurrentResolution &nbsp; = TWAIN_SetCurrentResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetCurrentResolution<br />&nbsp; &nbsp; _TWAIN_SetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetCurrentUnits<br />&nbsp; &nbsp; _TWAIN_SetGamma &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetGamma &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetGamma<br />&nbsp; &nbsp; _TWAIN_SetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetHideUI<br />&nbsp; &nbsp; _TWAIN_SetHighlight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetHighlight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetHighlight<br />&nbsp; &nbsp; _TWAIN_SetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetImageLayout<br />&nbsp; &nbsp; _TWAIN_SetIndicators &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetIndicators &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetIndicators<br />&nbsp; &nbsp; _TWAIN_SetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetJpegQuality<br />&nbsp; &nbsp; _TWAIN_SetLightPath &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetLightPath &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetLightPath<br />&nbsp; &nbsp; _TWAIN_SetMultiTransfer &nbsp; &nbsp; &nbsp; = TWAIN_SetMultiTransfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetMultiTransfer<br />&nbsp; &nbsp; _TWAIN_SetPaperSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetPaperSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetPaperSize<br />&nbsp; &nbsp; _TWAIN_SetPixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetPixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetPixelFlavor<br />&nbsp; &nbsp; _TWAIN_SetPlanarChunky &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetPlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetPlanarChunky<br />&nbsp; &nbsp; _TWAIN_SetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetSaveFormat<br />&nbsp; &nbsp; _TWAIN_SetShadow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetShadow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetShadow<br />&nbsp; &nbsp; _TWAIN_SetThreshold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetThreshold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetThreshold<br />&nbsp; &nbsp; _TWAIN_SetTiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetTiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetTiled<br />&nbsp; &nbsp; _TWAIN_SetXResolution &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetXResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetXResolution<br />&nbsp; &nbsp; _TWAIN_SetXferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetXferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetXferMech<br />&nbsp; &nbsp; _TWAIN_SetYResolution &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetYResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetYResolution<br />&nbsp; &nbsp; _TWAIN_SourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SourceName<br />&nbsp; &nbsp; _TWAIN_State &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_State &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_State<br />&nbsp; &nbsp; _TWAIN_SupportsFileXfer &nbsp; &nbsp; &nbsp; = TWAIN_SupportsFileXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SupportsFileXfer<br />&nbsp; &nbsp; _TWAIN_SuppressErrorMessages &nbsp;= TWAIN_SuppressErrorMessages &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SuppressErrorMessages<br />&nbsp; &nbsp; _TWAIN_Testing123 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_Testing123 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_Testing123<br />&nbsp; &nbsp; _TWAIN_Tiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Tiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Tiled<br />&nbsp; &nbsp; _TWAIN_ToFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_ToFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_ToFix32<br />&nbsp; &nbsp; _TWAIN_ToFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_ToFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ToFix32R<br />&nbsp; &nbsp; _TWAIN_UnloadSourceManager &nbsp; &nbsp;= TWAIN_UnloadSourceManager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_UnloadSourceManager<br />&nbsp; &nbsp; _TWAIN_UserClosedSource &nbsp; &nbsp; &nbsp; = TWAIN_UserClosedSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_UserClosedSource<br />&nbsp; &nbsp; _TWAIN_WaitForNativeXfer &nbsp; &nbsp; &nbsp;= TWAIN_WaitForNativeXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_WaitForNativeXfer<br />&nbsp; &nbsp; _TWAIN_WriteNativeToFilename &nbsp;= TWAIN_WriteNativeToFilename &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_WriteNativeToFilename<br />&nbsp; &nbsp; _TWAIN_XferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_XferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_XferMech<br /><br />&nbsp;</div>[/code:185icw57]
Compilando TSCAN MVC2010
Generado asi: impdef -aa twain3.def eztw32.dll [code=fw:3iexyr29]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">LIBRARY</span> &nbsp; &nbsp; EZTW32.DLL<br /><br />EXPORTS<br />&nbsp; &nbsp; _CONTAINER_Array &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_Array &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_Array<br />&nbsp; &nbsp; _CONTAINER_ContainsValue &nbsp; &nbsp; &nbsp;= CONTAINER_ContainsValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_ContainsValue<br />&nbsp; &nbsp; _CONTAINER_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_Copy<br />&nbsp; &nbsp; _CONTAINER_CurrentIndex &nbsp; &nbsp; &nbsp; = CONTAINER_CurrentIndex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_CurrentIndex<br />&nbsp; &nbsp; _CONTAINER_CurrentValue &nbsp; &nbsp; &nbsp; = CONTAINER_CurrentValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_CurrentValue<br />&nbsp; &nbsp; _CONTAINER_DefaultIndex &nbsp; &nbsp; &nbsp; = CONTAINER_DefaultIndex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_DefaultIndex<br />&nbsp; &nbsp; _CONTAINER_DefaultValue &nbsp; &nbsp; &nbsp; = CONTAINER_DefaultValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_DefaultValue<br />&nbsp; &nbsp; _CONTAINER_DeleteItem &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_DeleteItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_DeleteItem<br />&nbsp; &nbsp; _CONTAINER_Enumeration &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_Enumeration &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_Enumeration<br />&nbsp; &nbsp; _CONTAINER_FindValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_FindValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_FindValue<br />&nbsp; &nbsp; _CONTAINER_FloatValue &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_FloatValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_FloatValue<br />&nbsp; &nbsp; _CONTAINER_Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_Format<br />&nbsp; &nbsp; _CONTAINER_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_Free<br />&nbsp; &nbsp; _CONTAINER_InsertItem &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_InsertItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_InsertItem<br />&nbsp; &nbsp; _CONTAINER_IntValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_IntValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_IntValue<br />&nbsp; &nbsp; _CONTAINER_ItemCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_ItemCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_ItemCount<br />&nbsp; &nbsp; _CONTAINER_ItemType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_ItemType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_ItemType<br />&nbsp; &nbsp; _CONTAINER_MaxValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_MaxValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_MaxValue<br />&nbsp; &nbsp; _CONTAINER_MinValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_MinValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_MinValue<br />&nbsp; &nbsp; _CONTAINER_OneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_OneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_OneValue<br />&nbsp; &nbsp; _CONTAINER_Range &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_Range &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_Range<br />&nbsp; &nbsp; _CONTAINER_SelectCurrentItem &nbsp;= CONTAINER_SelectCurrentItem &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_SelectCurrentItem<br />&nbsp; &nbsp; _CONTAINER_SelectCurrentValue = CONTAINER_SelectCurrentValue &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_SelectCurrentValue<br />&nbsp; &nbsp; _CONTAINER_SelectDefaultItem &nbsp;= CONTAINER_SelectDefaultItem &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_SelectDefaultItem<br />&nbsp; &nbsp; _CONTAINER_SelectDefaultValue = CONTAINER_SelectDefaultValue &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_SelectDefaultValue<br />&nbsp; &nbsp; _CONTAINER_SetItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= CONTAINER_SetItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_SetItem<br />&nbsp; &nbsp; _CONTAINER_SetItemFrame &nbsp; &nbsp; &nbsp; = CONTAINER_SetItemFrame &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_SetItemFrame<br />&nbsp; &nbsp; _CONTAINER_SetItemString &nbsp; &nbsp; &nbsp;= CONTAINER_SetItemString &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; CONTAINER_SetItemString<br />&nbsp; &nbsp; _CONTAINER_StepSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_StepSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_StepSize<br />&nbsp; &nbsp; _CONTAINER_ValuePtr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = CONTAINER_ValuePtr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; CONTAINER_ValuePtr<br />&nbsp; &nbsp; _DIB_Allocate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Allocate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Allocate<br />&nbsp; &nbsp; _DIB_ColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_ColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_ColorCount<br />&nbsp; &nbsp; _DIB_ColorTableB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_ColorTableB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_ColorTableB<br />&nbsp; &nbsp; _DIB_ColorTableG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_ColorTableG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_ColorTableG<br />&nbsp; &nbsp; _DIB_ColorTableR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_ColorTableR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_ColorTableR<br />&nbsp; &nbsp; _DIB_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Copy<br />&nbsp; &nbsp; _DIB_CreatePalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_CreatePalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_CreatePalette<br />&nbsp; &nbsp; _DIB_Depth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_Depth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_Depth<br />&nbsp; &nbsp; _DIB_DrawToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_DrawToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_DrawToDC<br />&nbsp; &nbsp; _DIB_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Free<br />&nbsp; &nbsp; _DIB_GetFromClipboard &nbsp; &nbsp; &nbsp; &nbsp; = DIB_GetFromClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_GetFromClipboard<br />&nbsp; &nbsp; _DIB_Height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Height<br />&nbsp; &nbsp; _DIB_LoadFromFilename &nbsp; &nbsp; &nbsp; &nbsp; = DIB_LoadFromFilename &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_LoadFromFilename<br />&nbsp; &nbsp; _DIB_Lock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Lock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Lock<br />&nbsp; &nbsp; _DIB_PutOnClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_PutOnClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_PutOnClipboard<br />&nbsp; &nbsp; _DIB_ReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_ReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_ReadRow<br />&nbsp; &nbsp; _DIB_ReadRowRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_ReadRowRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_ReadRowRGB<br />&nbsp; &nbsp; _DIB_RowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_RowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_RowBytes<br />&nbsp; &nbsp; _DIB_SetColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_SetColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_SetColorCount<br />&nbsp; &nbsp; _DIB_SetColorTableRGB &nbsp; &nbsp; &nbsp; &nbsp; = DIB_SetColorTableRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_SetColorTableRGB<br />&nbsp; &nbsp; _DIB_SetGrayColorTable &nbsp; &nbsp; &nbsp; &nbsp;= DIB_SetGrayColorTable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_SetGrayColorTable<br />&nbsp; &nbsp; _DIB_SetResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_SetResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_SetResolution<br />&nbsp; &nbsp; _DIB_SwapRedBlue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_SwapRedBlue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_SwapRedBlue<br />&nbsp; &nbsp; _DIB_Unlock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_Unlock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_Unlock<br />&nbsp; &nbsp; _DIB_Width &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_Width &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_Width<br />&nbsp; &nbsp; _DIB_WriteRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_WriteRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_WriteRow<br />&nbsp; &nbsp; _DIB_WriteRowChannel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_WriteRowChannel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_WriteRowChannel<br />&nbsp; &nbsp; _DIB_WriteToBmp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_WriteToBmp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_WriteToBmp<br />&nbsp; &nbsp; _DIB_WriteToBmpFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = DIB_WriteToBmpFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; DIB_WriteToBmpFile<br />&nbsp; &nbsp; _DIB_WriteToJpeg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_WriteToJpeg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_WriteToJpeg<br />&nbsp; &nbsp; _DIB_XResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_XResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_XResolution<br />&nbsp; &nbsp; _DIB_YResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DIB_YResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DIB_YResolution<br />&nbsp; &nbsp; _DllMain &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= DllMain &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; DllMain<br />&nbsp; &nbsp; _TWAIN_AbortAllPendingXfers &nbsp; = TWAIN_AbortAllPendingXfers &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_AbortAllPendingXfers<br />&nbsp; &nbsp; _TWAIN_Acquire &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Acquire &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Acquire<br />&nbsp; &nbsp; _TWAIN_AcquireFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_AcquireFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireFile<br />&nbsp; &nbsp; _TWAIN_AcquireMemory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_AcquireMemory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireMemory<br />&nbsp; &nbsp; _TWAIN_AcquireMemoryCallback &nbsp;= TWAIN_AcquireMemoryCallback &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireMemoryCallback<br />&nbsp; &nbsp; _TWAIN_AcquireNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_AcquireNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireNative<br />&nbsp; &nbsp; _TWAIN_AcquireToClipboard &nbsp; &nbsp; = TWAIN_AcquireToClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_AcquireToClipboard<br />&nbsp; &nbsp; _TWAIN_AcquireToFilename &nbsp; &nbsp; &nbsp;= TWAIN_AcquireToFilename &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_AcquireToFilename<br />&nbsp; &nbsp; _TWAIN_BreakModalLoop &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_BreakModalLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_BreakModalLoop<br />&nbsp; &nbsp; _TWAIN_BuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_BuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_BuildName<br />&nbsp; &nbsp; _TWAIN_ClearError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_ClearError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ClearError<br />&nbsp; &nbsp; _TWAIN_CloseSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_CloseSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_CloseSource<br />&nbsp; &nbsp; _TWAIN_CloseSourceManager &nbsp; &nbsp; = TWAIN_CloseSourceManager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_CloseSourceManager<br />&nbsp; &nbsp; _TWAIN_Compression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Compression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Compression<br />&nbsp; &nbsp; _TWAIN_CreateDibPalette &nbsp; &nbsp; &nbsp; = TWAIN_CreateDibPalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_CreateDibPalette<br />&nbsp; &nbsp; _TWAIN_DS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DS<br />&nbsp; &nbsp; _TWAIN_DibDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DibDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DibDepth<br />&nbsp; &nbsp; _TWAIN_DibHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DibHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DibHeight<br />&nbsp; &nbsp; _TWAIN_DibNumColors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DibNumColors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DibNumColors<br />&nbsp; &nbsp; _TWAIN_DibReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DibReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DibReadRow<br />&nbsp; &nbsp; _TWAIN_DibRowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DibRowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DibRowBytes<br />&nbsp; &nbsp; _TWAIN_DibWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_DibWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_DibWidth<br />&nbsp; &nbsp; _TWAIN_DisableParent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DisableParent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DisableParent<br />&nbsp; &nbsp; _TWAIN_DisableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DisableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DisableSource<br />&nbsp; &nbsp; _TWAIN_DrawDibToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_DrawDibToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_DrawDibToDC<br />&nbsp; &nbsp; _TWAIN_EasyVersion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_EasyVersion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_EasyVersion<br />&nbsp; &nbsp; _TWAIN_EnableDuplex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_EnableDuplex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_EnableDuplex<br />&nbsp; &nbsp; _TWAIN_EnableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_EnableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_EnableSource<br />&nbsp; &nbsp; _TWAIN_EndXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_EndXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_EndXfer<br />&nbsp; &nbsp; _TWAIN_ErrorBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_ErrorBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ErrorBox<br />&nbsp; &nbsp; _TWAIN_Fix32ToFloat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_Fix32ToFloat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_Fix32ToFloat<br />&nbsp; &nbsp; _TWAIN_FreeNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_FreeNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_FreeNative<br />&nbsp; &nbsp; _TWAIN_Get &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Get &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Get<br />&nbsp; &nbsp; _TWAIN_GetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetBitDepth<br />&nbsp; &nbsp; _TWAIN_GetBuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetBuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetBuildName<br />&nbsp; &nbsp; _TWAIN_GetCapBool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetCapBool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetCapBool<br />&nbsp; &nbsp; _TWAIN_GetCapCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetCapCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetCapCurrent<br />&nbsp; &nbsp; _TWAIN_GetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetCapFix32<br />&nbsp; &nbsp; _TWAIN_GetCapUint16 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetCapUint16 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetCapUint16<br />&nbsp; &nbsp; _TWAIN_GetConditionCode &nbsp; &nbsp; &nbsp; = TWAIN_GetConditionCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetConditionCode<br />&nbsp; &nbsp; _TWAIN_GetCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetCurrent<br />&nbsp; &nbsp; _TWAIN_GetCurrentResolution &nbsp; = TWAIN_GetCurrentResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetCurrentResolution<br />&nbsp; &nbsp; _TWAIN_GetCurrentThreshold &nbsp; &nbsp;= TWAIN_GetCurrentThreshold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetCurrentThreshold<br />&nbsp; &nbsp; _TWAIN_GetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetCurrentUnits<br />&nbsp; &nbsp; _TWAIN_GetDefault &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetDefault &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetDefault<br />&nbsp; &nbsp; _TWAIN_GetDefaultImageLayout &nbsp;= TWAIN_GetDefaultImageLayout &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetDefaultImageLayout<br />&nbsp; &nbsp; _TWAIN_GetDefaultSourceName &nbsp; = TWAIN_GetDefaultSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetDefaultSourceName<br />&nbsp; &nbsp; _TWAIN_GetDisableParent &nbsp; &nbsp; &nbsp; = TWAIN_GetDisableParent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetDisableParent<br />&nbsp; &nbsp; _TWAIN_GetDuplexSupport &nbsp; &nbsp; &nbsp; = TWAIN_GetDuplexSupport &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetDuplexSupport<br />&nbsp; &nbsp; _TWAIN_GetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetHideUI<br />&nbsp; &nbsp; _TWAIN_GetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetImageLayout<br />&nbsp; &nbsp; _TWAIN_GetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetJpegQuality<br />&nbsp; &nbsp; _TWAIN_GetMultiTransfer &nbsp; &nbsp; &nbsp; = TWAIN_GetMultiTransfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetMultiTransfer<br />&nbsp; &nbsp; _TWAIN_GetNextSourceName &nbsp; &nbsp; &nbsp;= TWAIN_GetNextSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetNextSourceName<br />&nbsp; &nbsp; _TWAIN_GetPixelType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetPixelType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetPixelType<br />&nbsp; &nbsp; _TWAIN_GetResultCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetResultCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetResultCode<br />&nbsp; &nbsp; _TWAIN_GetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetSaveFormat<br />&nbsp; &nbsp; _TWAIN_GetSourceList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetSourceList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetSourceList<br />&nbsp; &nbsp; _TWAIN_GetSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_GetSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_GetSourceName<br />&nbsp; &nbsp; _TWAIN_GetYResolution &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_GetYResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_GetYResolution<br />&nbsp; &nbsp; _TWAIN_HasControllableUI &nbsp; &nbsp; &nbsp;= TWAIN_HasControllableUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_HasControllableUI<br />&nbsp; &nbsp; _TWAIN_HasFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_HasFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_HasFeeder<br />&nbsp; &nbsp; _TWAIN_IsAutoFeedOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_IsAutoFeedOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_IsAutoFeedOn<br />&nbsp; &nbsp; _TWAIN_IsAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_IsAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_IsAvailable<br />&nbsp; &nbsp; _TWAIN_IsDuplexEnabled &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_IsDuplexEnabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_IsDuplexEnabled<br />&nbsp; &nbsp; _TWAIN_IsFeederLoaded &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_IsFeederLoaded &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_IsFeederLoaded<br />&nbsp; &nbsp; _TWAIN_IsFeederSelected &nbsp; &nbsp; &nbsp; = TWAIN_IsFeederSelected &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_IsFeederSelected<br />&nbsp; &nbsp; _TWAIN_IsJpegAvailable &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_IsJpegAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_IsJpegAvailable<br />&nbsp; &nbsp; _TWAIN_IsTransferReady &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_IsTransferReady &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_IsTransferReady<br />&nbsp; &nbsp; _TWAIN_LastErrorCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_LastErrorCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_LastErrorCode<br />&nbsp; &nbsp; _TWAIN_LoadNativeFromFilename = TWAIN_LoadNativeFromFilename &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_LoadNativeFromFilename<br />&nbsp; &nbsp; _TWAIN_LoadSourceManager &nbsp; &nbsp; &nbsp;= TWAIN_LoadSourceManager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_LoadSourceManager<br />&nbsp; &nbsp; _TWAIN_LogFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_LogFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_LogFile<br />&nbsp; &nbsp; _TWAIN_MessageHook &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_MessageHook &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_MessageHook<br />&nbsp; &nbsp; _TWAIN_Mgr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Mgr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Mgr<br />&nbsp; &nbsp; _TWAIN_ModalEventLoop &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_ModalEventLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ModalEventLoop<br />&nbsp; &nbsp; _TWAIN_NegotiatePixelTypes &nbsp; &nbsp;= TWAIN_NegotiatePixelTypes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_NegotiatePixelTypes<br />&nbsp; &nbsp; _TWAIN_NegotiateXferCount &nbsp; &nbsp; = TWAIN_NegotiateXferCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_NegotiateXferCount<br />&nbsp; &nbsp; _TWAIN_OpenDefaultSource &nbsp; &nbsp; &nbsp;= TWAIN_OpenDefaultSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_OpenDefaultSource<br />&nbsp; &nbsp; _TWAIN_OpenSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_OpenSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_OpenSource<br />&nbsp; &nbsp; _TWAIN_OpenSourceManager &nbsp; &nbsp; &nbsp;= TWAIN_OpenSourceManager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_OpenSourceManager<br />&nbsp; &nbsp; _TWAIN_PixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_PixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_PixelFlavor<br />&nbsp; &nbsp; _TWAIN_PlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_PlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_PlanarChunky<br />&nbsp; &nbsp; _TWAIN_RegisterApp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_RegisterApp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_RegisterApp<br />&nbsp; &nbsp; _TWAIN_ReportLastError &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_ReportLastError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_ReportLastError<br />&nbsp; &nbsp; _TWAIN_Reset &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Reset &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Reset<br />&nbsp; &nbsp; _TWAIN_ResetImageLayout &nbsp; &nbsp; &nbsp; = TWAIN_ResetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ResetImageLayout<br />&nbsp; &nbsp; _TWAIN_SelectFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SelectFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SelectFeeder<br />&nbsp; &nbsp; _TWAIN_SelectImageSource &nbsp; &nbsp; &nbsp;= TWAIN_SelectImageSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SelectImageSource<br />&nbsp; &nbsp; _TWAIN_SelfTest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SelfTest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SelfTest<br />&nbsp; &nbsp; _TWAIN_Set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Set<br />&nbsp; &nbsp; _TWAIN_SetAppTitle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetAppTitle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetAppTitle<br />&nbsp; &nbsp; _TWAIN_SetAutoBright &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetAutoBright &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetAutoBright<br />&nbsp; &nbsp; _TWAIN_SetAutoFeed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetAutoFeed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetAutoFeed<br />&nbsp; &nbsp; _TWAIN_SetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetBitDepth<br />&nbsp; &nbsp; _TWAIN_SetBrightness &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetBrightness &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetBrightness<br />&nbsp; &nbsp; _TWAIN_SetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetCapFix32<br />&nbsp; &nbsp; _TWAIN_SetCapFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetCapFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetCapFix32R<br />&nbsp; &nbsp; _TWAIN_SetCapOneValue &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetCapOneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetCapOneValue<br />&nbsp; &nbsp; _TWAIN_SetCompression &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetCompression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetCompression<br />&nbsp; &nbsp; _TWAIN_SetContrast &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetContrast &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetContrast<br />&nbsp; &nbsp; _TWAIN_SetCurrentPixelType &nbsp; &nbsp;= TWAIN_SetCurrentPixelType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetCurrentPixelType<br />&nbsp; &nbsp; _TWAIN_SetCurrentResolution &nbsp; = TWAIN_SetCurrentResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetCurrentResolution<br />&nbsp; &nbsp; _TWAIN_SetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetCurrentUnits<br />&nbsp; &nbsp; _TWAIN_SetGamma &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetGamma &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetGamma<br />&nbsp; &nbsp; _TWAIN_SetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetHideUI<br />&nbsp; &nbsp; _TWAIN_SetHighlight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetHighlight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetHighlight<br />&nbsp; &nbsp; _TWAIN_SetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetImageLayout<br />&nbsp; &nbsp; _TWAIN_SetIndicators &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetIndicators &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetIndicators<br />&nbsp; &nbsp; _TWAIN_SetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetJpegQuality<br />&nbsp; &nbsp; _TWAIN_SetLightPath &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetLightPath &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetLightPath<br />&nbsp; &nbsp; _TWAIN_SetMultiTransfer &nbsp; &nbsp; &nbsp; = TWAIN_SetMultiTransfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetMultiTransfer<br />&nbsp; &nbsp; _TWAIN_SetPaperSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetPaperSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetPaperSize<br />&nbsp; &nbsp; _TWAIN_SetPixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetPixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetPixelFlavor<br />&nbsp; &nbsp; _TWAIN_SetPlanarChunky &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetPlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetPlanarChunky<br />&nbsp; &nbsp; _TWAIN_SetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetSaveFormat<br />&nbsp; &nbsp; _TWAIN_SetShadow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetShadow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetShadow<br />&nbsp; &nbsp; _TWAIN_SetThreshold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetThreshold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetThreshold<br />&nbsp; &nbsp; _TWAIN_SetTiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetTiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetTiled<br />&nbsp; &nbsp; _TWAIN_SetXResolution &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetXResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetXResolution<br />&nbsp; &nbsp; _TWAIN_SetXferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_SetXferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SetXferMech<br />&nbsp; &nbsp; _TWAIN_SetYResolution &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SetYResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SetYResolution<br />&nbsp; &nbsp; _TWAIN_SourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_SourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SourceName<br />&nbsp; &nbsp; _TWAIN_State &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_State &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_State<br />&nbsp; &nbsp; _TWAIN_SupportsFileXfer &nbsp; &nbsp; &nbsp; = TWAIN_SupportsFileXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_SupportsFileXfer<br />&nbsp; &nbsp; _TWAIN_SuppressErrorMessages &nbsp;= TWAIN_SuppressErrorMessages &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_SuppressErrorMessages<br />&nbsp; &nbsp; _TWAIN_Testing123 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_Testing123 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_Testing123<br />&nbsp; &nbsp; _TWAIN_Tiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_Tiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_Tiled<br />&nbsp; &nbsp; _TWAIN_ToFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= TWAIN_ToFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_ToFix32<br />&nbsp; &nbsp; _TWAIN_ToFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_ToFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_ToFix32R<br />&nbsp; &nbsp; _TWAIN_UnloadSourceManager &nbsp; &nbsp;= TWAIN_UnloadSourceManager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_UnloadSourceManager<br />&nbsp; &nbsp; _TWAIN_UserClosedSource &nbsp; &nbsp; &nbsp; = TWAIN_UserClosedSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_UserClosedSource<br />&nbsp; &nbsp; _TWAIN_WaitForNativeXfer &nbsp; &nbsp; &nbsp;= TWAIN_WaitForNativeXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_WaitForNativeXfer<br />&nbsp; &nbsp; _TWAIN_WriteNativeToFilename &nbsp;= TWAIN_WriteNativeToFilename &nbsp; &nbsp; &nbsp; &nbsp; ; TWAIN_WriteNativeToFilename<br />&nbsp; &nbsp; _TWAIN_XferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = TWAIN_XferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; TWAIN_XferMech<br /><br /><br />&nbsp;</div>[/code:3iexyr29]
Compilando TSCAN MVC2010
Generado asi genera error de sintaxis al crear la lib impdef -h twain4.def eztw32.dll [code=fw:1lf3na5p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">LIBRARY</span> &nbsp; &nbsp; EZTW32.DLL<br /><br />EXPORTS<br />&nbsp; &nbsp; CONTAINER_Array &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">317</span> &nbsp;@<span style="color: #000000;">0</span> &nbsp; ; CONTAINER_Array<br />&nbsp; &nbsp; CONTAINER_ContainsValue &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">308</span> &nbsp;@<span style="color: #000000;">1</span> &nbsp; ; CONTAINER_ContainsValue<br />&nbsp; &nbsp; CONTAINER_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">302</span> &nbsp;@<span style="color: #000000;">2</span> &nbsp; ; CONTAINER_Copy<br />&nbsp; &nbsp; CONTAINER_CurrentIndex &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">324</span> &nbsp;@<span style="color: #000000;">3</span> &nbsp; ; CONTAINER_CurrentIndex<br />&nbsp; &nbsp; CONTAINER_CurrentValue &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">310</span> &nbsp;@<span style="color: #000000;">4</span> &nbsp; ; CONTAINER_CurrentValue<br />&nbsp; &nbsp; CONTAINER_DefaultIndex &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">323</span> &nbsp;@<span style="color: #000000;">5</span> &nbsp; ; CONTAINER_DefaultIndex<br />&nbsp; &nbsp; CONTAINER_DefaultValue &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">311</span> &nbsp;@<span style="color: #000000;">6</span> &nbsp; ; CONTAINER_DefaultValue<br />&nbsp; &nbsp; CONTAINER_DeleteItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">321</span> &nbsp;@<span style="color: #000000;">7</span> &nbsp; ; CONTAINER_DeleteItem<br />&nbsp; &nbsp; CONTAINER_Enumeration &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">318</span> &nbsp;@<span style="color: #000000;">8</span> &nbsp; ; CONTAINER_Enumeration<br />&nbsp; &nbsp; CONTAINER_FindValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">309</span> &nbsp;@<span style="color: #000000;">9</span> &nbsp; ; CONTAINER_FindValue<br />&nbsp; &nbsp; CONTAINER_FloatValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">306</span> &nbsp;@<span style="color: #000000;">10</span> &nbsp;; CONTAINER_FloatValue<br />&nbsp; &nbsp; CONTAINER_Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">303</span> &nbsp;@<span style="color: #000000;">11</span> &nbsp;; CONTAINER_Format<br />&nbsp; &nbsp; CONTAINER_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">301</span> &nbsp;@<span style="color: #000000;">12</span> &nbsp;; CONTAINER_Free<br />&nbsp; &nbsp; CONTAINER_InsertItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">322</span> &nbsp;@<span style="color: #000000;">13</span> &nbsp;; CONTAINER_InsertItem<br />&nbsp; &nbsp; CONTAINER_IntValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">307</span> &nbsp;@<span style="color: #000000;">14</span> &nbsp;; CONTAINER_IntValue<br />&nbsp; &nbsp; CONTAINER_ItemCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">305</span> &nbsp;@<span style="color: #000000;">15</span> &nbsp;; CONTAINER_ItemCount<br />&nbsp; &nbsp; CONTAINER_ItemType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">304</span> &nbsp;@<span style="color: #000000;">16</span> &nbsp;; CONTAINER_ItemType<br />&nbsp; &nbsp; CONTAINER_MaxValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">313</span> &nbsp;@<span style="color: #000000;">17</span> &nbsp;; CONTAINER_MaxValue<br />&nbsp; &nbsp; CONTAINER_MinValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">312</span> &nbsp;@<span style="color: #000000;">18</span> &nbsp;; CONTAINER_MinValue<br />&nbsp; &nbsp; CONTAINER_OneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">315</span> &nbsp;@<span style="color: #000000;">19</span> &nbsp;; CONTAINER_OneValue<br />&nbsp; &nbsp; CONTAINER_Range &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">316</span> &nbsp;@<span style="color: #000000;">20</span> &nbsp;; CONTAINER_Range<br />&nbsp; &nbsp; CONTAINER_SelectCurrentItem &nbsp; &nbsp;@<span style="color: #000000;">320</span> &nbsp;@<span style="color: #000000;">21</span> &nbsp;; CONTAINER_SelectCurrentItem<br />&nbsp; &nbsp; CONTAINER_SelectCurrentValue &nbsp; @<span style="color: #000000;">328</span> &nbsp;@<span style="color: #000000;">22</span> &nbsp;; CONTAINER_SelectCurrentValue<br />&nbsp; &nbsp; CONTAINER_SelectDefaultItem &nbsp; &nbsp;@<span style="color: #000000;">327</span> &nbsp;@<span style="color: #000000;">23</span> &nbsp;; CONTAINER_SelectDefaultItem<br />&nbsp; &nbsp; CONTAINER_SelectDefaultValue &nbsp; @<span style="color: #000000;">326</span> &nbsp;@<span style="color: #000000;">24</span> &nbsp;; CONTAINER_SelectDefaultValue<br />&nbsp; &nbsp; CONTAINER_SetItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">319</span> &nbsp;@<span style="color: #000000;">25</span> &nbsp;; CONTAINER_SetItem<br />&nbsp; &nbsp; CONTAINER_SetItemFrame &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">330</span> &nbsp;@<span style="color: #000000;">26</span> &nbsp;; CONTAINER_SetItemFrame<br />&nbsp; &nbsp; CONTAINER_SetItemString &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">329</span> &nbsp;@<span style="color: #000000;">27</span> &nbsp;; CONTAINER_SetItemString<br />&nbsp; &nbsp; CONTAINER_StepSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">314</span> &nbsp;@<span style="color: #000000;">28</span> &nbsp;; CONTAINER_StepSize<br />&nbsp; &nbsp; CONTAINER_ValuePtr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">325</span> &nbsp;@<span style="color: #000000;">29</span> &nbsp;; CONTAINER_ValuePtr<br />&nbsp; &nbsp; DIB_Allocate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">201</span> &nbsp;@<span style="color: #000000;">30</span> &nbsp;; DIB_Allocate<br />&nbsp; &nbsp; DIB_ColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">216</span> &nbsp;@<span style="color: #000000;">31</span> &nbsp;; DIB_ColorCount<br />&nbsp; &nbsp; DIB_ColorTableB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">231</span> &nbsp;@<span style="color: #000000;">32</span> &nbsp;; DIB_ColorTableB<br />&nbsp; &nbsp; DIB_ColorTableG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">230</span> &nbsp;@<span style="color: #000000;">33</span> &nbsp;; DIB_ColorTableG<br />&nbsp; &nbsp; DIB_ColorTableR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">229</span> &nbsp;@<span style="color: #000000;">34</span> &nbsp;; DIB_ColorTableR<br />&nbsp; &nbsp; DIB_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">228</span> &nbsp;@<span style="color: #000000;">35</span> &nbsp;; DIB_Copy<br />&nbsp; &nbsp; DIB_CreatePalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">214</span> &nbsp;@<span style="color: #000000;">36</span> &nbsp;; DIB_CreatePalette<br />&nbsp; &nbsp; DIB_Depth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">205</span> &nbsp;@<span style="color: #000000;">37</span> &nbsp;; DIB_Depth<br />&nbsp; &nbsp; DIB_DrawToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">212</span> &nbsp;@<span style="color: #000000;">38</span> &nbsp;; DIB_DrawToDC<br />&nbsp; &nbsp; DIB_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">215</span> &nbsp;@<span style="color: #000000;">39</span> &nbsp;; DIB_Free<br />&nbsp; &nbsp; DIB_GetFromClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">227</span> &nbsp;@<span style="color: #000000;">40</span> &nbsp;; DIB_GetFromClipboard<br />&nbsp; &nbsp; DIB_Height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">207</span> &nbsp;@<span style="color: #000000;">41</span> &nbsp;; DIB_Height<br />&nbsp; &nbsp; DIB_LoadFromFilename &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">221</span> &nbsp;@<span style="color: #000000;">42</span> &nbsp;; DIB_LoadFromFilename<br />&nbsp; &nbsp; DIB_Lock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">209</span> &nbsp;@<span style="color: #000000;">43</span> &nbsp;; DIB_Lock<br />&nbsp; &nbsp; DIB_PutOnClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">224</span> &nbsp;@<span style="color: #000000;">44</span> &nbsp;; DIB_PutOnClipboard<br />&nbsp; &nbsp; DIB_ReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">213</span> &nbsp;@<span style="color: #000000;">45</span> &nbsp;; DIB_ReadRow<br />&nbsp; &nbsp; DIB_ReadRowRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">232</span> &nbsp;@<span style="color: #000000;">46</span> &nbsp;; DIB_ReadRowRGB<br />&nbsp; &nbsp; DIB_RowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">208</span> &nbsp;@<span style="color: #000000;">47</span> &nbsp;; DIB_RowBytes<br />&nbsp; &nbsp; DIB_SetColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">223</span> &nbsp;@<span style="color: #000000;">48</span> &nbsp;; DIB_SetColorCount<br />&nbsp; &nbsp; DIB_SetColorTableRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">218</span> &nbsp;@<span style="color: #000000;">49</span> &nbsp;; DIB_SetColorTableRGB<br />&nbsp; &nbsp; DIB_SetGrayColorTable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">217</span> &nbsp;@<span style="color: #000000;">50</span> &nbsp;; DIB_SetGrayColorTable<br />&nbsp; &nbsp; DIB_SetResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">202</span> &nbsp;@<span style="color: #000000;">51</span> &nbsp;; DIB_SetResolution<br />&nbsp; &nbsp; DIB_SwapRedBlue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">222</span> &nbsp;@<span style="color: #000000;">52</span> &nbsp;; DIB_SwapRedBlue<br />&nbsp; &nbsp; DIB_Unlock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">210</span> &nbsp;@<span style="color: #000000;">53</span> &nbsp;; DIB_Unlock<br />&nbsp; &nbsp; DIB_Width &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">206</span> &nbsp;@<span style="color: #000000;">54</span> &nbsp;; DIB_Width<br />&nbsp; &nbsp; DIB_WriteRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">211</span> &nbsp;@<span style="color: #000000;">55</span> &nbsp;; DIB_WriteRow<br />&nbsp; &nbsp; DIB_WriteRowChannel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">226</span> &nbsp;@<span style="color: #000000;">56</span> &nbsp;; DIB_WriteRowChannel<br />&nbsp; &nbsp; DIB_WriteToBmp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">219</span> &nbsp;@<span style="color: #000000;">57</span> &nbsp;; DIB_WriteToBmp<br />&nbsp; &nbsp; DIB_WriteToBmpFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">225</span> &nbsp;@<span style="color: #000000;">58</span> &nbsp;; DIB_WriteToBmpFile<br />&nbsp; &nbsp; DIB_WriteToJpeg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">220</span> &nbsp;@<span style="color: #000000;">59</span> &nbsp;; DIB_WriteToJpeg<br />&nbsp; &nbsp; DIB_XResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">203</span> &nbsp;@<span style="color: #000000;">60</span> &nbsp;; DIB_XResolution<br />&nbsp; &nbsp; DIB_YResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">204</span> &nbsp;@<span style="color: #000000;">61</span> &nbsp;; DIB_YResolution<br />&nbsp; &nbsp; DllMain &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">27</span> &nbsp; @<span style="color: #000000;">62</span> &nbsp;; DllMain<br />&nbsp; &nbsp; TWAIN_AbortAllPendingXfers &nbsp; &nbsp; @<span style="color: #000000;">1</span> &nbsp; &nbsp;@<span style="color: #000000;">63</span> &nbsp;; TWAIN_AbortAllPendingXfers<br />&nbsp; &nbsp; TWAIN_Acquire &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">101</span> &nbsp;@<span style="color: #000000;">64</span> &nbsp;; TWAIN_Acquire<br />&nbsp; &nbsp; TWAIN_AcquireFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">142</span> &nbsp;@<span style="color: #000000;">65</span> &nbsp;; TWAIN_AcquireFile<br />&nbsp; &nbsp; TWAIN_AcquireMemory &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">89</span> &nbsp; @<span style="color: #000000;">66</span> &nbsp;; TWAIN_AcquireMemory<br />&nbsp; &nbsp; TWAIN_AcquireMemoryCallback &nbsp; &nbsp;@<span style="color: #000000;">143</span> &nbsp;@<span style="color: #000000;">67</span> &nbsp;; TWAIN_AcquireMemoryCallback<br />&nbsp; &nbsp; TWAIN_AcquireNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">2</span> &nbsp; &nbsp;@<span style="color: #000000;">68</span> &nbsp;; TWAIN_AcquireNative<br />&nbsp; &nbsp; TWAIN_AcquireToClipboard &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">3</span> &nbsp; &nbsp;@<span style="color: #000000;">69</span> &nbsp;; TWAIN_AcquireToClipboard<br />&nbsp; &nbsp; TWAIN_AcquireToFilename &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">4</span> &nbsp; &nbsp;@<span style="color: #000000;">70</span> &nbsp;; TWAIN_AcquireToFilename<br />&nbsp; &nbsp; TWAIN_BreakModalLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">59</span> &nbsp; @<span style="color: #000000;">71</span> &nbsp;; TWAIN_BreakModalLoop<br />&nbsp; &nbsp; TWAIN_BuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">73</span> &nbsp; @<span style="color: #000000;">72</span> &nbsp;; TWAIN_BuildName<br />&nbsp; &nbsp; TWAIN_ClearError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">55</span> &nbsp; @<span style="color: #000000;">73</span> &nbsp;; TWAIN_ClearError<br />&nbsp; &nbsp; TWAIN_CloseSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">5</span> &nbsp; &nbsp;@<span style="color: #000000;">74</span> &nbsp;; TWAIN_CloseSource<br />&nbsp; &nbsp; TWAIN_CloseSourceManager &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">6</span> &nbsp; &nbsp;@<span style="color: #000000;">75</span> &nbsp;; TWAIN_CloseSourceManager<br />&nbsp; &nbsp; TWAIN_Compression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">104</span> &nbsp;@<span style="color: #000000;">76</span> &nbsp;; TWAIN_Compression<br />&nbsp; &nbsp; TWAIN_CreateDibPalette &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">7</span> &nbsp; &nbsp;@<span style="color: #000000;">77</span> &nbsp;; TWAIN_CreateDibPalette<br />&nbsp; &nbsp; TWAIN_DS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">8</span> &nbsp; &nbsp;@<span style="color: #000000;">78</span> &nbsp;; TWAIN_DS<br />&nbsp; &nbsp; TWAIN_DibDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">9</span> &nbsp; &nbsp;@<span style="color: #000000;">79</span> &nbsp;; TWAIN_DibDepth<br />&nbsp; &nbsp; TWAIN_DibHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">10</span> &nbsp; @<span style="color: #000000;">80</span> &nbsp;; TWAIN_DibHeight<br />&nbsp; &nbsp; TWAIN_DibNumColors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">11</span> &nbsp; @<span style="color: #000000;">81</span> &nbsp;; TWAIN_DibNumColors<br />&nbsp; &nbsp; TWAIN_DibReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">71</span> &nbsp; @<span style="color: #000000;">82</span> &nbsp;; TWAIN_DibReadRow<br />&nbsp; &nbsp; TWAIN_DibRowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">70</span> &nbsp; @<span style="color: #000000;">83</span> &nbsp;; TWAIN_DibRowBytes<br />&nbsp; &nbsp; TWAIN_DibWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">12</span> &nbsp; @<span style="color: #000000;">84</span> &nbsp;; TWAIN_DibWidth<br />&nbsp; &nbsp; TWAIN_DisableParent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">144</span> &nbsp;@<span style="color: #000000;">85</span> &nbsp;; TWAIN_DisableParent<br />&nbsp; &nbsp; TWAIN_DisableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">13</span> &nbsp; @<span style="color: #000000;">86</span> &nbsp;; TWAIN_DisableSource<br />&nbsp; &nbsp; TWAIN_DrawDibToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">14</span> &nbsp; @<span style="color: #000000;">87</span> &nbsp;; TWAIN_DrawDibToDC<br />&nbsp; &nbsp; TWAIN_EasyVersion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">15</span> &nbsp; @<span style="color: #000000;">88</span> &nbsp;; TWAIN_EasyVersion<br />&nbsp; &nbsp; TWAIN_EnableDuplex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">126</span> &nbsp;@<span style="color: #000000;">89</span> &nbsp;; TWAIN_EnableDuplex<br />&nbsp; &nbsp; TWAIN_EnableSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">16</span> &nbsp; @<span style="color: #000000;">90</span> &nbsp;; TWAIN_EnableSource<br />&nbsp; &nbsp; TWAIN_EndXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">53</span> &nbsp; @<span style="color: #000000;">91</span> &nbsp;; TWAIN_EndXfer<br />&nbsp; &nbsp; TWAIN_ErrorBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">51</span> &nbsp; @<span style="color: #000000;">92</span> &nbsp;; TWAIN_ErrorBox<br />&nbsp; &nbsp; TWAIN_Fix32ToFloat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">63</span> &nbsp; @<span style="color: #000000;">93</span> &nbsp;; TWAIN_Fix32ToFloat<br />&nbsp; &nbsp; TWAIN_FreeNative &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">17</span> &nbsp; @<span style="color: #000000;">94</span> &nbsp;; TWAIN_FreeNative<br />&nbsp; &nbsp; TWAIN_Get &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">78</span> &nbsp; @<span style="color: #000000;">95</span> &nbsp;; TWAIN_Get<br />&nbsp; &nbsp; TWAIN_GetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">18</span> &nbsp; @<span style="color: #000000;">96</span> &nbsp;; TWAIN_GetBitDepth<br />&nbsp; &nbsp; TWAIN_GetBuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">88</span> &nbsp; @<span style="color: #000000;">97</span> &nbsp;; TWAIN_GetBuildName<br />&nbsp; &nbsp; TWAIN_GetCapBool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">72</span> &nbsp; @<span style="color: #000000;">98</span> &nbsp;; TWAIN_GetCapBool<br />&nbsp; &nbsp; TWAIN_GetCapCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">19</span> &nbsp; @<span style="color: #000000;">99</span> &nbsp;; TWAIN_GetCapCurrent<br />&nbsp; &nbsp; TWAIN_GetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">76</span> &nbsp; @<span style="color: #000000;">100</span> ; TWAIN_GetCapFix32<br />&nbsp; &nbsp; TWAIN_GetCapUint16 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">77</span> &nbsp; @<span style="color: #000000;">101</span> ; TWAIN_GetCapUint16<br />&nbsp; &nbsp; TWAIN_GetConditionCode &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">20</span> &nbsp; @<span style="color: #000000;">102</span> ; TWAIN_GetConditionCode<br />&nbsp; &nbsp; TWAIN_GetCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">80</span> &nbsp; @<span style="color: #000000;">103</span> ; TWAIN_GetCurrent<br />&nbsp; &nbsp; TWAIN_GetCurrentResolution &nbsp; &nbsp; @<span style="color: #000000;">21</span> &nbsp; @<span style="color: #000000;">104</span> ; TWAIN_GetCurrentResolution<br />&nbsp; &nbsp; TWAIN_GetCurrentThreshold &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">75</span> &nbsp; @<span style="color: #000000;">105</span> ; TWAIN_GetCurrentThreshold<br />&nbsp; &nbsp; TWAIN_GetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">22</span> &nbsp; @<span style="color: #000000;">106</span> ; TWAIN_GetCurrentUnits<br />&nbsp; &nbsp; TWAIN_GetDefault &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">79</span> &nbsp; @<span style="color: #000000;">107</span> ; TWAIN_GetDefault<br />&nbsp; &nbsp; TWAIN_GetDefaultImageLayout &nbsp; &nbsp;@<span style="color: #000000;">149</span> &nbsp;@<span style="color: #000000;">108</span> ; TWAIN_GetDefaultImageLayout<br />&nbsp; &nbsp; TWAIN_GetDefaultSourceName &nbsp; &nbsp; @<span style="color: #000000;">140</span> &nbsp;@<span style="color: #000000;">109</span> ; TWAIN_GetDefaultSourceName<br />&nbsp; &nbsp; TWAIN_GetDisableParent &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">145</span> &nbsp;@<span style="color: #000000;">110</span> ; TWAIN_GetDisableParent<br />&nbsp; &nbsp; TWAIN_GetDuplexSupport &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">125</span> &nbsp;@<span style="color: #000000;">111</span> ; TWAIN_GetDuplexSupport<br />&nbsp; &nbsp; TWAIN_GetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">23</span> &nbsp; @<span style="color: #000000;">112</span> ; TWAIN_GetHideUI<br />&nbsp; &nbsp; TWAIN_GetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">148</span> &nbsp;@<span style="color: #000000;">113</span> ; TWAIN_GetImageLayout<br />&nbsp; &nbsp; TWAIN_GetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">133</span> &nbsp;@<span style="color: #000000;">114</span> ; TWAIN_GetJpegQuality<br />&nbsp; &nbsp; TWAIN_GetMultiTransfer &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">69</span> &nbsp; @<span style="color: #000000;">115</span> ; TWAIN_GetMultiTransfer<br />&nbsp; &nbsp; TWAIN_GetNextSourceName &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">139</span> &nbsp;@<span style="color: #000000;">116</span> ; TWAIN_GetNextSourceName<br />&nbsp; &nbsp; TWAIN_GetPixelType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">24</span> &nbsp; @<span style="color: #000000;">117</span> ; TWAIN_GetPixelType<br />&nbsp; &nbsp; TWAIN_GetResultCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">25</span> &nbsp; @<span style="color: #000000;">118</span> ; TWAIN_GetResultCode<br />&nbsp; &nbsp; TWAIN_GetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">131</span> &nbsp;@<span style="color: #000000;">119</span> ; TWAIN_GetSaveFormat<br />&nbsp; &nbsp; TWAIN_GetSourceList &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">138</span> &nbsp;@<span style="color: #000000;">120</span> ; TWAIN_GetSourceList<br />&nbsp; &nbsp; TWAIN_GetSourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">135</span> &nbsp;@<span style="color: #000000;">121</span> ; TWAIN_GetSourceName<br />&nbsp; &nbsp; TWAIN_GetYResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">64</span> &nbsp; @<span style="color: #000000;">122</span> ; TWAIN_GetYResolution<br />&nbsp; &nbsp; TWAIN_HasControllableUI &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">121</span> &nbsp;@<span style="color: #000000;">123</span> ; TWAIN_HasControllableUI<br />&nbsp; &nbsp; TWAIN_HasFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">115</span> &nbsp;@<span style="color: #000000;">124</span> ; TWAIN_HasFeeder<br />&nbsp; &nbsp; TWAIN_IsAutoFeedOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">118</span> &nbsp;@<span style="color: #000000;">125</span> ; TWAIN_IsAutoFeedOn<br />&nbsp; &nbsp; TWAIN_IsAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">26</span> &nbsp; @<span style="color: #000000;">126</span> ; TWAIN_IsAvailable<br />&nbsp; &nbsp; TWAIN_IsDuplexEnabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">127</span> &nbsp;@<span style="color: #000000;">127</span> ; TWAIN_IsDuplexEnabled<br />&nbsp; &nbsp; TWAIN_IsFeederLoaded &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">122</span> &nbsp;@<span style="color: #000000;">128</span> ; TWAIN_IsFeederLoaded<br />&nbsp; &nbsp; TWAIN_IsFeederSelected &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">116</span> &nbsp;@<span style="color: #000000;">129</span> ; TWAIN_IsFeederSelected<br />&nbsp; &nbsp; TWAIN_IsJpegAvailable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">134</span> &nbsp;@<span style="color: #000000;">130</span> ; TWAIN_IsJpegAvailable<br />&nbsp; &nbsp; TWAIN_IsTransferReady &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">146</span> &nbsp;@<span style="color: #000000;">131</span> ; TWAIN_IsTransferReady<br />&nbsp; &nbsp; TWAIN_LastErrorCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">56</span> &nbsp; @<span style="color: #000000;">132</span> ; TWAIN_LastErrorCode<br />&nbsp; &nbsp; TWAIN_LoadNativeFromFilename &nbsp; @<span style="color: #000000;">28</span> &nbsp; @<span style="color: #000000;">133</span> ; TWAIN_LoadNativeFromFilename<br />&nbsp; &nbsp; TWAIN_LoadSourceManager &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">29</span> &nbsp; @<span style="color: #000000;">134</span> ; TWAIN_LoadSourceManager<br />&nbsp; &nbsp; TWAIN_LogFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">151</span> &nbsp;@<span style="color: #000000;">135</span> ; TWAIN_LogFile<br />&nbsp; &nbsp; TWAIN_MessageHook &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">30</span> &nbsp; @<span style="color: #000000;">136</span> ; TWAIN_MessageHook<br />&nbsp; &nbsp; TWAIN_Mgr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">31</span> &nbsp; @<span style="color: #000000;">137</span> ; TWAIN_Mgr<br />&nbsp; &nbsp; TWAIN_ModalEventLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">32</span> &nbsp; @<span style="color: #000000;">138</span> ; TWAIN_ModalEventLoop<br />&nbsp; &nbsp; TWAIN_NegotiatePixelTypes &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">33</span> &nbsp; @<span style="color: #000000;">139</span> ; TWAIN_NegotiatePixelTypes<br />&nbsp; &nbsp; TWAIN_NegotiateXferCount &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">34</span> &nbsp; @<span style="color: #000000;">140</span> ; TWAIN_NegotiateXferCount<br />&nbsp; &nbsp; TWAIN_OpenDefaultSource &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">35</span> &nbsp; @<span style="color: #000000;">141</span> ; TWAIN_OpenDefaultSource<br />&nbsp; &nbsp; TWAIN_OpenSource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">137</span> &nbsp;@<span style="color: #000000;">142</span> ; TWAIN_OpenSource<br />&nbsp; &nbsp; TWAIN_OpenSourceManager &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">36</span> &nbsp; @<span style="color: #000000;">143</span> ; TWAIN_OpenSourceManager<br />&nbsp; &nbsp; TWAIN_PixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">110</span> &nbsp;@<span style="color: #000000;">144</span> ; TWAIN_PixelFlavor<br />&nbsp; &nbsp; TWAIN_PlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">108</span> &nbsp;@<span style="color: #000000;">145</span> ; TWAIN_PlanarChunky<br />&nbsp; &nbsp; TWAIN_RegisterApp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">37</span> &nbsp; @<span style="color: #000000;">146</span> ; TWAIN_RegisterApp<br />&nbsp; &nbsp; TWAIN_ReportLastError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">50</span> &nbsp; @<span style="color: #000000;">147</span> ; TWAIN_ReportLastError<br />&nbsp; &nbsp; TWAIN_Reset &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">82</span> &nbsp; @<span style="color: #000000;">148</span> ; TWAIN_Reset<br />&nbsp; &nbsp; TWAIN_ResetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">150</span> &nbsp;@<span style="color: #000000;">149</span> ; TWAIN_ResetImageLayout<br />&nbsp; &nbsp; TWAIN_SelectFeeder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">117</span> &nbsp;@<span style="color: #000000;">150</span> ; TWAIN_SelectFeeder<br />&nbsp; &nbsp; TWAIN_SelectImageSource &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">38</span> &nbsp; @<span style="color: #000000;">151</span> ; TWAIN_SelectImageSource<br />&nbsp; &nbsp; TWAIN_SelfTest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">147</span> &nbsp;@<span style="color: #000000;">152</span> ; TWAIN_SelfTest<br />&nbsp; &nbsp; TWAIN_Set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">81</span> &nbsp; @<span style="color: #000000;">153</span> ; TWAIN_Set<br />&nbsp; &nbsp; TWAIN_SetAppTitle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">152</span> &nbsp;@<span style="color: #000000;">154</span> ; TWAIN_SetAppTitle<br />&nbsp; &nbsp; TWAIN_SetAutoBright &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">83</span> &nbsp; @<span style="color: #000000;">155</span> ; TWAIN_SetAutoBright<br />&nbsp; &nbsp; TWAIN_SetAutoFeed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">119</span> &nbsp;@<span style="color: #000000;">156</span> ; TWAIN_SetAutoFeed<br />&nbsp; &nbsp; TWAIN_SetBitDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">39</span> &nbsp; @<span style="color: #000000;">157</span> ; TWAIN_SetBitDepth<br />&nbsp; &nbsp; TWAIN_SetBrightness &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">61</span> &nbsp; @<span style="color: #000000;">158</span> ; TWAIN_SetBrightness<br />&nbsp; &nbsp; TWAIN_SetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">87</span> &nbsp; @<span style="color: #000000;">159</span> ; TWAIN_SetCapFix32<br />&nbsp; &nbsp; TWAIN_SetCapFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">128</span> &nbsp;@<span style="color: #000000;">160</span> ; TWAIN_SetCapFix32R<br />&nbsp; &nbsp; TWAIN_SetCapOneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">40</span> &nbsp; @<span style="color: #000000;">161</span> ; TWAIN_SetCapOneValue<br />&nbsp; &nbsp; TWAIN_SetCompression &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">105</span> &nbsp;@<span style="color: #000000;">162</span> ; TWAIN_SetCompression<br />&nbsp; &nbsp; TWAIN_SetContrast &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">60</span> &nbsp; @<span style="color: #000000;">163</span> ; TWAIN_SetContrast<br />&nbsp; &nbsp; TWAIN_SetCurrentPixelType &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">41</span> &nbsp; @<span style="color: #000000;">164</span> ; TWAIN_SetCurrentPixelType<br />&nbsp; &nbsp; TWAIN_SetCurrentResolution &nbsp; &nbsp; @<span style="color: #000000;">42</span> &nbsp; @<span style="color: #000000;">165</span> ; TWAIN_SetCurrentResolution<br />&nbsp; &nbsp; TWAIN_SetCurrentUnits &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">43</span> &nbsp; @<span style="color: #000000;">166</span> ; TWAIN_SetCurrentUnits<br />&nbsp; &nbsp; TWAIN_SetGamma &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">102</span> &nbsp;@<span style="color: #000000;">167</span> ; TWAIN_SetGamma<br />&nbsp; &nbsp; TWAIN_SetHideUI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">44</span> &nbsp; @<span style="color: #000000;">168</span> ; TWAIN_SetHideUI<br />&nbsp; &nbsp; TWAIN_SetHighlight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">86</span> &nbsp; @<span style="color: #000000;">169</span> ; TWAIN_SetHighlight<br />&nbsp; &nbsp; TWAIN_SetImageLayout &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">113</span> &nbsp;@<span style="color: #000000;">170</span> ; TWAIN_SetImageLayout<br />&nbsp; &nbsp; TWAIN_SetIndicators &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">120</span> &nbsp;@<span style="color: #000000;">171</span> ; TWAIN_SetIndicators<br />&nbsp; &nbsp; TWAIN_SetJpegQuality &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">132</span> &nbsp;@<span style="color: #000000;">172</span> ; TWAIN_SetJpegQuality<br />&nbsp; &nbsp; TWAIN_SetLightPath &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">103</span> &nbsp;@<span style="color: #000000;">173</span> ; TWAIN_SetLightPath<br />&nbsp; &nbsp; TWAIN_SetMultiTransfer &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">68</span> &nbsp; @<span style="color: #000000;">174</span> ; TWAIN_SetMultiTransfer<br />&nbsp; &nbsp; TWAIN_SetPaperSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">84</span> &nbsp; @<span style="color: #000000;">175</span> ; TWAIN_SetPaperSize<br />&nbsp; &nbsp; TWAIN_SetPixelFlavor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">111</span> &nbsp;@<span style="color: #000000;">176</span> ; TWAIN_SetPixelFlavor<br />&nbsp; &nbsp; TWAIN_SetPlanarChunky &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">109</span> &nbsp;@<span style="color: #000000;">177</span> ; TWAIN_SetPlanarChunky<br />&nbsp; &nbsp; TWAIN_SetSaveFormat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">130</span> &nbsp;@<span style="color: #000000;">178</span> ; TWAIN_SetSaveFormat<br />&nbsp; &nbsp; TWAIN_SetShadow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">85</span> &nbsp; @<span style="color: #000000;">179</span> ; TWAIN_SetShadow<br />&nbsp; &nbsp; TWAIN_SetThreshold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">74</span> &nbsp; @<span style="color: #000000;">180</span> ; TWAIN_SetThreshold<br />&nbsp; &nbsp; TWAIN_SetTiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">107</span> &nbsp;@<span style="color: #000000;">181</span> ; TWAIN_SetTiled<br />&nbsp; &nbsp; TWAIN_SetXResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">123</span> &nbsp;@<span style="color: #000000;">182</span> ; TWAIN_SetXResolution<br />&nbsp; &nbsp; TWAIN_SetXferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">66</span> &nbsp; @<span style="color: #000000;">183</span> ; TWAIN_SetXferMech<br />&nbsp; &nbsp; TWAIN_SetYResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">124</span> &nbsp;@<span style="color: #000000;">184</span> ; TWAIN_SetYResolution<br />&nbsp; &nbsp; TWAIN_SourceName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">136</span> &nbsp;@<span style="color: #000000;">185</span> ; TWAIN_SourceName<br />&nbsp; &nbsp; TWAIN_State &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">45</span> &nbsp; @<span style="color: #000000;">186</span> ; TWAIN_State<br />&nbsp; &nbsp; TWAIN_SupportsFileXfer &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">141</span> &nbsp;@<span style="color: #000000;">187</span> ; TWAIN_SupportsFileXfer<br />&nbsp; &nbsp; TWAIN_SuppressErrorMessages &nbsp; &nbsp;@<span style="color: #000000;">52</span> &nbsp; @<span style="color: #000000;">188</span> ; TWAIN_SuppressErrorMessages<br />&nbsp; &nbsp; TWAIN_Testing123 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">67</span> &nbsp; @<span style="color: #000000;">189</span> ; TWAIN_Testing123<br />&nbsp; &nbsp; TWAIN_Tiled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">106</span> &nbsp;@<span style="color: #000000;">190</span> ; TWAIN_Tiled<br />&nbsp; &nbsp; TWAIN_ToFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">62</span> &nbsp; @<span style="color: #000000;">191</span> ; TWAIN_ToFix32<br />&nbsp; &nbsp; TWAIN_ToFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">129</span> &nbsp;@<span style="color: #000000;">192</span> ; TWAIN_ToFix32R<br />&nbsp; &nbsp; TWAIN_UnloadSourceManager &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">46</span> &nbsp; @<span style="color: #000000;">193</span> ; TWAIN_UnloadSourceManager<br />&nbsp; &nbsp; TWAIN_UserClosedSource &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">57</span> &nbsp; @<span style="color: #000000;">194</span> ; TWAIN_UserClosedSource<br />&nbsp; &nbsp; TWAIN_WaitForNativeXfer &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">54</span> &nbsp; @<span style="color: #000000;">195</span> ; TWAIN_WaitForNativeXfer<br />&nbsp; &nbsp; TWAIN_WriteNativeToFilename &nbsp; &nbsp;@<span style="color: #000000;">49</span> &nbsp; @<span style="color: #000000;">196</span> ; TWAIN_WriteNativeToFilename<br />&nbsp; &nbsp; TWAIN_XferMech &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">65</span> &nbsp; @<span style="color: #000000;">197</span> ; TWAIN_XferMech<br /><br /><br />&nbsp;</div>[/code:1lf3na5p]
Compilando TSCAN MVC2010
Este es el archivo eztwain.h [code=fw:3tg6nnig]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// EZTWAIN.H - interface to Easy TWAIN library</span><br /><span style="color: #B900B9;">// Copyright (C) 1999-2001 by Dosadi. &nbsp;All Rights Reserved.</span><br /><br /><span style="color: #B900B9;">/*---------------------------------------------------------------------<br />Licensing Terms - EZTWAIN 2.70<br /><br />This is a legal agreement between you (or your employer if you are an<br />employee), and Dosadi (a company in Washington State, U.S.A.)<br />By using this EZTWAIN code ('EZTWAIN'), you and Dosadi agree as follows:<br /><br />&nbsp; 1. EZTWAIN is and shall remain the property of Dosadi.<br /><br />&nbsp; 2. Dosadi grants you a nonexclusive, world-wide, royalty-free<br />&nbsp; license to use this code to create Windows applications for personal,<br />&nbsp; educational, or not-for-profit use.<br /><br />&nbsp; 3. You agree to redistribute EZTWAIN to others only as an integral<br />&nbsp; component of a software or software/hardware system, and then<br />&nbsp; only to other members of an educational or not-for-profit organization<br />&nbsp; to which you belong.<br /><br />&nbsp; 4. You agree to indemnify and hold Dosadi, its owners, officers and employees<br />&nbsp; harmless from any liabilities arising out of your use of EZTWAIN.<br /><br />&nbsp; 5. You may modify EZTWAIN. &nbsp;Any such modified EZTWAIN is subject to this<br />&nbsp; agreement just as the original is.<br /><br />&nbsp; 6. Dosadi reserves all rights not specifically granted in this agreement.<br /><br />&nbsp; 7. EZTWAIN is provided "as is", and Dosadi makes no warranty of any kind<br />&nbsp; regarding EZTWAIN.<br /><br />&nbsp; 8. Where this agreement is in conflict with applicable law, it shall be<br />&nbsp; construed as having been written to conform to such law while<br />&nbsp; while giving priority to the rights of Dosadi.<br /><br />---------------------------------------------------------------------*/</span><br /><br /><span style="color: #B900B9;">// Download from: &nbsp; &nbsp;www.dosadi.com</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Support contact: &nbsp;support@dosadi.com</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// To license the EZTWAIN code for commercial use within your company</span><br /><span style="color: #B900B9;">// or in a product, send e-mail to:</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; <!-- e --><a href="mailto:sales@dosadi.com">sales@dosadi.com</a><!-- e --></span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// >>> Maintenance history is at the end of eztwain.c <<<</span><br /><br /><br />#ifndef EZTWAIN_H<br /><span style="color: #00D7D7;">#define</span> EZTWAIN_H<br /><br />#ifndef _WINDOWS_<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br />#endif<br /><br />#ifdef __cplusplus<br />extern <span style="color: #ff0000;">"C"</span> <span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/* Assume C declarations for C++ */</span><br />#endif&nbsp; <span style="color: #B900B9;">/* __cplusplus */</span><br /><br />#ifndef EZTAPI<br />&nbsp; #ifdef _WIN32<br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> EZTAPI WINAPI<br />&nbsp; #else<br />&nbsp; &nbsp; <span style="color: #00D7D7;">#define</span> EZTAPI FAR PASCAL<br />&nbsp; #endif<br />#endif<br /><br /><span style="color: #B900B9;">//--------- Test Call</span><br /><br />HANDLE EZTAPI TWAIN_Testing123<span style="color: #000000;">&#40;</span>LPCSTR pz, int n, HANDLE h, double d, unsigned u<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Displays a dialog box with the parameter values in it. &nbsp;Use this to</span><br /><span style="color: #B900B9;">// test that you can call EZTWAIN and pass parameters correctly.</span><br /><span style="color: #B900B9;">// It returns the value of the HANDLE h parameter.</span><br /><br /><span style="color: #B900B9;">//--------- Top-Level Calls</span><br /><br />HANDLE EZTAPI TWAIN_Acquire<span style="color: #000000;">&#40;</span>HWND hwndApp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Acquires a single image, from the currently selected Data Source, using</span><br /><span style="color: #B900B9;">// EZTWAIN's preferred transfer mode. &nbsp;*Currently the preferred mode is NATIVE*</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// The minimal use of EZTWAIN.DLL is to call this function with a 0 argument.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// The return value is a handle to global memory containing a DIB -</span><br /><span style="color: #B900B9;">// a Device-Independent Bitmap. &nbsp;Numerous EZTWAIN DIB_xxx functions can</span><br /><span style="color: #B900B9;">// be used to examine, modify, and save these DIB images. &nbsp;Remember to</span><br /><span style="color: #B900B9;">// use TWAIN_FreeNative to free each DIB when you are done with it!</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Normally only one image is acquired per call: All Acquire functions shut</span><br /><span style="color: #B900B9;">// down TWAIN before returning. &nbsp;Use TWAIN_SetMultiTransfer to change this.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// By default, the default data source (DS) is opened, displays its dialog,</span><br /><span style="color: #B900B9;">// and determines all the parameters of the acquisition and transfer.</span><br /><span style="color: #B900B9;">// If you want to (try to) hide the DS dialog, see TWAIN_SetHideUI.</span><br /><span style="color: #B900B9;">// To set acquisition parameters, you need to do something like this:</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; TWAIN_OpenDefaultSource() -or- TWAIN_OpenSource(sourceName)</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; TWAIN_Set* &nbsp; &nbsp; &nbsp; &nbsp;- one or more capability-setting functions</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; hdib = TWAIN_Acquire(hwnd)</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; if (hdib) { ... process image, TWAIN_FreeNative(hdib); }</span><br /><br />void EZTAPI TWAIN_FreeNative<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Release the memory allocated to a DIB, as returned by</span><br /><span style="color: #B900B9;">// TWAIN_AcquireNative. (If you are coding in C or C++, this is just a call</span><br /><span style="color: #B900B9;">// to GlobalFree.)</span><br /><span style="color: #B900B9;">// If you use TWAIN_AcquireNative and don't free the returned image handle,</span><br /><span style="color: #B900B9;">// it stays around taking up Windows (virtual) memory until your application</span><br /><span style="color: #B900B9;">// terminates.</span><br /><br />int EZTAPI TWAIN_SelectImageSource<span style="color: #000000;">&#40;</span>HWND hwnd<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// This is the routine to call when the user chooses the "Select Source..."</span><br /><span style="color: #B900B9;">// menu command from your application's File menu.</span><br /><span style="color: #B900B9;">// In the standard implementation of "Select Source...", your application</span><br /><span style="color: #B900B9;">// doesn't need to do anything except make this one call.</span><br /><span style="color: #B900B9;">// Note: If only one TWAIN device is installed on a system, it is selected</span><br /><span style="color: #B900B9;">// automatically, so there is no need for the user to do Select Source.</span><br /><span style="color: #B900B9;">// You should not require your users to do Select Source before Acquire.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// This function posts the Source Manager's Select Source dialog box.</span><br /><span style="color: #B900B9;">// It returns after the user either OK's or CANCEL's that dialog.</span><br /><span style="color: #B900B9;">// A return of 1 indicates OK, 0 indicates one of the following:</span><br /><span style="color: #B900B9;">// &nbsp; a) The user cancelled the dialog</span><br /><span style="color: #B900B9;">// &nbsp; b) The Source Manager found no data sources installed</span><br /><span style="color: #B900B9;">// &nbsp; c) There was a failure before the Select Source dialog could be posted</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// If you want to be meticulous, disable your "Acquire" and "Select Source"</span><br /><span style="color: #B900B9;">// menu items or buttons if TWAIN_IsAvailable() returns 0 - see below.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// To enumerate the available data sources, see:</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; TWAIN_GetSourceList and TWAIN_GetNextSourceName</span><br /><br />HANDLE EZTAPI TWAIN_AcquireNative<span style="color: #000000;">&#40;</span>HWND hwndApp, unsigned wPixTypes<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Acquires a single image, from the currently selected Data Source, using</span><br /><span style="color: #B900B9;">// Native Transfer Mode. It waits until the source closes (if it's modal) or</span><br /><span style="color: #B900B9;">// forces the source closed if not. &nbsp;The return value is a handle to the</span><br /><span style="color: #B900B9;">// acquired image. &nbsp;Only one image can be acquired per call.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// The return value is a handle to global memory containing a DIB -</span><br /><span style="color: #B900B9;">// a Device-Independent Bitmap. &nbsp;Numerous EZTWAIN functions can</span><br /><span style="color: #B900B9;">// be used to examine, modify, and save these DIBs. &nbsp;Remember to</span><br /><span style="color: #B900B9;">// use TWAIN_FreeNative to free each DIB when you are done with it,</span><br /><span style="color: #B900B9;">// these things eat up a lot of memory.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// For the 2nd parameter, you can OR or add together the following</span><br /><span style="color: #B900B9;">// masks to indicate what kind(s) of image you prefer to receive.</span><br /><span style="color: #B900B9;">// Caution: Some TWAIN devices will ignore your preference here.</span><br /><span style="color: #B900B9;">// -- If you care, check the parameters of the DIB.</span><br /><br /><span style="color: #00D7D7;">#define</span> TWAIN_BW&nbsp; &nbsp; &nbsp; &nbsp; 0x0001&nbsp; <span style="color: #B900B9;">// 1-bit per pixel, B&W</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_GRAY&nbsp; &nbsp; &nbsp; 0x0002&nbsp; <span style="color: #B900B9;">// 1,4, or 8-bit grayscale</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_RGB&nbsp; &nbsp;&nbsp; &nbsp; 0x0004&nbsp; <span style="color: #B900B9;">// 24-bit RGB color</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_PALETTE&nbsp; &nbsp;0x0008&nbsp; <span style="color: #B900B9;">// 1,4, or 8-bit palette</span><br /><br /><span style="color: #00D7D7;">#define</span> TWAIN_ANYTYPE&nbsp; &nbsp;0x0000&nbsp; <span style="color: #B900B9;">// any of the above (use by itself)</span><br /><br />int EZTAPI TWAIN_AcquireToClipboard<span style="color: #000000;">&#40;</span>HWND hwndApp, unsigned wPixTypes<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Like AcquireNative, but puts the resulting image, if any, into the</span><br /><span style="color: #B900B9;">// system clipboard as a CF_DIB item. If this call fails, the clipboard is</span><br /><span style="color: #B900B9;">// either empty or retains its previous content.</span><br /><span style="color: #B900B9;">// Returns TRUE (1) for success, FALSE (0) for failure.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Useful for environments like Visual Basic where it is hard to make direct</span><br /><span style="color: #B900B9;">// use of a DIB handle. &nbsp;In fact, TWAIN_AcquireToClipboard uses</span><br /><span style="color: #B900B9;">// TWAIN_AcquireNative for all the hard work.</span><br /><br />HANDLE EZTAPI TWAIN_AcquireMemory<span style="color: #000000;">&#40;</span>HWND hwnd<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Like TWAIN_Acquire, but always specifies a 'memory mode' transfer.</span><br /><br />typedef BOOL <span style="color: #000000;">&#40;</span>WINAPI *MEMXFERCALLBACK<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#40;</span>LPVOID <span style="color: #00C800;">data</span><span style="color: #000000;">&#41;</span>;<br /><br />BOOL EZTAPI TWAIN_AcquireMemoryCallback<span style="color: #000000;">&#40;</span>HWND hwnd, MEMXFERCALLBACK cb, LPVOID <span style="color: #00C800;">data</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Like TWAIN_AcquireMemory, but you provide a call-back function.</span><br /><span style="color: #B900B9;">// The call-back is called when the transfer is ready, and is responsible for</span><br /><span style="color: #B900B9;">// setting up the transfer, transferring the data, and doing clean-up.</span><br /><span style="color: #B900B9;">// See the function MemoryXferHandler in EZTWAIN.C for an example.</span><br /><br />int EZTAPI TWAIN_AcquireToFilename<span style="color: #000000;">&#40;</span>HWND hwndApp, LPCSTR pszFile<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Acquire an image and write it to a file using the current Save Format,</span><br /><span style="color: #B900B9;">// (See TWAIN_SetSaveFormat) which by default is BMP.</span><br /><span style="color: #B900B9;">// If pszFile is NULL or an empty string, the user is prompted for</span><br /><span style="color: #B900B9;">// the file name *and format* in a standard Save File dialog,</span><br /><span style="color: #B900B9;">// See also TWAIN_AcquireFile below.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Return values:</span><br /><span style="color: #B900B9;">// &nbsp;0 &nbsp;success.</span><br /><span style="color: #B900B9;">// -1 &nbsp;the Acquire failed.</span><br /><span style="color: #B900B9;">// -2 &nbsp;file open error (invalid path or name, or access denied)</span><br /><span style="color: #B900B9;">// -3 &nbsp;invalid DIB, or image incompatible with file format, or...</span><br /><span style="color: #B900B9;">// -4 &nbsp;writing failed, possibly output device is full.</span><br /><span style="color: #B900B9;">// -10 user cancelled File Save dialog</span><br /><br />int EZTAPI TWAIN_AcquireFile<span style="color: #000000;">&#40;</span>HWND hwndApp, int nFF, LPCSTR pszFile<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Acquire an image directly to a file, using the given format and filepath.</span><br /><span style="color: #B900B9;">// * Unlike AcquireToFilename, this function uses TWAIN File Transfer Mode.</span><br /><span style="color: #B900B9;">// * The image is written to disk by the Data Source, not by EZTWAIN.</span><br /><span style="color: #B900B9;">// * Warning: This mode is -not- supported by all TWAIN devices.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Use TWAIN_SupportsFileXfer to see if the open DS supports File Transfer.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// You can use TWAIN_Get(ICAP_IMAGEFILEFORMAT) to get an enumeration of</span><br /><span style="color: #B900B9;">// the available file formats, and CONTAINER_ContainsValue to check for</span><br /><span style="color: #B900B9;">// a particular format you are interested in.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// nFF can be any file format supported by the DS, see the TWFF_* constants</span><br /><span style="color: #B900B9;">// in twain.h for the list of allowed formats. &nbsp;A compliant DS should</span><br /><span style="color: #B900B9;">// at least support TWFF_BMP, but as usual there are no guarantees.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// If pszFile is NULL or an empty string, the user is prompted for</span><br /><span style="color: #B900B9;">// the file name in a standard Save File dialog.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Return values (N.B. A Boolean, not an error code like AcquireToFilename!)</span><br /><span style="color: #B900B9;">// &nbsp;TRUE(1) for success</span><br /><span style="color: #B900B9;">// &nbsp;FALSE(0) for failure - use GetResultCode/GetConditionCode for details.</span><br /><span style="color: #B900B9;">// &nbsp;If the user cancels the Save File dialog, the result code is TWRC_CANCEL</span><br /><br /><br /><span style="color: #B900B9;">//--------- Basic TWAIN Inquiries</span><br /><br />int EZTAPI TWAIN_IsAvailable<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Call this function any time to find out if TWAIN is installed on the</span><br /><span style="color: #B900B9;">// system. &nbsp;It takes a little time on the first call, after that it's fast,</span><br /><span style="color: #B900B9;">// just testing a flag. &nbsp;It returns 1 if the TWAIN Source Manager is</span><br /><span style="color: #B900B9;">// installed & can be loaded, 0 otherwise.</span><br /><br /><br />int EZTAPI TWAIN_EasyVersion<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Returns the version number of EZTWAIN.DLL, multiplied by 100.</span><br /><span style="color: #B900B9;">// So e.g. version 2.01 will return 201 from this call.</span><br /><br />int EZTAPI TWAIN_State<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Returns the TWAIN Protocol State per the spec.</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_PRESESSION&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source manager not loaded</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_SM_LOADED&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source manager loaded</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_SM_OPEN&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">3</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source manager open</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_SOURCE_OPEN&nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #000000;">4</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source open but not enabled</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_SOURCE_ENABLED&nbsp; &nbsp; <span style="color: #000000;">5</span>&nbsp; &nbsp;<span style="color: #B900B9;">// source enabled to acquire</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_TRANSFER_READY&nbsp; &nbsp; <span style="color: #000000;">6</span>&nbsp; &nbsp;<span style="color: #B900B9;">// image ready to transfer</span><br /><span style="color: #00D7D7;">#define</span> TWAIN_TRANSFERRING&nbsp; &nbsp; &nbsp; <span style="color: #000000;">7</span>&nbsp; &nbsp;<span style="color: #B900B9;">// image in transit</span><br /><br />char* EZTAPI TWAIN_SourceName<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Returns a pointer to the name of the currently or last opened source.</span><br /><span style="color: #B900B9;">// Note: Even on NT or other Unicode-enabled platform, this is still</span><br /><span style="color: #B900B9;">// a pointer to an 8-bit ASCII string.</span><br /><br />void EZTAPI TWAIN_GetSourceName<span style="color: #000000;">&#40;</span>LPSTR pzName<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Like TWAIN_SourceName, but copies current/last source name into pzName.</span><br /><span style="color: #B900B9;">// Please allocate enough space - 256 char at least.</span><br /><br /><br /><span style="color: #B900B9;">//--------- DIB handling utilities ---------</span><br /><br />void &nbsp; &nbsp; EZTAPI DIB_SetResolution<span style="color: #000000;">&#40;</span>HANDLE hdib, double xdpi, double ydpi<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Sets the horizontal and vertical resolution of the DIB.</span><br />double &nbsp; EZTAPI DIB_XResolution<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Horizontal (x) resolution of DIB, in DPI (dots per inch)</span><br />double &nbsp; EZTAPI DIB_YResolution<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Vertical (y) resolution of DIB, in DPI (dots per inch)</span><br />int &nbsp; &nbsp; &nbsp;EZTAPI DIB_Depth<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Depth of DIB, in bits i.e. bits per pixel.</span><br />int &nbsp; &nbsp; &nbsp;EZTAPI DIB_Width<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Width of DIB, in pixels (columns)</span><br />int &nbsp; &nbsp; &nbsp;EZTAPI DIB_Height<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Height of DIB, in lines (rows)</span><br />size_t &nbsp; EZTAPI DIB_RowBytes<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Number of bytes needed to store one row of the DIB.</span><br />int &nbsp; &nbsp; &nbsp;EZTAPI DIB_ColorCount<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Number of colors in color table of DIB</span><br /><br />BITMAPINFOHEADER* EZTAPI DIB_Lock<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Lock the given DIB handle and return a pointer to the header structure.</span><br /><span style="color: #B900B9;">// Technically, increments the lock count of hdib and returns its address.</span><br />void &nbsp; &nbsp; EZTAPI DIB_Unlock<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Unlock the given DIB handle (decrement the lock count.)</span><br /><span style="color: #B900B9;">// When the number of Unlocks = the number of Locks, any pointers</span><br /><span style="color: #B900B9;">// into the DIB should be presumed invalid.</span><br /><br />void &nbsp; &nbsp; EZTAPI DIB_ReadRow<span style="color: #000000;">&#40;</span>HANDLE hdib, int nRow, BYTE* prow<span style="color: #000000;">&#41;</span>;<br />void &nbsp; &nbsp; EZTAPI DIB_ReadRowRGB<span style="color: #000000;">&#40;</span>HANDLE hdib, int nRow, BYTE* prow<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Read row n of the given DIB into buffer at prow.</span><br /><span style="color: #B900B9;">// Caller is responsible for ensuring buffer is large enough.</span><br /><span style="color: #B900B9;">// Row 0 is the *top* row of the image, as it would be displayed.</span><br /><span style="color: #B900B9;">// The first variant reads the data as-is from the DIB, including</span><br /><span style="color: #B900B9;">// BGR pixels from 24-bit DIBs, or packed 1-bit, 4-bit or 8-bit.</span><br /><span style="color: #B900B9;">// The RGB variant unpacks every DIB pixel into 3-byte RGB pixels.</span><br /><br />void &nbsp; &nbsp; EZTAPI DIB_WriteRow<span style="color: #000000;">&#40;</span>HANDLE hdib, int r, const BYTE* pdata<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Write data from buffer into row r of the given DIB.</span><br /><span style="color: #B900B9;">// Caller is responsible for ensuring buffer and row exist, etc.</span><br />void &nbsp; &nbsp; EZTAPI DIB_WriteRowChannel<span style="color: #000000;">&#40;</span>HANDLE hdib, int r, const BYTE* pdata, int nChannel<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Write data from buffer into one color channel of row r of the given DIB.</span><br /><span style="color: #B900B9;">// Channels are: 0=Red, 1=Green, 2=Blue. &nbsp;If the DIB depth < 24, acts like WriteRow.</span><br /><br />HANDLE &nbsp; EZTAPI DIB_Allocate<span style="color: #000000;">&#40;</span>int nDepth, int nWidth, int nHeight<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Create a DIB with the given dimensions. &nbsp;Resolution is set to 0. &nbsp;A default</span><br /><span style="color: #B900B9;">// color table is provided if depth <= 8.</span><br /><span style="color: #B900B9;">// The image data is uninitialized i.e. garbage.</span><br /><br />void EZTAPI DIB_Free<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Release the storage of the DIB.</span><br /><br />HANDLE EZTAPI DIB_Copy<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Create and return a byte-for-byte copy of a DIB.</span><br /><br />void &nbsp; &nbsp; EZTAPI DIB_SetGrayColorTable<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Fill the DIB's color table with a gray ramp - so color 0 is black, and</span><br /><span style="color: #B900B9;">// the last color (largest pixel value) is white. &nbsp;No effect if depth > 8.</span><br />void &nbsp; &nbsp; EZTAPI DIB_SetColorTableRGB<span style="color: #000000;">&#40;</span>HANDLE hdib, int i, int R, int G, int B<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set the ith entry in the DIB's color table to the specified color.</span><br /><span style="color: #B900B9;">// R G and B range from 0 to 255.</span><br /><br />int EZTAPI DIB_ColorTableR<span style="color: #000000;">&#40;</span>HANDLE hdib, int i<span style="color: #000000;">&#41;</span>;<br />int EZTAPI DIB_ColorTableG<span style="color: #000000;">&#40;</span>HANDLE hdib, int i<span style="color: #000000;">&#41;</span>;<br />int EZTAPI DIB_ColorTableB<span style="color: #000000;">&#40;</span>HANDLE hdib, int i<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the R,G, or B component of the ith color table entry of a DIB.</span><br /><span style="color: #B900B9;">// If i < 0 or >= DIB_ColorCount(hdib), returns 0.</span><br /><br />void EZTAPI DIB_SwapRedBlue<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// For 24-bit DIB only, exchange R and B components of each pixel.</span><br /><br />HPALETTE EZTAPI DIB_CreatePalette<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Create and return a logical palette to be used for drawing the DIB.</span><br /><span style="color: #B900B9;">// For 1, 4, and 8-bit DIBs the palette contains the DIB color table.</span><br /><span style="color: #B900B9;">// For 24-bit DIBs, a default halftone palette is returned.</span><br /><br />void EZTAPI DIB_SetColorCount<span style="color: #000000;">&#40;</span>HANDLE hdib, int n<span style="color: #000000;">&#41;</span>;<br /><br /><br />void &nbsp; &nbsp; EZTAPI DIB_DrawToDC<span style="color: #000000;">&#40;</span>HANDLE hdib, &nbsp; <span style="color: #B900B9;">// DIB handle</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HDC hDC, &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// destination device context</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int dx, int dy,<span style="color: #B900B9;">// destination (x,y)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int w, int h, &nbsp;<span style="color: #B900B9;">// width and height</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int sx, int sy <span style="color: #B900B9;">// source (x,y) in DIB</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Draws DIB on a device context.</span><br /><span style="color: #B900B9;">// You should call CreateDibPalette, select that palette</span><br /><span style="color: #B900B9;">// into the DC, and do a RealizePalette(hDC) first.</span><br /><br />int EZTAPI DIB_PutOnClipboard<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Place DIB on the clipboard (format CF_DIB)</span><br /><span style="color: #B900B9;">// ** IMPORTANT ** After this call, the clipboard owns the</span><br /><span style="color: #B900B9;">// DIB and you do not - you should erase your copy of the handle</span><br /><span style="color: #B900B9;">// and do not attempt any subsequent operations on it.</span><br /><span style="color: #B900B9;">// Treat this call just as you would a call to DIB_Free.</span><br /><span style="color: #B900B9;">// Returns 1 = success, 0 = failure.</span><br /><br />HANDLE EZTAPI DIB_GetFromClipboard<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><br />int EZTAPI DIB_WriteToBmp<span style="color: #000000;">&#40;</span>HANDLE hdib, LPCSTR pszFile<span style="color: #000000;">&#41;</span>;<br />int EZTAPI DIB_WriteToBmpFile<span style="color: #000000;">&#40;</span>HANDLE hdib, HFILE fh<span style="color: #000000;">&#41;</span>;<br />int EZTAPI DIB_WriteToJpeg<span style="color: #000000;">&#40;</span>HANDLE hdib, LPCSTR pszFile<span style="color: #000000;">&#41;</span>;<br /><br />HANDLE EZTAPI DIB_LoadFromFilename<span style="color: #000000;">&#40;</span>LPCSTR pszFile<span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #B900B9;">//--- OBSOLETE: The following functions are for backward compatibility only:</span><br />int EZTAPI TWAIN_DibDepth<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_DibWidth<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_DibHeight<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_DibNumColors<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br />long EZTAPI TWAIN_DibRowBytes<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br />void EZTAPI TWAIN_DibReadRow<span style="color: #000000;">&#40;</span>HANDLE hdib, int nRow, BYTE* prow<span style="color: #000000;">&#41;</span>;<br />HPALETTE EZTAPI TWAIN_CreateDibPalette<span style="color: #000000;">&#40;</span>HANDLE hdib<span style="color: #000000;">&#41;</span>;<br />void EZTAPI TWAIN_DrawDibToDC<span style="color: #000000;">&#40;</span>HDC hDC,int dx,int dy,int w,int h,HANDLE hdib,int sx, int sy<span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #B900B9;">//--------- File Read/Write</span><br /><br /><span style="color: #B900B9;">//---- File Formats</span><br /><span style="color: #00D7D7;">#define</span> TWFF_BMP &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> TWFF_JFIF &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">4</span><br /><br />int EZTAPI TWAIN_IsJpegAvailable<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return TRUE (1) if JPEG/JFIF image files can be read and written.</span><br /><span style="color: #B900B9;">// Returns 0 if JPEG support has not been installed.</span><br /><br />int EZTAPI TWAIN_SetSaveFormat<span style="color: #000000;">&#40;</span>int nFF<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Select the file format for subsequent calls to WriteNativeToFilename</span><br /><span style="color: #B900B9;">// Displays a warning message if the format is not available.</span><br /><span style="color: #B900B9;">// Returns TRUE (1) if ok, FALSE (0) if format is invalid or not available.</span><br /><span style="color: #B900B9;">// &nbsp;nFF &nbsp;type &nbsp; &nbsp;ext &nbsp; &nbsp;notes</span><br /><span style="color: #B900B9;">// &nbsp; 2 &nbsp; BMP &nbsp; &nbsp;.bmp &nbsp; &nbsp;uncompressed by default</span><br /><span style="color: #B900B9;">// &nbsp; 4 &nbsp; JFIF &nbsp; .jpg &nbsp; &nbsp;JPEG File Interchange Format 1.02</span><br /><br />int EZTAPI TWAIN_GetSaveFormat<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the currently selected save format.</span><br /><br />void EZTAPI TWAIN_SetJpegQuality<span style="color: #000000;">&#40;</span>int nQ<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_GetJpegQuality<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set the 'quality' of subsequently saved JPEG/JFIF image files.</span><br /><span style="color: #B900B9;">// nQ = 100 is maximum quality & minimum compression.</span><br /><span style="color: #B900B9;">// nQ = 75 is 'good' quality, the default.</span><br /><span style="color: #B900B9;">// nQ = 1 is minimum quality & maximum compression.</span><br /><br />int EZTAPI TWAIN_WriteNativeToFilename<span style="color: #000000;">&#40;</span>HANDLE hdib, LPCSTR pszFile<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Writes a DIB handle to a file using the current save format.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// hdib&nbsp;&nbsp; &nbsp; = DIB handle, as returned by TWAIN_AcquireNative</span><br /><span style="color: #B900B9;">// pszFile&nbsp; = far pointer to NUL-terminated filename</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// If pszFile is NULL or points to a null string, the user is</span><br /><span style="color: #B900B9;">// prompted for the filename *and format* with a standard Windows</span><br /><span style="color: #B900B9;">// file-save dialog.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Return values:</span><br /><span style="color: #B900B9;">//&nbsp; &nbsp;0&nbsp; success</span><br /><span style="color: #B900B9;">//&nbsp; -1&nbsp; user cancelled File Save dialog</span><br /><span style="color: #B900B9;">//&nbsp; -2&nbsp; file open error (invalid path or name, or access denied)</span><br /><span style="color: #B900B9;">//&nbsp; -3&nbsp; image is invalid, or cannot be written in this format.</span><br /><span style="color: #B900B9;">//&nbsp; -4&nbsp; writing data failed, possibly output device is full</span><br /><br /><br />HANDLE EZTAPI TWAIN_LoadNativeFromFilename<span style="color: #000000;">&#40;</span>LPCSTR pszFile<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Load a .BMP file (or JPEG) and return a DIB handle.</span><br /><span style="color: #B900B9;">// Accepts a filename (including path & extension).</span><br /><span style="color: #B900B9;">// If pszFile is NULL or points to a null string, the user is</span><br /><span style="color: #B900B9;">// prompted to choose a file with a standard File Open dialog.</span><br /><span style="color: #B900B9;">// Returns a DIB handle if successful, otherwise NULL.</span><br /><br />HANDLE EZTAPI TWAIN_LoadNativeFromFile<span style="color: #000000;">&#40;</span>HFILE fh<span style="color: #000000;">&#41;</span>;<br /><br /><br /><span style="color: #B900B9;">//--------- Global Options</span><br /><br />void EZTAPI TWAIN_SetMultiTransfer<span style="color: #000000;">&#40;</span>int fYes<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_GetMultiTransfer<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// This function controls the 'multiple transfers' flag.</span><br /><span style="color: #B900B9;">// If this flag is non-zero: After an Acquire, the Data Source</span><br /><span style="color: #B900B9;">// is not closed, but is left open to allow additional images</span><br /><span style="color: #B900B9;">// to be acquired in the same session. &nbsp;The programmer may</span><br /><span style="color: #B900B9;">// need to close the Data Source after all images have been</span><br /><span style="color: #B900B9;">// transferred, for example by calling</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; TWAIN_CloseSource or</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; TWAIN_UnloadSourceManager</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// In multi-transfer mode, you can check for the availability of</span><br /><span style="color: #B900B9;">// more images by calling TWAIN_State. &nbsp;A state of 6 (TWAIN_TRANSFER_READY)</span><br /><span style="color: #B900B9;">// means that the Data Source knows it has at least one more image.</span><br /><span style="color: #B900B9;">// A state of 5 (TWAIN_SOURCE_ENABLED) means that the user has not</span><br /><span style="color: #B900B9;">// closed the Data Source, so it might be able to acquire another image.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// See also: TWAIN_UserClosedSource()</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// If you try to acquire and the Data Source can't do it, the acquire</span><br /><span style="color: #B900B9;">// function will return an error indication.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// By default, this feature is set to FALSE (0).</span><br /><br />void EZTAPI TWAIN_SetHideUI<span style="color: #000000;">&#40;</span>int fHide<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_GetHideUI<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// These functions control the 'hide source user interface' flag.</span><br /><span style="color: #B900B9;">// This flag is cleared initially, but if you set it non-zero, then when</span><br /><span style="color: #B900B9;">// a source is enabled it will be asked to hide its user interface.</span><br /><span style="color: #B900B9;">// Note that this is only a request - some sources will ignore it!</span><br /><span style="color: #B900B9;">// This affects AcquireNative, AcquireToClipboard, and EnableSource.</span><br /><span style="color: #B900B9;">// If the user interface is hidden, you will probably want to set at least</span><br /><span style="color: #B900B9;">// some of the basic acquisition parameters yourself - see</span><br /><span style="color: #B900B9;">// SetCurrentUnits, SetCurrentPixelType, SetBitDepth and</span><br /><span style="color: #B900B9;">// SetCurrentResolution below.</span><br /><span style="color: #B900B9;">// See also: HasControllableUI</span><br /><br />void EZTAPI TWAIN_DisableParent<span style="color: #000000;">&#40;</span>int fYes<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Disable the parent window during _Acquire...</span><br /><span style="color: #B900B9;">// (The parent window is the window you pass to the Acquire function.</span><br /><span style="color: #B900B9;">// Typically this is your main application window or dialog.)</span><br /><span style="color: #B900B9;">// By default this setting is TRUE - the parent</span><br /><span style="color: #B900B9;">// window, if you provide it, is disabled during an Acquire.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Note 1: If you set this to FALSE, your window can receive user input while</span><br /><span style="color: #B900B9;">// an Acquire is in progress, and your code must be prepared for this.</span><br /><span style="color: #B900B9;">// Note 2: Some TWAIN data sources will disable the parent window on their</span><br /><span style="color: #B900B9;">// own, and EZTWAIN cannot prevent this.</span><br /><br />int EZTAPI TWAIN_GetDisableParent<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// return current setting of 'disable parent' flag.</span><br /><br /><span style="color: #B900B9;">//--------- Application Registration</span><br /><br />void EZTAPI TWAIN_RegisterApp<span style="color: #000000;">&#40;</span><br />&nbsp; &nbsp; int &nbsp; nMajorNum, &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// major and incremental revision of application.</span><br />&nbsp; &nbsp; int &nbsp; nMinorNum, &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// e.g. version 4.5: nMajorNum = 4, nMinorNum = 5</span><br />&nbsp; &nbsp; int &nbsp; nLanguage, &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// (human) language (use TWLG_xxx from TWAIN.H)</span><br />&nbsp; &nbsp; int &nbsp; nCountry, &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// country (use TWCY_xxx from TWAIN.H)</span><br />&nbsp; &nbsp; LPCSTR lpszVersion, &nbsp; <span style="color: #B900B9;">// version info string e.g. "1.0b3 Beta release"</span><br />&nbsp; &nbsp; LPCSTR lpszMfg, &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// name of mfg/developer e.g. "Crazbat Software"</span><br />&nbsp; &nbsp; LPCSTR lpszFamily, &nbsp; &nbsp;<span style="color: #B900B9;">// product family e.g. "BitStomper"</span><br />&nbsp; &nbsp; LPCSTR lpszProduct<span style="color: #000000;">&#41;</span>; &nbsp;<span style="color: #B900B9;">// specific product e.g. "BitStomper Deluxe Pro"</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// TWAIN_RegisterApp can be called *AS THE FIRST CALL*, to register the</span><br /><span style="color: #B900B9;">// application. If this function is not called, the application is given a</span><br /><span style="color: #B900B9;">// 'generic' registration by EZTWAIN.</span><br /><span style="color: #B900B9;">// Registration only provides this information to the Source Manager and any</span><br /><span style="color: #B900B9;">// sources you may open - it is used for debugging, and (frankly) by some</span><br /><span style="color: #B900B9;">// sources to give special treatment to certain applications.</span><br /><br />void EZTAPI TWAIN_SetAppTitle<span style="color: #000000;">&#40;</span>LPCSTR lpszTitle<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// The short form.</span><br /><span style="color: #B900B9;">// Sets the product name as far as TWAIN is concerned, and also the</span><br /><span style="color: #B900B9;">// title of any dialog boxes / error boxes that are displayed by EZTWAIN.</span><br /><br /><span style="color: #B900B9;">//--------- Error Analysis and Reporting ------------------------------------</span><br /><br />unsigned EZTAPI TWAIN_GetResultCode<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the result code (TWRC_xxx) from the last triplet sent to TWAIN</span><br /><br />unsigned EZTAPI TWAIN_GetConditionCode<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the condition code from the last triplet sent to TWAIN.</span><br /><span style="color: #B900B9;">// (To be precise, from the last call to TWAIN_DS below)</span><br /><span style="color: #B900B9;">// If a source is NOT open, return the condition code of the source manager.</span><br /><br />int EZTAPI TWAIN_UserClosedSource<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return TRUE (1) if during the last acquire the user asked</span><br /><span style="color: #B900B9;">// the DataSource to close. &nbsp;0 otherwise of course.</span><br /><span style="color: #B900B9;">// This flag is cleared each time you start any kind of acquire,</span><br /><span style="color: #B900B9;">// or just call ModalEventLoop, and it is set if EZTWAIN receives a</span><br /><span style="color: #B900B9;">// MSG_XFERREADY message through TWAIN.</span><br /><br />void EZTAPI TWAIN_ErrorBox<span style="color: #000000;">&#40;</span>LPCSTR pzMsg<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Post an error message dialog with an OK button,</span><br /><span style="color: #B900B9;">// and the title 'TWAIN Error'.</span><br /><span style="color: #B900B9;">// pszMsg points to a null-terminated message string.</span><br /><span style="color: #B900B9;">// If messages are suppressed (see below) this function does nothing.</span><br /><br />int EZTAPI TWAIN_SuppressErrorMessages<span style="color: #000000;">&#40;</span>int nSuppress<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Enable or disable EZTWAIN error messages to the user.</span><br /><span style="color: #B900B9;">// When nSuppress = 0, error messages are displayed.</span><br /><span style="color: #B900B9;">// When nSuppress <> 0, error messages are suppressed.</span><br /><span style="color: #B900B9;">// By default, error messages are displayed.</span><br /><span style="color: #B900B9;">// Note that EZTWAIN cannot prevent messages from TWAIN or DSs.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// Return the previous state of the flag.</span><br /><br />void EZTAPI TWAIN_ReportLastError<span style="color: #000000;">&#40;</span>LPCSTR pzMsg<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Like TWAIN_ErrorBox, but if some details are available from</span><br /><span style="color: #B900B9;">// TWAIN about the last failure, they are included in the message box.</span><br /><br />typedef enum <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; EZTEC_NONE,<br />&nbsp; &nbsp; EZTEC_START_TRIPLET_ERRS,<br />&nbsp; &nbsp; EZTEC_CAP_GET,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MSG_GET triplet on a capability failed</span><br />&nbsp; &nbsp; EZTEC_CAP_SET,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MSG_SET triplet on capability failed</span><br />&nbsp; &nbsp; EZTEC_DSM_FAILURE,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// TWAIN DSM returned TWRC_FAILURE</span><br />&nbsp; &nbsp; EZTEC_DS_FAILURE,&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// source returned TWRC_FAILURE</span><br />&nbsp; &nbsp; EZTEC_XFER_FAILURE, &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// image transfer failed</span><br />&nbsp; &nbsp; EZTEC_END_TRIPLET_ERRS,<br />&nbsp; &nbsp; EZTEC_OPEN_DSM, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// opening DSM failed</span><br />&nbsp; &nbsp; EZTEC_OPEN_DEFAULT_DS,<br />&nbsp; &nbsp; EZTEC_NOT_STATE_4,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// operation invoked in wrong state</span><br />&nbsp; &nbsp; EZTEC_NULL_HCON,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MSG_GET returned a null container handle</span><br />&nbsp; &nbsp; EZTEC_BAD_HCON,&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// MSG_GET returned an invalid/unlockable container handle</span><br />&nbsp; &nbsp; EZTEC_BAD_CONTYPE,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// returned container ConType is not valid.</span><br />&nbsp; &nbsp; EZTEC_BAD_ITEMTYPE,&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// returned container ItemType is not valid.</span><br />&nbsp; &nbsp; EZTEC_CAP_GET_EMPTY,&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// returned container has 0 items.</span><br />&nbsp; &nbsp; EZTEC_CAP_SET_EMPTY,&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// trying to restrict a cap to empty set</span><br />&nbsp; &nbsp; EZTEC_INVALID_HWND, &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// function passed an invalid window handle</span><br />&nbsp; &nbsp; EZTEC_PROXY_WINDOW, &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// internal proxy window create failed (unlikely!)</span><br />&nbsp; &nbsp; EZTEC_USER_CANCEL, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// user cancelled operation</span><br />&nbsp; &nbsp; EZTEC_RESOLUTION, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Set failed for Resolution</span><br /><span style="color: #000000;">&#125;</span> EZTWAIN_ERROR_CODE;<br /><br /><br />int EZTAPI TWAIN_LastErrorCode<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the last internal EZTWAIN error code.</span><br /><br />void EZTAPI TWAIN_ClearError<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set the EZTWAIN internal error code to EZTEC_NONE</span><br /><br /><br /><span style="color: #B900B9;">//--------- TWAIN State Control ------------------------------------</span><br /><br />int EZTAPI TWAIN_LoadSourceManager<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Finds and loads the Data Source Manager, TWAIN.DLL.</span><br /><span style="color: #B900B9;">// If Source Manager is already loaded, does nothing and returns TRUE.</span><br /><span style="color: #B900B9;">// This can fail if TWAIN.DLL is not installed (in the right place), or</span><br /><span style="color: #B900B9;">// if the library cannot load for some reason (insufficient memory?) or</span><br /><span style="color: #B900B9;">// if TWAIN.DLL has been corrupted.</span><br /><br />int EZTAPI TWAIN_OpenSourceManager<span style="color: #000000;">&#40;</span>HWND hwnd<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Opens the Data Source Manager, if not already open.</span><br /><span style="color: #B900B9;">// If the Source Manager is already open, does nothing and returns TRUE.</span><br /><span style="color: #B900B9;">// This call will fail if the Source Manager is not loaded.</span><br /><br />int EZTAPI TWAIN_OpenDefaultSource<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// This opens the source selected in the Select Source dialog.</span><br /><span style="color: #B900B9;">// If some source is already open, does nothing and returns TRUE.</span><br /><span style="color: #B900B9;">// Will load and open the Source Manager if needed.</span><br /><span style="color: #B900B9;">// If this call returns TRUE, TWAIN is in STATE 4 (TWAIN_SOURCE_OPEN)</span><br /><br /><span style="color: #B900B9;">// These two functions allow you to enumerate the available data sources:</span><br />int EZTAPI TWAIN_GetSourceList<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Fetches the list of sources into memory, so they can be returned</span><br /><span style="color: #B900B9;">// one by one by TWAIN_GetNextSourceName, below.</span><br /><span style="color: #B900B9;">// Returns TRUE (1) if successful, FALSE (0) otherwise.</span><br /><br />int EZTAPI TWAIN_GetNextSourceName<span style="color: #000000;">&#40;</span>LPSTR pzName<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Copies the next source name in the list into pzName.</span><br /><span style="color: #B900B9;">// Returns TRUE (1) if successful, FALSE (0) if there are no more.</span><br /><br />int EZTAPI TWAIN_GetDefaultSourceName<span style="color: #000000;">&#40;</span>LPSTR pzName<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Copies the name of the TWAIN default source into pzName.</span><br /><span style="color: #B900B9;">// Normally returns TRUE (1) but will return FALSE (0) if:</span><br /><span style="color: #B900B9;">// &nbsp; - the TWAIN Source Manager cannot be loaded & initialized or</span><br /><span style="color: #B900B9;">// &nbsp; - there is no current default source (e.g. no sources are installed)</span><br /><br />int EZTAPI TWAIN_OpenSource<span style="color: #000000;">&#40;</span>LPCSTR pzName<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Opens the source with the given name.</span><br /><span style="color: #B900B9;">// If that source is already open, does nothing and returns TRUE</span><br /><span style="color: #B900B9;">// If another source is open, closes it and attempts to open the specified source.</span><br /><span style="color: #B900B9;">// Will load and open the Source Manager if needed.</span><br /><br />int EZTAPI TWAIN_EnableSource<span style="color: #000000;">&#40;</span>HWND hwnd<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Enables the open Data Source. This posts the source's user interface</span><br /><span style="color: #B900B9;">// and allows image acquisition to begin. &nbsp;If the source is already enabled,</span><br /><span style="color: #B900B9;">// this call does nothing and returns TRUE.</span><br /><br />int EZTAPI TWAIN_DisableSource<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Disables the open Data Source, if any.</span><br /><span style="color: #B900B9;">// This closes the source's user interface.</span><br /><span style="color: #B900B9;">// If there is not an enabled source, does nothing and returns TRUE.</span><br /><br />int EZTAPI TWAIN_CloseSource<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Closes the open Data Source, if any.</span><br /><span style="color: #B900B9;">// If the source is enabled, disables it first.</span><br /><span style="color: #B900B9;">// If there is not an open source, does nothing and returns TRUE.</span><br /><br />int EZTAPI TWAIN_CloseSourceManager<span style="color: #000000;">&#40;</span>HWND hwnd<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Closes the Data Source Manager, if it is open.</span><br /><span style="color: #B900B9;">// If a source is open, disables and closes it as needed.</span><br /><span style="color: #B900B9;">// If the Source Manager is not open, does nothing and returns TRUE.</span><br /><br />int EZTAPI TWAIN_UnloadSourceManager<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Unloads the Data Source Manager i.e. TWAIN.DLL - releasing</span><br /><span style="color: #B900B9;">// any associated memory or resources.</span><br /><span style="color: #B900B9;">// If necessary, it will abort transfers, close the open source</span><br /><span style="color: #B900B9;">// if any, and close the Source Manager.</span><br /><span style="color: #B900B9;">// If successful, it returns 1 (TRUE)</span><br /><br /><br />int EZTAPI TWAIN_MessageHook<span style="color: #000000;">&#40;</span>LPMSG lpmsg<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// This function detects Windows messages that should be routed</span><br /><span style="color: #B900B9;">// to an enabled Data Source, and picks them off. &nbsp;In a full TWAIN</span><br /><span style="color: #B900B9;">// app, TWAIN_MessageHook is called inside the main GetMessage loop.</span><br /><span style="color: #B900B9;">// The skeleton code looks like this:</span><br /><span style="color: #B900B9;">//&nbsp; &nbsp; &nbsp; MSG msg;</span><br /><span style="color: #B900B9;">// &nbsp;&nbsp; &nbsp; while (GetMessage((LPMSG)&msg, NULL, 0, 0)) {</span><br /><span style="color: #B900B9;">//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!TWAIN_MessageHook ((LPMSG)&msg)) {</span><br /><span style="color: #B900B9;">//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TranslateMessage ((LPMSG)&msg);</span><br /><span style="color: #B900B9;">//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DispatchMessage ((LPMSG)&msg);</span><br /><span style="color: #B900B9;">//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span><br /><span style="color: #B900B9;">//&nbsp; &nbsp; &nbsp; } // while</span><br /><br /><br />HANDLE EZTAPI TWAIN_WaitForNativeXfer<span style="color: #000000;">&#40;</span>HWND hwnd<span style="color: #000000;">&#41;</span>;<br /><br />int EZTAPI TWAIN_IsTransferReady<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><br />void EZTAPI TWAIN_ModalEventLoop<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Process messages until termination, source disable, or image transfer.</span><br /><br /><br />int EZTAPI TWAIN_EndXfer<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><br />int EZTAPI TWAIN_AbortAllPendingXfers<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #B900B9;">//--------- High-level Capability Negotiation Functions --------</span><br /><span style="color: #B900B9;">// These functions should only be called in State 4 (TWAIN_SOURCE_OPEN)</span><br /><br />int EZTAPI TWAIN_NegotiateXferCount<span style="color: #000000;">&#40;</span>int nXfers<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Negotiate with open Source the number of images application will accept.</span><br /><span style="color: #B900B9;">// nXfers = -1 means any number</span><br /><span style="color: #B900B9;">// Returns: 1 for success, 0 for failure.</span><br /><br />int EZTAPI TWAIN_NegotiatePixelTypes<span style="color: #000000;">&#40;</span>unsigned wPixTypes<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Negotiate with the source to restrict pixel types that can be acquired.</span><br /><span style="color: #B900B9;">// This tries to restrict the source to a *set* of pixel types.</span><br /><span style="color: #B900B9;">// Returns: 1 for success, 0 for failure.</span><br /><span style="color: #B900B9;">// See TWAIN_AcquireNative for some mask constants.</span><br /><span style="color: #B900B9;">// A parameter of 0 (TWAIN_ANYTYPE) causes no negotiation & no restriction.</span><br /><span style="color: #B900B9;">// You should not assume that the source will honor your restrictions, even</span><br /><span style="color: #B900B9;">// if this call succeeds!</span><br /><br /><span style="color: #B900B9;">//----- Unit of Measure</span><br /><span style="color: #B900B9;">// TWAIN unit codes (from twain.h)</span><br /><span style="color: #00D7D7;">#define</span> TWUN_INCHES &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> TWUN_CENTIMETERS <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> TWUN_PICAS &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> TWUN_POINTS &nbsp; &nbsp; &nbsp;<span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> TWUN_TWIPS &nbsp; &nbsp; &nbsp; <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> TWUN_PIXELS &nbsp; &nbsp; &nbsp;<span style="color: #000000;">5</span><br /><br />int EZTAPI TWAIN_GetCurrentUnits<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the current unit of measure: inches, cm, pixels, etc.</span><br /><span style="color: #B900B9;">// Many TWAIN parameters such as resolution are set and returned</span><br /><span style="color: #B900B9;">// in the current unit of measure.</span><br /><span style="color: #B900B9;">// There is no error return - in case of error it returns 0 (TWUN_INCHES)</span><br /><br />int EZTAPI TWAIN_SetCurrentUnits<span style="color: #000000;">&#40;</span>int nUnits<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set the current unit of measure for the source.</span><br /><span style="color: #B900B9;">// Common unit codes are given above.</span><br /><span style="color: #B900B9;">// 1. Most sources do not support all units, some support *only* inches!</span><br /><span style="color: #B900B9;">// 2. If you want to get or set resolution in DPI, make sure the current</span><br /><span style="color: #B900B9;">// units are inches, or you might get Dots-Per-Centimeter!</span><br /><span style="color: #B900B9;">// 3. Similarly for ImageLayout, see below.</span><br /><br />int EZTAPI TWAIN_GetBitDepth<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Get the current bitdepth, which can depend on the current PixelType.</span><br /><span style="color: #B900B9;">// Bit depth is per color channel e.g. 24-bit RGB has bit depth 8.</span><br /><span style="color: #B900B9;">// If anything goes wrong, this function returns 0.</span><br /><br />int EZTAPI TWAIN_SetBitDepth<span style="color: #000000;">&#40;</span>int nBits<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// (Try to) set the current bitdepth (for the current pixel type).</span><br /><span style="color: #B900B9;">// Note: You should set a PixelType, then set the bitdepth for that type.</span><br /><br /><span style="color: #B900B9;">//------- TWAIN Pixel Types (from twain.h)</span><br /><span style="color: #00D7D7;">#define</span> TWPT_BW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> <span style="color: #B900B9;">/* Black and White */</span><br /><span style="color: #00D7D7;">#define</span> TWPT_GRAY &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> TWPT_RGB &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> TWPT_PALETTE &nbsp; &nbsp; <span style="color: #000000;">3</span><br /><br />int EZTAPI TWAIN_GetPixelType<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Ask the source for the current pixel type.</span><br /><span style="color: #B900B9;">// If anything goes wrong (it shouldn't), this function returns 0 (TWPT_BW).</span><br /><br />int EZTAPI TWAIN_SetCurrentPixelType<span style="color: #000000;">&#40;</span>int nPixType<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Try to set the current pixel type for acquisition.</span><br /><span style="color: #B900B9;">// The source may select this pixel type, but don't assume it will.</span><br /><br />double EZTAPI TWAIN_GetCurrentResolution<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Ask the source for the current (horizontal) resolution.</span><br /><span style="color: #B900B9;">// Resolution is in dots per current unit! (See TWAIN_GetCurrentUnits above)</span><br /><span style="color: #B900B9;">// If anything goes wrong (it shouldn't) this function returns 0.0</span><br /><br />double EZTAPI TWAIN_GetYResolution<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Returns the current vertical resolution, in dots per *current unit*.</span><br /><span style="color: #B900B9;">// In the event of failure, returns 0.0.</span><br /><br />int EZTAPI TWAIN_SetCurrentResolution<span style="color: #000000;">&#40;</span>double dRes<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Try to set the current resolution (in both x & y).</span><br /><span style="color: #B900B9;">// Resolution is in dots per current unit! (See TWAIN_GetCurrentUnits above)</span><br /><span style="color: #B900B9;">// Note: The source may select this resolution, but don't assume it will.</span><br />int EZTAPI TWAIN_SetXResolution<span style="color: #000000;">&#40;</span>double dxRes<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_SetYResolution<span style="color: #000000;">&#40;</span>double dyRes<span style="color: #000000;">&#41;</span>;<br /><br />int EZTAPI TWAIN_SetContrast<span style="color: #000000;">&#40;</span>double dCon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Try to set the current contrast for acquisition.</span><br /><span style="color: #B900B9;">// The TWAIN standard *says* that the range for this cap is -1000 ... +1000</span><br /><br />int EZTAPI TWAIN_SetBrightness<span style="color: #000000;">&#40;</span>double dBri<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Try to set the current brightness for acquisition.</span><br /><span style="color: #B900B9;">// The TWAIN standard *says* that the range for this cap is -1000 ... +1000</span><br /><br />int EZTAPI TWAIN_SetThreshold<span style="color: #000000;">&#40;</span>double dThresh<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Try to set the threshold for black and white scanning.</span><br /><span style="color: #B900B9;">// Should only affect 1-bit scans i.e. PixelType == TWPT_BW.</span><br /><span style="color: #B900B9;">// The TWAIN default threshold value is 128.</span><br /><span style="color: #B900B9;">// After staring at the TWAIN 1.6 spec for a while, I imagine that it implies</span><br /><span style="color: #B900B9;">// that for 8-bit samples, values >= nThresh are thresholded to 1, others to 0.</span><br /><br />double EZTAPI TWAIN_GetCurrentThreshold<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Try to get and return the current value (MSG_GETCURRENT) of the</span><br /><span style="color: #B900B9;">// ICAP_THRESHOLD capability. &nbsp;If this fails for any reason, it</span><br /><span style="color: #B900B9;">// will return -1. &nbsp;*VERSIONS BEFORE 2.65 RETURNED 128.0*</span><br /><br />int EZTAPI TWAIN_SetXferMech<span style="color: #000000;">&#40;</span>int mech<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_XferMech<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Try to set or get the transfer mode - one of the following:</span><br /><span style="color: #00D7D7;">#define</span> XFERMECH_NATIVE &nbsp; &nbsp;<span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> XFERMECH_FILE &nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> XFERMECH_MEMORY &nbsp; &nbsp;<span style="color: #000000;">2</span><br /><span style="color: #B900B9;">// You should not need to set this mode directly - using</span><br /><span style="color: #B900B9;">// TWAIN_Acquire, TWAIN_AcquireNative and TWAIN_AcquireFile will set</span><br /><span style="color: #B900B9;">// the appropriate transfer mode for you.</span><br /><br />int EZTAPI TWAIN_SupportsFileXfer<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Returns TRUE(1) if the open DS claims to support file transfer mode (XFERMECH_FILE)</span><br /><span style="color: #B900B9;">// This mode is optional. &nbsp;If TRUE, you can use AcquireFile.</span><br /><br />int EZTAPI TWAIN_SetPaperSize<span style="color: #000000;">&#40;</span>int nPaper<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// See TWSS_* in TWAIN.H</span><br /><span style="color: #00D7D7;">#define</span> PAPER_A4LETTER &nbsp; &nbsp;<span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> PAPER_B5LETTER &nbsp; &nbsp;<span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> PAPER_USLETTER &nbsp; &nbsp;<span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> PAPER_USLEGAL &nbsp; &nbsp; <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> PAPER_A5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> PAPER_B4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#define</span> PAPER_B6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">7</span><br /><span style="color: #00D7D7;">#define</span> PAPER_USLEDGER &nbsp; &nbsp;<span style="color: #000000;">9</span><br /><span style="color: #00D7D7;">#define</span> PAPER_USEXECUTIVE <span style="color: #000000;">10</span><br /><span style="color: #00D7D7;">#define</span> PAPER_A3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">11</span><br /><span style="color: #00D7D7;">#define</span> PAPER_B3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">12</span><br /><span style="color: #00D7D7;">#define</span> PAPER_A6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">13</span><br /><span style="color: #00D7D7;">#define</span> PAPER_C4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">14</span><br /><span style="color: #00D7D7;">#define</span> PAPER_C5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#define</span> PAPER_C6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">16</span><br /><br /><span style="color: #B900B9;">//-------- Document Feeder -------</span><br /><br />BOOL EZTAPI TWAIN_HasFeeder<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return TRUE(1) if the source indicates it has a document feeder.</span><br /><span style="color: #B900B9;">// Note: A FALSE(0) is returned if the source does not handle this inquiry.</span><br /><br />BOOL EZTAPI TWAIN_IsFeederSelected<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return TRUE(1) if the document feeder is selected.</span><br /><br />int EZTAPI TWAIN_SelectFeeder<span style="color: #000000;">&#40;</span>int fYes<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// (Try to) select or deselect the document feeder.</span><br /><span style="color: #B900B9;">// Return TRUE(1) if successful, FALSE(0) otherwise.</span><br /><br />BOOL EZTAPI TWAIN_IsAutoFeedOn<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return TRUE(1) if automatic feeding is enabled, otherwise FALSE(0).</span><br /><span style="color: #B900B9;">// Make sure the feeder is selected before calling this function.</span><br /><br />int EZTAPI TWAIN_SetAutoFeed<span style="color: #000000;">&#40;</span>int fYes<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// (Try to) turn on/off automatic feeding thru the feeder.</span><br /><span style="color: #B900B9;">// Return TRUE(1) if successful, FALSE(0) otherwise.</span><br /><span style="color: #B900B9;">// This function selects the feeder, so to start scanning</span><br /><span style="color: #B900B9;">// pages from an ADF, just do: TWAIN_SetAutoFeed(TRUE).</span><br /><br />BOOL EZTAPI TWAIN_IsFeederLoaded<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return TRUE(1) if there are documents in the feeder.</span><br /><span style="color: #B900B9;">// Make sure the feeder is selected before calling this function.</span><br /><br /><span style="color: #B900B9;">//-------- Duplex Scanning -------</span><br /><br />int EZTAPI TWAIN_GetDuplexSupport<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Query the device for duplex scanning support.</span><br /><span style="color: #B900B9;">// &nbsp; Return values:</span><br /><span style="color: #B900B9;">// 0 &nbsp; &nbsp;= no support (or error, or query not recognized)</span><br /><span style="color: #B900B9;">// 1 &nbsp; &nbsp;= 1-pass duplex</span><br /><span style="color: #B900B9;">// 2 &nbsp; &nbsp;= 2-pass duplex</span><br /><br />int EZTAPI TWAIN_EnableDuplex<span style="color: #000000;">&#40;</span>int fYes<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Enable (fYes=1) or disable (fYes=0) duplex scanning.</span><br /><span style="color: #B900B9;">// Returns TRUE(1) if successful, FALSE(0) otherwise.</span><br /><br />BOOL EZTAPI TWAIN_IsDuplexEnabled<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Returns TRUE(1) if the device supports duplex scanning</span><br /><span style="color: #B900B9;">// and duplex scanning is enabled. &nbsp;FALSE(0) otherwise.</span><br /><br /><span style="color: #B900B9;">//--------- Other 'exotic' capabilities --------</span><br /><br />int EZTAPI TWAIN_HasControllableUI<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return 1 if source claims UI can be hidden (see SetHideUI above)</span><br /><span style="color: #B900B9;">// Return 0 if source says UI *cannot* be hidden</span><br /><span style="color: #B900B9;">// Return -1 if source (pre TWAIN 1.6) cannot answer the question.</span><br /><br />int EZTAPI TWAIN_SetIndicators<span style="color: #000000;">&#40;</span>BOOL bVisible<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Tell the source to show (hide) progress indicators during acquisition.</span><br /><br />int EZTAPI TWAIN_Compression<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_SetCompression<span style="color: #000000;">&#40;</span>int compression<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set/Return compression style for transferred data</span><br /><br />BOOL EZTAPI TWAIN_Tiled<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_SetTiled<span style="color: #000000;">&#40;</span>BOOL bTiled<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set/Return whether source does memory xfer via strips or tiles.</span><br /><span style="color: #B900B9;">// bTiled = TRUE if it uses tiles for transfer.</span><br /><br />int EZTAPI TWAIN_PlanarChunky<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_SetPlanarChunky<span style="color: #000000;">&#40;</span>int shape<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set/Return current pixel shape (TWPC_CHUNKY or TWPC_PLANAR), or -1.</span><br /><br /><span style="color: #00D7D7;">#define</span> CHUNKY_PIXELS &nbsp; &nbsp;<span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> PLANAR_PIXELS &nbsp; &nbsp;<span style="color: #000000;">1</span><br /><br />int EZTAPI TWAIN_PixelFlavor<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_SetPixelFlavor<span style="color: #000000;">&#40;</span>int flavor<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set/Return pixel 'flavor' - whether 0 is black or white:</span><br /><br /><span style="color: #00D7D7;">#define</span> CHOCOLATE_PIXELS &nbsp; <span style="color: #000000;">0</span> &nbsp; &nbsp; <span style="color: #B900B9;">// zero pixel represents darkest shade</span><br /><span style="color: #00D7D7;">#define</span> VANILLA_PIXELS &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp;<span style="color: #B900B9;">// zero pixel represents lightest shade</span><br /><br /><br />int EZTAPI TWAIN_SetLightPath<span style="color: #000000;">&#40;</span>BOOL bTransmissive<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Tries to select transparent or reflective media on the open source.</span><br /><span style="color: #B900B9;">// A parameter of TRUE(1) means transparent, FALSE(0) means reflective.</span><br /><span style="color: #B900B9;">// A return of TRUE(1) implies success, FALSE(0) means that</span><br /><span style="color: #B900B9;">// the data source refused the request.</span><br /><br />int EZTAPI TWAIN_SetAutoBright<span style="color: #000000;">&#40;</span>BOOL bOn<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_SetGamma<span style="color: #000000;">&#40;</span>double dGamma<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_SetShadow<span style="color: #000000;">&#40;</span>double d<span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// 0..255</span><br />int EZTAPI TWAIN_SetHighlight<span style="color: #000000;">&#40;</span>double d<span style="color: #000000;">&#41;</span>; &nbsp; &nbsp;<span style="color: #B900B9;">// 0..255</span><br /><br /><span style="color: #B900B9;">//--------- Image Layout (Region of Interest) --------</span><br /><br />int EZTAPI TWAIN_SetImageLayout<span style="color: #000000;">&#40;</span>double L, double T, double R, double B<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Specify the area to scan, sometimes called the ROI (Region of Interest)</span><br /><span style="color: #B900B9;">// This call is only valid in State 4.</span><br /><span style="color: #B900B9;">// L, T, R, B = distance to left, top, right, and bottom edge of</span><br /><span style="color: #B900B9;">// area to scan, measured in the current unit of measure,</span><br /><span style="color: #B900B9;">// from the top-left corner of the 'original page' (TWAIN 1.6 8-22)</span><br /><br />int EZTAPI TWAIN_GetImageLayout<span style="color: #000000;">&#40;</span>double *L, double *T, double *R, double *B<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_GetDefaultImageLayout<span style="color: #000000;">&#40;</span>double *L, double *T, double *R, double *B<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Get the current or default (power-on) area to scan.</span><br /><span style="color: #B900B9;">// This call is valid in States 4-6.</span><br /><span style="color: #B900B9;">// 1 = success, 0 = failure. &nbsp;Supposedly the returned values (see above)</span><br /><span style="color: #B900B9;">// are in the current unit of measure (ICAP_UNITS), but I observe that</span><br /><span style="color: #B900B9;">// many DS's ignore ICAP_UNITS when dealing with Image Layout.</span><br /><br />int EZTAPI TWAIN_ResetImageLayout<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Reset the area to scan to the default (power-on) settings.</span><br /><span style="color: #B900B9;">// This call is only valid in State 4.</span><br /><span style="color: #B900B9;">// 1 = success, 0 = failure.</span><br /><br /><span style="color: #B900B9;">//--------- Fun With Containers --------</span><br /><br /><span style="color: #B900B9;">// Capability values are passed thru the TWAIN API in blocks of</span><br /><span style="color: #B900B9;">// global memory called 'containers'. &nbsp;EZTWAIN represents these</span><br /><span style="color: #B900B9;">// containers with a handle (an integer) called HCONTAINER.</span><br /><span style="color: #B900B9;">// The following functions provide reasonably comprehensive access</span><br /><span style="color: #B900B9;">// to the contents of containers. &nbsp;See also TWAIN_Get, TWAIN_Set.</span><br /><span style="color: #B900B9;">//</span><br /><span style="color: #B900B9;">// There are four shapes of containers, which I call 'formats'.</span><br /><span style="color: #B900B9;">// Depending on its format, a container holds some 'items' - these</span><br /><span style="color: #B900B9;">// are simple data values, all the same type in a given container.</span><br /><br /><span style="color: #B900B9;">// Container formats, same codes as in TWAIN.H</span><br /><span style="color: #00D7D7;">#define</span> CONTAINER_ARRAY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">3</span><br /><span style="color: #00D7D7;">#define</span> CONTAINER_ENUMERATION &nbsp; &nbsp; <span style="color: #000000;">4</span><br /><span style="color: #00D7D7;">#define</span> CONTAINER_ONEVALUE &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> CONTAINER_RANGE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">6</span><br /><br />typedef DWORD HCONTAINER;<br /><span style="color: #B900B9;">// If you are coding in VB or similar, this is a 32-bit integer.</span><br /><br />void EZTAPI CONTAINER_Free<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Free the memory and resources of a capability container.</span><br /><br />HCONTAINER EZTAPI CONTAINER_Copy<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Create an exact copy of the container.</span><br /><br />int EZTAPI CONTAINER_Format<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the 'format' of this container: CONTAINER_ONEVALUE, etc.</span><br /><br />int EZTAPI CONTAINER_ItemType<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the item type (what exact kind of values are in the container.)</span><br /><span style="color: #B900B9;">// See the TWTY_* definitions in TWAIN.H</span><br /><br />int EZTAPI CONTAINER_ItemCount<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the number of values in the container.</span><br /><span style="color: #B900B9;">// For a ONEVALUE, return 1.</span><br /><br />double EZTAPI CONTAINER_FloatValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n<span style="color: #000000;">&#41;</span>;<br />int EZTAPI CONTAINER_IntValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the value of the nth item in the container.</span><br /><span style="color: #B900B9;">// n is forced into the range 0 to ItemCount(hcon)-1.</span><br /><br />BYTE* EZTAPI CONTAINER_ValuePtr<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n<span style="color: #000000;">&#41;</span>;<br /><br />int EZTAPI CONTAINER_ContainsValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon, double d<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return 1 (TRUE) if the value d is one of the items in the container.</span><br />int EZTAPI CONTAINER_FindValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon, double d<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the index of the value d in the container, or -1 if not found.</span><br /><br />double EZTAPI CONTAINER_CurrentValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br />double EZTAPI CONTAINER_DefaultValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the container's current or power-up (default) value.</span><br /><span style="color: #B900B9;">// Array containers do not have these and will return -1.0.</span><br /><span style="color: #B900B9;">// OneValue containers always return their (one) value.</span><br /><br />int EZTAPI CONTAINER_DefaultIndex<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br />int EZTAPI CONTAINER_CurrentIndex<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the index of the Default or Current value, in an Enumeration.</span><br /><span style="color: #B900B9;">// Return -1 if the container is not an Enumeration.</span><br /><br />double EZTAPI CONTAINER_MinValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br />double EZTAPI CONTAINER_MaxValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br />double EZTAPI CONTAINER_StepSize<span style="color: #000000;">&#40;</span>HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return the three parameters that define a Range container.</span><br /><span style="color: #B900B9;">// Returns -1.0 if the container is not a Range.</span><br /><br /><span style="color: #B900B9;">// The following four functions create containers from scratch:</span><br /><span style="color: #B900B9;">// nItemType is one of the TWTY_* item types from TWAIN.H</span><br /><span style="color: #B900B9;">// nItems is the number of items, in an array or enumeration.</span><br /><span style="color: #B900B9;">// dMin, dMax, dStep are the beginning, ending, and step value of a range.</span><br />HCONTAINER EZTAPI CONTAINER_OneValue<span style="color: #000000;">&#40;</span>int nItemType, double dVal<span style="color: #000000;">&#41;</span>;<br />HCONTAINER EZTAPI CONTAINER_Range<span style="color: #000000;">&#40;</span>int nItemType, double dMin, double dMax, double dStep<span style="color: #000000;">&#41;</span>;<br />HCONTAINER EZTAPI CONTAINER_Array<span style="color: #000000;">&#40;</span>int nItemType, int nItems<span style="color: #000000;">&#41;</span>;<br />HCONTAINER EZTAPI CONTAINER_Enumeration<span style="color: #000000;">&#40;</span>int nItemType, int nItems<span style="color: #000000;">&#41;</span>;<br /><br />int EZTAPI CONTAINER_SetItem<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n, double dVal<span style="color: #000000;">&#41;</span>;<br />int EZTAPI CONTAINER_SetItemString<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n, LPCTSTR pzVal<span style="color: #000000;">&#41;</span>;<br />int EZTAPI CONTAINER_SetItemFrame<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n, double l, double t, double r, double b<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Set the nth item of the container to dVal or pzText, or frame(l,t,r,b).</span><br /><span style="color: #B900B9;">// NOTE: A OneValue is treated as an array with 1 element.</span><br /><span style="color: #B900B9;">// Return 1 (TRUE) if successful. 0 (FALSE) for failure:</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;The container is not an array, enumeration, or onevalue</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;n < 0 or n >= CONTAINER_ItemCount(hcon)</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;the value cannot be represented in this container's ItemType.</span><br /><br />int EZTAPI CONTAINER_SelectDefaultValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon, double dVal<span style="color: #000000;">&#41;</span>;<br />int EZTAPI CONTAINER_SelectDefaultItem<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n<span style="color: #000000;">&#41;</span>;<br />int EZTAPI CONTAINER_SelectCurrentValue<span style="color: #000000;">&#40;</span>HCONTAINER hcon, double dVal<span style="color: #000000;">&#41;</span>;<br />int EZTAPI CONTAINER_SelectCurrentItem<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Select the current or default value within an enumeration or range,</span><br /><span style="color: #B900B9;">// by specifying either the value, or its index.</span><br /><span style="color: #B900B9;">// Returns 1 (TRUE) if successful, 0 (FALSE) otherwise.</span><br /><span style="color: #B900B9;">// This will fail if:</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;The container is not an enumeration or range.</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;dVal is not one of the values in the container</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp;n < 0 or n >= CONTAINER_ItemCount(hcon)</span><br /><br />int EZTAPI CONTAINER_DeleteItem<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Delete the nth item from an Array or Enumeration container.</span><br /><span style="color: #B900B9;">// Returns 1 (TRUE) for success, 0 (FALSE) otherwise. Failure causes:</span><br /><span style="color: #B900B9;">// &nbsp; invalid container handle</span><br /><span style="color: #B900B9;">// &nbsp; container is not an array or enumeration</span><br /><span style="color: #B900B9;">// &nbsp; n < 0 or n >= ItemCount(hcon)</span><br /><br />int EZTAPI CONTAINER_InsertItem<span style="color: #000000;">&#40;</span>HCONTAINER hcon, int n, double dVal<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Insert an item with value dVal into the container at position n.</span><br /><span style="color: #B900B9;">// If n = -1, the item is inserted at the end of the container.</span><br /><br /><span style="color: #B900B9;">//--------- Low-level Capability Negotiation Functions --------</span><br /><span style="color: #B900B9;">// Setting a capability is valid only in State 4 (TWAIN_SOURCE_OPEN)</span><br /><span style="color: #B900B9;">// Getting a capability is valid in State 4 or any higher state.</span><br /><br />HCONTAINER EZTAPI TWAIN_Get<span style="color: #000000;">&#40;</span>unsigned uCap<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Issue a DAT_CAPABILITY/MSG_GET to the open source.</span><br /><span style="color: #B900B9;">// Return a capability 'container' - the 'MSG_GET' value of the capability.</span><br /><span style="color: #B900B9;">// Use CONTAINER_* functions to examine and modify the container object.</span><br /><span style="color: #B900B9;">// Use CONTAINER_Free to release it when you are done with it.</span><br /><span style="color: #B900B9;">// A return value of 0 indicates failure: &nbsp;Call GetConditionCode</span><br /><span style="color: #B900B9;">// or ReportLastError above.</span><br /><br />HCONTAINER EZTAPI TWAIN_GetDefault<span style="color: #000000;">&#40;</span>unsigned uCap<span style="color: #000000;">&#41;</span>;<br />HCONTAINER EZTAPI TWAIN_GetCurrent<span style="color: #000000;">&#40;</span>unsigned uCap<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Issue a DAT_CAPABILITY/MSG_GETDEFAULT or MSG_GETCURRENT. &nbsp;See Get above.</span><br /><br />int EZTAPI TWAIN_Set<span style="color: #000000;">&#40;</span>unsigned uCap, HCONTAINER hcon<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Issue a DAT_CAPABILITY/MSG_SET to the open source,</span><br /><span style="color: #B900B9;">// using the specified capability and container.</span><br /><span style="color: #B900B9;">// Return value as for TWAIN_DS</span><br /><br />int EZTAPI TWAIN_Reset<span style="color: #000000;">&#40;</span>unsigned uCap<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Issue a MSG_RESET on the specified capability.</span><br /><span style="color: #B900B9;">// State must be 4. &nbsp;Returns 1 (TRUE) if successful, 0 (FALSE) otherwise.</span><br /><br />BOOL EZTAPI TWAIN_GetCapBool<span style="color: #000000;">&#40;</span>unsigned cap, BOOL bDefault<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Issue a DAT_CAPABILITY/MSG_GETCURRENT on the specified capability,</span><br /><span style="color: #B900B9;">// assuming the value type is TW_BOOL.</span><br /><span style="color: #B900B9;">// If successful, return the returned value. &nbsp;Otherwise return bDefault.</span><br /><span style="color: #B900B9;">// This is only valid in State 4 (TWAIN_SOURCE_OPEN) or higher.</span><br /><br />double EZTAPI TWAIN_GetCapFix32<span style="color: #000000;">&#40;</span>unsigned cap, double dDefault<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_GetCapUint16<span style="color: #000000;">&#40;</span>unsigned cap, int nDefault<span style="color: #000000;">&#41;</span>;<br /><br />int EZTAPI TWAIN_SetCapFix32<span style="color: #000000;">&#40;</span>unsigned Cap, double dVal<span style="color: #000000;">&#41;</span>;<br />int EZTAPI TWAIN_SetCapOneValue<span style="color: #000000;">&#40;</span>unsigned Cap,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unsigned ItemType,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; long ItemVal<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Do a DAT_CAPABILITY/MSG_SET, on capability 'Cap' (e.g. ICAP_PIXELTYPE,</span><br /><span style="color: #B900B9;">// CAP_AUTOFEED, etc.) using a TW_ONEVALUE container with the given item type</span><br /><span style="color: #B900B9;">// and value. &nbsp;Use SetCapFix32 for capabilities that take a FIX32 value,</span><br /><span style="color: #B900B9;">// use SetCapOneValue for the various ints and uints. &nbsp;These functions</span><br /><span style="color: #B900B9;">// do not support FRAME or STR items.</span><br /><span style="color: #B900B9;">// Return Value: TRUE (1) if successful, FALSE (0) otherwise.</span><br />int EZTAPI TWAIN_SetCapFix32R<span style="color: #000000;">&#40;</span>unsigned Cap, int Numerator, int Denominator<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Just like TWAIN_SetCapFix32, but uses the value Numerator/Denominator</span><br /><span style="color: #B900B9;">// This is useful for languages that make it hard to pass double parameters.</span><br /><br />int EZTAPI TWAIN_GetCapCurrent<span style="color: #000000;">&#40;</span>unsigned Cap,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;unsigned ItemType,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;void FAR *pVal<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Do a DAT_CAPABILITY/MSG_GETCURRENT on capability 'Cap'.</span><br /><span style="color: #B900B9;">// Copy the current value out of the returned container into *pVal.</span><br /><span style="color: #B900B9;">// If the operation fails (the source refuses the request), or if the</span><br /><span style="color: #B900B9;">// container is not a ONEVALUE or ENUMERATION, or if the item type of the</span><br /><span style="color: #B900B9;">// returned container is incompatible with the expected TWTY_ type in nType,</span><br /><span style="color: #B900B9;">// returns FALSE. &nbsp;If this function returns FALSE, *pVal is not touched.</span><br /><br />long EZTAPI TWAIN_ToFix32<span style="color: #000000;">&#40;</span>double d<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Convert a floating-point value to a 32-bit TW_FIX32 value that can be passed</span><br /><span style="color: #B900B9;">// to e.g. TWAIN_SetCapOneValue</span><br />long EZTAPI TWAIN_ToFix32R<span style="color: #000000;">&#40;</span>int Numerator, int Denominator<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Convert a rational number to a 32-bit TW_FIX32 value.</span><br /><span style="color: #B900B9;">// Returns a TW_FIX32 value that approximates Numerator/Denominator</span><br /><br />double EZTAPI TWAIN_Fix32ToFloat<span style="color: #000000;">&#40;</span>long nfix<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Convert a TW_FIX32 value (as returned from some capability inquiries)</span><br /><span style="color: #B900B9;">// to a double (floating point) value.</span><br /><br /><span style="color: #B900B9;">//--------- Lowest-level functions for TWAIN protocol --------</span><br /><br /><br />int EZTAPI TWAIN_DS<span style="color: #000000;">&#40;</span>unsigned long <span style="color: #0000ff;">DG</span>, unsigned DAT, unsigned MSG, void FAR *pData<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Pass the triplet (DG, DAT, MSG, pData) to the open data source if any.</span><br /><span style="color: #B900B9;">// Returns 1 (TRUE) if the result code is TWRC_SUCCESS, 0 (FALSE) otherwise.</span><br /><span style="color: #B900B9;">// The last result code can be retrieved with TWAIN_GetResultCode(), and the</span><br /><span style="color: #B900B9;">// corresponding condition code can be retrieved with TWAIN_GetConditionCode().</span><br /><span style="color: #B900B9;">// If no source is open this call will fail, result code TWRC_FAILURE,</span><br /><span style="color: #B900B9;">// condition code TWCC_NODS.</span><br /><br />int EZTAPI TWAIN_Mgr<span style="color: #000000;">&#40;</span>unsigned long <span style="color: #0000ff;">DG</span>, unsigned DAT, unsigned MSG, void FAR *pData<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Pass a triplet to the Data Source Manager (DSM).</span><br /><span style="color: #B900B9;">// Returns 1 (TRUE) for success, 0 (FALSE) otherwise.</span><br /><span style="color: #B900B9;">// See GetResultCode, GetConditionCode, and ReportLastError functions</span><br /><span style="color: #B900B9;">// for diagnosing and reporting a TWAIN_Mgr failure.</span><br /><span style="color: #B900B9;">// If the Source Manager is not open, this call fails setting result code</span><br /><span style="color: #B900B9;">// TWRC_FAILURE, and condition code=TWCC_SEQERROR (triplet out of sequence).</span><br /><br /><br /><span style="color: #B900B9;">//--------- Dosadi Special --------</span><br /><br />char* EZTAPI TWAIN_BuildName<span style="color: #000000;">&#40;</span>void<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Return a string describing the build of EZTWAIN e.g. "Beta1 Debug"</span><br /><br />void EZTAPI TWAIN_GetBuildName<span style="color: #000000;">&#40;</span>LPSTR psName<span style="color: #000000;">&#41;</span>;<br /><br />int EZTAPI TWAIN_GetSourceIdentity<span style="color: #000000;">&#40;</span>LPVOID ptwid<span style="color: #000000;">&#41;</span>;<br /><br />void EZTAPI TWAIN_LogFile<span style="color: #000000;">&#40;</span>int fLog<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Turn logging to c:\eztwain.log on or off.</span><br /><span style="color: #B900B9;">// fLog = 0 &nbsp; &nbsp;close log file and turn off logging</span><br /><span style="color: #B900B9;">// fLog != 0 &nbsp; open log file (if not already) and start logging</span><br /><br />int EZTAPI TWAIN_SelfTest<span style="color: #000000;">&#40;</span>unsigned f<span style="color: #000000;">&#41;</span>;<br /><span style="color: #B900B9;">// Perform internal self-test.</span><br /><span style="color: #B900B9;">// &nbsp; f &nbsp; &nbsp; &nbsp;ignored for now</span><br /><span style="color: #B900B9;">// Return value:</span><br /><span style="color: #B900B9;">// &nbsp; 0 &nbsp; &nbsp; &nbsp;success</span><br /><span style="color: #B900B9;">// &nbsp; other &nbsp;internal test failed.</span><br /><br /><span style="color: #B900B9;">// For use only by direct-linked applications:</span><br />int EZTWAIN_Attach<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />int EZTWAIN_Detach<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><br />#ifdef __cplusplus<br /><span style="color: #000000;">&#125;</span><br />#endif<br /><br />#endif<br /><br /><span style="color: #B900B9;">// History: See end of file eztwain.c</span><br /><br /><br />&nbsp;</div>[/code:3tg6nnig]
Compilando TSCAN MVC2010
Aqui en este link esta la dll EZTW32.DLL [url:3k2yy039]http&#58;//190&#46;90&#46;160&#46;205/pruebas/EZTW32&#46;zip[/url:3k2yy039] Slds
Compilando TSCAN MVC2010
Prueba asi: extern "C" { #include "eztwain.h" };
Compilando TSCAN MVC2010
Antonio, Al colocar la instrucion y compilar sale los siguientes mensajes de error y warning solo coloque los primeros mensajes: [code=fw:10b76vrc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">289</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">error</span> C2059: <span style="color: #000000;">error</span> de sintaxis : <span style="color: #ff0000;">'cadena'</span> <span style="color: #B900B9;">//Aqui es donde coloco el extern ....</span><br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">299</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_Acquire'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">304</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_FreeNative'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">310</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_SelectImageSource'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">315</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_AcquireNative'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">320</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_AcquireToClipboard'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">325</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_AcquireMemory'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">330</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_AcquireToFilename'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">335</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_AcquireFile'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">342</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_IsAvailable'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">347</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_EasyVersion'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">352</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_State'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">357</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4013: <span style="color: #ff0000;">'TWAIN_SourceName'</span> <span style="color: #0000ff;">sin</span> definir; se supone que extern devuelve como resultado int<br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">357</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4047: <span style="color: #ff0000;">'función'</span> : <span style="color: #ff0000;">'const char *'</span> es distinto en los niveles de direccionamiento indirecto de <span style="color: #ff0000;">'int'</span><br />C:\fuentes\Librerias\recurlib\Source\TSCAN<span style="color: #000000;">.000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">357</span><span style="color: #000000;">&#41;</span> : <span style="color: #000000;">warning</span> C4024: <span style="color: #ff0000;">'hb_retc'</span> : <span style="color: #000000;">tipos</span> distintos para el parámetro formal y el parámetro real <span style="color: #000000;">1</span><br /><br /> </div>[/code:10b76vrc]
Compilando TSCAN MVC2010
Si le agrego el parametro /TP la compilar deja de salir el error del extern pero salen los mismos simbolos no resueltos anteriores. Slds
Compilando TSCAN MVC2010
Nicanor, Prueba a modificar el fichero DEF, por ejemplo: _TWAIN_Acquire@4 @101 ; TWAIN_Acquire
Compilando TSCAN MVC2010
Gracias Antonio, Probare y te comento, ya he adelantado mucho con MSVC 2010 y he compilado todas mis librerías con Harbour 3.1 pero TScan ha sido la mas dura de roer. Slds,
Compilando TSCAN MVC2010
Gracias Antonio, ya enlazo perfecto sin simbolos no resueltos, al parecer esta todo bien , mañana pruebo con un scanner y verifico si funciona. dejo el .def modidicado segun tus instrucciones: [code=fw:h5h8twn9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">LIBRARY</span> &nbsp; &nbsp; EZTW32.DLL<br /><br />EXPORTS<br />&nbsp; &nbsp; CONTAINER_Array &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">317</span> ; CONTAINER_Array<br />&nbsp; &nbsp; CONTAINER_ContainsValue &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">308</span> ; CONTAINER_ContainsValue<br />&nbsp; &nbsp; CONTAINER_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">302</span> ; CONTAINER_Copy<br />&nbsp; &nbsp; CONTAINER_CurrentIndex &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">324</span> ; CONTAINER_CurrentIndex<br />&nbsp; &nbsp; CONTAINER_CurrentValue &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">310</span> ; CONTAINER_CurrentValue<br />&nbsp; &nbsp; CONTAINER_DefaultIndex &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">323</span> ; CONTAINER_DefaultIndex<br />&nbsp; &nbsp; CONTAINER_DefaultValue &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">311</span> ; CONTAINER_DefaultValue<br />&nbsp; &nbsp; CONTAINER_DeleteItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">321</span> ; CONTAINER_DeleteItem<br />&nbsp; &nbsp; CONTAINER_Enumeration &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">318</span> ; CONTAINER_Enumeration<br />&nbsp; &nbsp; CONTAINER_FindValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">309</span> ; CONTAINER_FindValue<br />&nbsp; &nbsp; CONTAINER_FloatValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">306</span> ; CONTAINER_FloatValue<br />&nbsp; &nbsp; CONTAINER_Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">303</span> ; CONTAINER_Format<br />&nbsp; &nbsp; CONTAINER_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">301</span> ; CONTAINER_Free<br />&nbsp; &nbsp; CONTAINER_InsertItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">322</span> ; CONTAINER_InsertItem<br />&nbsp; &nbsp; CONTAINER_IntValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">307</span> ; CONTAINER_IntValue<br />&nbsp; &nbsp; CONTAINER_ItemCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">305</span> ; CONTAINER_ItemCount<br />&nbsp; &nbsp; CONTAINER_ItemType &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">304</span> ; CONTAINER_ItemType<br />&nbsp; &nbsp; CONTAINER_MaxValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">313</span> ; CONTAINER_MaxValue<br />&nbsp; &nbsp; CONTAINER_MinValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">312</span> ; CONTAINER_MinValue<br />&nbsp; &nbsp; CONTAINER_OneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">315</span> ; CONTAINER_OneValue<br />&nbsp; &nbsp; CONTAINER_Range &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">316</span> ; CONTAINER_Range<br />&nbsp; &nbsp; CONTAINER_SelectCurrentItem &nbsp; &nbsp;@<span style="color: #000000;">320</span> ; CONTAINER_SelectCurrentItem<br />&nbsp; &nbsp; CONTAINER_SelectCurrentValue &nbsp; @<span style="color: #000000;">328</span> ; CONTAINER_SelectCurrentValue<br />&nbsp; &nbsp; CONTAINER_SelectDefaultItem &nbsp; &nbsp;@<span style="color: #000000;">327</span> ; CONTAINER_SelectDefaultItem<br />&nbsp; &nbsp; CONTAINER_SelectDefaultValue &nbsp; @<span style="color: #000000;">326</span> ; CONTAINER_SelectDefaultValue<br />&nbsp; &nbsp; CONTAINER_SetItem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">319</span> ; CONTAINER_SetItem<br />&nbsp; &nbsp; CONTAINER_SetItemFrame &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">330</span> ; CONTAINER_SetItemFrame<br />&nbsp; &nbsp; CONTAINER_SetItemString &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">329</span> ; CONTAINER_SetItemString<br />&nbsp; &nbsp; CONTAINER_StepSize &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">314</span> ; CONTAINER_StepSize<br />&nbsp; &nbsp; CONTAINER_ValuePtr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">325</span> ; CONTAINER_ValuePtr<br />&nbsp; &nbsp; DIB_Allocate &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">201</span> ; DIB_Allocate<br />&nbsp; &nbsp; DIB_ColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">216</span> ; DIB_ColorCount<br />&nbsp; &nbsp; DIB_ColorTableB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">231</span> ; DIB_ColorTableB<br />&nbsp; &nbsp; DIB_ColorTableG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">230</span> ; DIB_ColorTableG<br />&nbsp; &nbsp; DIB_ColorTableR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">229</span> ; DIB_ColorTableR<br />&nbsp; &nbsp; DIB_Copy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">228</span> ; DIB_Copy<br />&nbsp; &nbsp; DIB_CreatePalette &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">214</span> ; DIB_CreatePalette<br />&nbsp; &nbsp; DIB_Depth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">205</span> ; DIB_Depth<br />&nbsp; &nbsp; DIB_DrawToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">212</span> ; DIB_DrawToDC<br />&nbsp; &nbsp; DIB_Free &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">215</span> ; DIB_Free<br />&nbsp; &nbsp; DIB_GetFromClipboard@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">227</span> ; DIB_GetFromClipboard<br />&nbsp; &nbsp; DIB_Height &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">207</span> ; DIB_Height<br />&nbsp; &nbsp; DIB_LoadFromFilename &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">221</span> ; DIB_LoadFromFilename<br />&nbsp; &nbsp; DIB_Lock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">209</span> ; DIB_Lock<br />&nbsp; &nbsp; DIB_PutOnClipboard &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">224</span> ; DIB_PutOnClipboard<br />&nbsp; &nbsp; DIB_ReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">213</span> ; DIB_ReadRow<br />&nbsp; &nbsp; DIB_ReadRowRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">232</span> ; DIB_ReadRowRGB<br />&nbsp; &nbsp; DIB_RowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">208</span> ; DIB_RowBytes<br />&nbsp; &nbsp; DIB_SetColorCount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">223</span> ; DIB_SetColorCount<br />&nbsp; &nbsp; DIB_SetColorTableRGB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">218</span> ; DIB_SetColorTableRGB<br />&nbsp; &nbsp; DIB_SetGrayColorTable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">217</span> ; DIB_SetGrayColorTable<br />&nbsp; &nbsp; DIB_SetResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">202</span> ; DIB_SetResolution<br />&nbsp; &nbsp; DIB_SwapRedBlue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">222</span> ; DIB_SwapRedBlue<br />&nbsp; &nbsp; DIB_Unlock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">210</span> ; DIB_Unlock<br />&nbsp; &nbsp; DIB_Width &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">206</span> ; DIB_Width<br />&nbsp; &nbsp; DIB_WriteRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">211</span> ; DIB_WriteRow<br />&nbsp; &nbsp; DIB_WriteRowChannel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">226</span> ; DIB_WriteRowChannel<br />&nbsp; &nbsp; DIB_WriteToBmp@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">219</span> ; DIB_WriteToBmp<br />&nbsp; &nbsp; DIB_WriteToBmpFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">225</span> ; DIB_WriteToBmpFile<br />&nbsp; &nbsp; DIB_WriteToJpeg@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">220</span> ; DIB_WriteToJpeg<br />&nbsp; &nbsp; DIB_XResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">203</span> ; DIB_XResolution<br />&nbsp; &nbsp; DIB_YResolution &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">204</span> ; DIB_YResolution<br />&nbsp; &nbsp; DllMain &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">27</span> &nbsp;; DllMain<br />&nbsp; &nbsp; TWAIN_AbortAllPendingXfers &nbsp; &nbsp; @<span style="color: #000000;">1</span> &nbsp; ; TWAIN_AbortAllPendingXfers<br />&nbsp; &nbsp; TWAIN_Acquire@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">101</span> ; TWAIN_Acquire<br />&nbsp; &nbsp; TWAIN_AcquireFile@<span style="color: #000000;">12</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">142</span> ; TWAIN_AcquireFile<br />&nbsp; &nbsp; TWAIN_AcquireMemory@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">89</span> &nbsp;; TWAIN_AcquireMemory<br />&nbsp; &nbsp; TWAIN_AcquireMemoryCallback &nbsp; &nbsp;@<span style="color: #000000;">143</span> ; TWAIN_AcquireMemoryCallback<br />&nbsp; &nbsp; TWAIN_AcquireNative@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">2</span> &nbsp; ; TWAIN_AcquireNative<br />&nbsp; &nbsp; TWAIN_AcquireToClipboard@<span style="color: #000000;">8</span> &nbsp; &nbsp; @<span style="color: #000000;">3</span> &nbsp; ; TWAIN_AcquireToClipboard<br />&nbsp; &nbsp; TWAIN_AcquireToFilename@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">4</span> &nbsp; ; TWAIN_AcquireToFilename<br />&nbsp; &nbsp; TWAIN_BreakModalLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">59</span> &nbsp;; TWAIN_BreakModalLoop<br />&nbsp; &nbsp; TWAIN_BuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">73</span> &nbsp;; TWAIN_BuildName<br />&nbsp; &nbsp; TWAIN_ClearError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">55</span> &nbsp;; TWAIN_ClearError<br />&nbsp; &nbsp; TWAIN_CloseSource@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">5</span> &nbsp; ; TWAIN_CloseSource<br />&nbsp; &nbsp; TWAIN_CloseSourceManager@<span style="color: #000000;">4</span> &nbsp; &nbsp; @<span style="color: #000000;">6</span> &nbsp; ; TWAIN_CloseSourceManager<br />&nbsp; &nbsp; TWAIN_Compression@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">104</span> ; TWAIN_Compression<br />&nbsp; &nbsp; TWAIN_CreateDibPalette &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">7</span> &nbsp; ; TWAIN_CreateDibPalette<br />&nbsp; &nbsp; TWAIN_DS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">8</span> &nbsp; ; TWAIN_DS<br />&nbsp; &nbsp; TWAIN_DibDepth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">9</span> &nbsp; ; TWAIN_DibDepth<br />&nbsp; &nbsp; TWAIN_DibHeight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">10</span> &nbsp;; TWAIN_DibHeight<br />&nbsp; &nbsp; TWAIN_DibNumColors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">11</span> &nbsp;; TWAIN_DibNumColors<br />&nbsp; &nbsp; TWAIN_DibReadRow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">71</span> &nbsp;; TWAIN_DibReadRow<br />&nbsp; &nbsp; TWAIN_DibRowBytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">70</span> &nbsp;; TWAIN_DibRowBytes<br />&nbsp; &nbsp; TWAIN_DibWidth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">12</span> &nbsp;; TWAIN_DibWidth<br />&nbsp; &nbsp; TWAIN_DisableParent@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">144</span> ; TWAIN_DisableParent<br />&nbsp; &nbsp; TWAIN_DisableSource@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">13</span> &nbsp;; TWAIN_DisableSource<br />&nbsp; &nbsp; TWAIN_DrawDibToDC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">14</span> &nbsp;; TWAIN_DrawDibToDC<br />&nbsp; &nbsp; TWAIN_EasyVersion@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">15</span> &nbsp;; TWAIN_EasyVersion<br />&nbsp; &nbsp; TWAIN_EnableDuplex@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">126</span> ; TWAIN_EnableDuplex<br />&nbsp; &nbsp; TWAIN_EnableSource@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">16</span> &nbsp;; TWAIN_EnableSource<br />&nbsp; &nbsp; TWAIN_EndXfer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">53</span> &nbsp;; TWAIN_EndXfer<br />&nbsp; &nbsp; TWAIN_ErrorBox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">51</span> &nbsp;; TWAIN_ErrorBox<br />&nbsp; &nbsp; TWAIN_Fix32ToFloat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">63</span> &nbsp;; TWAIN_Fix32ToFloat<br />&nbsp; &nbsp; TWAIN_FreeNative@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">17</span> &nbsp;; TWAIN_FreeNative<br />&nbsp; &nbsp; TWAIN_Get &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">78</span> &nbsp;; TWAIN_Get<br />&nbsp; &nbsp; TWAIN_GetBitDepth@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">18</span> &nbsp;; TWAIN_GetBitDepth<br />&nbsp; &nbsp; TWAIN_GetBuildName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">88</span> &nbsp;; TWAIN_GetBuildName<br />&nbsp; &nbsp; TWAIN_GetCapBool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">72</span> &nbsp;; TWAIN_GetCapBool<br />&nbsp; &nbsp; TWAIN_GetCapCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">19</span> &nbsp;; TWAIN_GetCapCurrent<br />&nbsp; &nbsp; TWAIN_GetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">76</span> &nbsp;; TWAIN_GetCapFix32<br />&nbsp; &nbsp; TWAIN_GetCapUint16 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">77</span> &nbsp;; TWAIN_GetCapUint16<br />&nbsp; &nbsp; TWAIN_GetConditionCode &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">20</span> &nbsp;; TWAIN_GetConditionCode<br />&nbsp; &nbsp; TWAIN_GetCurrent &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">80</span> &nbsp;; TWAIN_GetCurrent<br />&nbsp; &nbsp; TWAIN_GetCurrentResolution@<span style="color: #000000;">0</span> &nbsp; @<span style="color: #000000;">21</span> &nbsp;; TWAIN_GetCurrentResolution<br />&nbsp; &nbsp; TWAIN_GetCurrentThreshold@<span style="color: #000000;">0</span> &nbsp; &nbsp;@<span style="color: #000000;">75</span> &nbsp;; TWAIN_GetCurrentThreshold<br />&nbsp; &nbsp; TWAIN_GetCurrentUnits@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">22</span> &nbsp;; TWAIN_GetCurrentUnits<br />&nbsp; &nbsp; TWAIN_GetDefault &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">79</span> &nbsp;; TWAIN_GetDefault<br />&nbsp; &nbsp; TWAIN_GetDefaultImageLayout@<span style="color: #000000;">16</span> @<span style="color: #000000;">149</span> ; TWAIN_GetDefaultImageLayout<br />&nbsp; &nbsp; TWAIN_GetDefaultSourceName@<span style="color: #000000;">4</span> &nbsp; @<span style="color: #000000;">140</span> ; TWAIN_GetDefaultSourceName<br />&nbsp; &nbsp; TWAIN_GetDisableParent@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">145</span> ; TWAIN_GetDisableParent<br />&nbsp; &nbsp; TWAIN_GetDuplexSupport@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">125</span> ; TWAIN_GetDuplexSupport<br />&nbsp; &nbsp; TWAIN_GetHideUI@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">23</span> &nbsp;; TWAIN_GetHideUI<br />&nbsp; &nbsp; TWAIN_GetImageLayout@<span style="color: #000000;">16</span> &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">148</span> ; TWAIN_GetImageLayout<br />&nbsp; &nbsp; TWAIN_GetJpegQuality@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">133</span> ; TWAIN_GetJpegQuality<br />&nbsp; &nbsp; TWAIN_GetMultiTransfer@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">69</span> &nbsp;; TWAIN_GetMultiTransfer<br />&nbsp; &nbsp; TWAIN_GetNextSourceName@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">139</span> ; TWAIN_GetNextSourceName<br />&nbsp; &nbsp; TWAIN_GetPixelType@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">24</span> &nbsp;; TWAIN_GetPixelType<br />&nbsp; &nbsp; TWAIN_GetResultCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">25</span> &nbsp;; TWAIN_GetResultCode<br />&nbsp; &nbsp; TWAIN_GetSaveFormat@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">131</span> ; TWAIN_GetSaveFormat<br />&nbsp; &nbsp; TWAIN_GetSourceList@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">138</span> ; TWAIN_GetSourceList<br />&nbsp; &nbsp; TWAIN_GetSourceName@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">135</span> ; TWAIN_GetSourceName<br />&nbsp; &nbsp; TWAIN_GetYResolution@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">64</span> &nbsp;; TWAIN_GetYResolution<br />&nbsp; &nbsp; TWAIN_HasControllableUI@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">121</span> ; TWAIN_HasControllableUI<br />&nbsp; &nbsp; TWAIN_HasFeeder@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">115</span> ; TWAIN_HasFeeder<br />&nbsp; &nbsp; TWAIN_IsAutoFeedOn@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">118</span> ; TWAIN_IsAutoFeedOn<br />&nbsp; &nbsp; TWAIN_IsAvailable@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">26</span> &nbsp;; TWAIN_IsAvailable<br />&nbsp; &nbsp; TWAIN_IsDuplexEnabled@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">127</span> ; TWAIN_IsDuplexEnabled<br />&nbsp; &nbsp; TWAIN_IsFeederLoaded@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">122</span> ; TWAIN_IsFeederLoaded<br />&nbsp; &nbsp; TWAIN_IsFeederSelected@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">116</span> ; TWAIN_IsFeederSelected<br />&nbsp; &nbsp; TWAIN_IsJpegAvailable@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">134</span> ; TWAIN_IsJpegAvailable<br />&nbsp; &nbsp; TWAIN_IsTransferReady &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">146</span> ; TWAIN_IsTransferReady<br />&nbsp; &nbsp; TWAIN_LastErrorCode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">56</span> &nbsp;; TWAIN_LastErrorCode<br />&nbsp; &nbsp; TWAIN_LoadNativeFromFilename@<span style="color: #000000;">4</span> @<span style="color: #000000;">28</span> &nbsp;; TWAIN_LoadNativeFromFilename<br />&nbsp; &nbsp; TWAIN_LoadSourceManager@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">29</span> &nbsp;; TWAIN_LoadSourceManager<br />&nbsp; &nbsp; TWAIN_LogFile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">151</span> ; TWAIN_LogFile<br />&nbsp; &nbsp; TWAIN_MessageHook &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">30</span> &nbsp;; TWAIN_MessageHook<br />&nbsp; &nbsp; TWAIN_Mgr &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">31</span> &nbsp;; TWAIN_Mgr<br />&nbsp; &nbsp; TWAIN_ModalEventLoop &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">32</span> &nbsp;; TWAIN_ModalEventLoop<br />&nbsp; &nbsp; TWAIN_NegotiatePixelTypes &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">33</span> &nbsp;; TWAIN_NegotiatePixelTypes<br />&nbsp; &nbsp; TWAIN_NegotiateXferCount &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">34</span> &nbsp;; TWAIN_NegotiateXferCount<br />&nbsp; &nbsp; TWAIN_OpenDefaultSource@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">35</span> &nbsp;; TWAIN_OpenDefaultSource<br />&nbsp; &nbsp; TWAIN_OpenSource@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">137</span> ; TWAIN_OpenSource<br />&nbsp; &nbsp; TWAIN_OpenSourceManager@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">36</span> &nbsp;; TWAIN_OpenSourceManager<br />&nbsp; &nbsp; TWAIN_PixelFlavor@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">110</span> ; TWAIN_PixelFlavor<br />&nbsp; &nbsp; TWAIN_PlanarChunky@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">108</span> ; TWAIN_PlanarChunky<br />&nbsp; &nbsp; TWAIN_RegisterApp@<span style="color: #000000;">32</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">37</span> &nbsp;; TWAIN_RegisterApp<br />&nbsp; &nbsp; TWAIN_ReportLastError &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">50</span> &nbsp;; TWAIN_ReportLastError<br />&nbsp; &nbsp; TWAIN_Reset &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">82</span> &nbsp;; TWAIN_Reset<br />&nbsp; &nbsp; TWAIN_ResetImageLayout@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">150</span> ; TWAIN_ResetImageLayout<br />&nbsp; &nbsp; TWAIN_SelectFeeder@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">117</span> ; TWAIN_SelectFeeder<br />&nbsp; &nbsp; TWAIN_SelectImageSource@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">38</span> &nbsp;; TWAIN_SelectImageSource<br />&nbsp; &nbsp; TWAIN_SelfTest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">147</span> ; TWAIN_SelfTest<br />&nbsp; &nbsp; TWAIN_Set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">81</span> &nbsp;; TWAIN_Set<br />&nbsp; &nbsp; TWAIN_SetAppTitle@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">152</span> ; TWAIN_SetAppTitle<br />&nbsp; &nbsp; TWAIN_SetAutoBright@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">83</span> &nbsp;; TWAIN_SetAutoBright@<span style="color: #000000;">4</span><br />&nbsp; &nbsp; TWAIN_SetAutoFeed@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">119</span> ; TWAIN_SetAutoFeed<br />&nbsp; &nbsp; TWAIN_SetBitDepth@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">39</span> &nbsp;; TWAIN_SetBitDepth<br />&nbsp; &nbsp; TWAIN_SetBrightness@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">61</span> &nbsp;; TWAIN_SetBrightness<br />&nbsp; &nbsp; TWAIN_SetCapFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">87</span> &nbsp;; TWAIN_SetCapFix32<br />&nbsp; &nbsp; TWAIN_SetCapFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">128</span> ; TWAIN_SetCapFix32R<br />&nbsp; &nbsp; TWAIN_SetCapOneValue &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">40</span> &nbsp;; TWAIN_SetCapOneValue<br />&nbsp; &nbsp; TWAIN_SetCompression@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">105</span> ; TWAIN_SetCompression<br />&nbsp; &nbsp; TWAIN_SetContrast@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">60</span> &nbsp;; TWAIN_SetContrast<br />&nbsp; &nbsp; TWAIN_SetCurrentPixelType@<span style="color: #000000;">4</span> &nbsp; &nbsp;@<span style="color: #000000;">41</span> &nbsp;; TWAIN_SetCurrentPixelType<br />&nbsp; &nbsp; TWAIN_SetCurrentResolution@<span style="color: #000000;">8</span> &nbsp; @<span style="color: #000000;">42</span> &nbsp;; TWAIN_SetCurrentResolution<br />&nbsp; &nbsp; TWAIN_SetCurrentUnits@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">43</span> &nbsp;; TWAIN_SetCurrentUnits<br />&nbsp; &nbsp; TWAIN_SetGamma@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">102</span> ; TWAIN_SetGamma<br />&nbsp; &nbsp; TWAIN_SetHideUI@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">44</span> &nbsp;; TWAIN_SetHideUI<br />&nbsp; &nbsp; TWAIN_SetHighlight@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">86</span> &nbsp;; TWAIN_SetHighlight<br />&nbsp; &nbsp; TWAIN_SetImageLayout@<span style="color: #000000;">32</span> &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">113</span> ; TWAIN_SetImageLayout<br />&nbsp; &nbsp; TWAIN_SetIndicators@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">120</span> ; TWAIN_SetIndicators<br />&nbsp; &nbsp; TWAIN_SetJpegQuality@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">132</span> ; TWAIN_SetJpegQuality<br />&nbsp; &nbsp; TWAIN_SetLightPath@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">103</span> ; TWAIN_SetLightPath<br />&nbsp; &nbsp; TWAIN_SetMultiTransfer@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">68</span> &nbsp;; TWAIN_SetMultiTransfer<br />&nbsp; &nbsp; TWAIN_SetPaperSize@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">84</span> &nbsp;; TWAIN_SetPaperSize<br />&nbsp; &nbsp; TWAIN_SetPixelFlavor@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">111</span> ; TWAIN_SetPixelFlavor<br />&nbsp; &nbsp; TWAIN_SetPlanarChunky@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">109</span> ; TWAIN_SetPlanarChunky<br />&nbsp; &nbsp; TWAIN_SetSaveFormat@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">130</span> ; TWAIN_SetSaveFormat<br />&nbsp; &nbsp; TWAIN_SetShadow@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">85</span> &nbsp;; TWAIN_SetShadow<br />&nbsp; &nbsp; TWAIN_SetThreshold@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">74</span> &nbsp;; TWAIN_SetThreshold<br />&nbsp; &nbsp; TWAIN_SetTiled@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">107</span> ; TWAIN_SetTiled<br />&nbsp; &nbsp; TWAIN_SetXResolution@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">123</span> ; TWAIN_SetXResolution<br />&nbsp; &nbsp; TWAIN_SetXferMech@<span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">66</span> &nbsp;; TWAIN_SetXferMech<br />&nbsp; &nbsp; TWAIN_SetYResolution@<span style="color: #000000;">8</span> &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">124</span> ; TWAIN_SetYResolution<br />&nbsp; &nbsp; TWAIN_SourceName@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">136</span> ; TWAIN_SourceName<br />&nbsp; &nbsp; TWAIN_State@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">45</span> &nbsp;; TWAIN_State<br />&nbsp; &nbsp; TWAIN_SupportsFileXfer@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">141</span> ; TWAIN_SupportsFileXfer<br />&nbsp; &nbsp; TWAIN_SuppressErrorMessages &nbsp; &nbsp;@<span style="color: #000000;">52</span> &nbsp;; TWAIN_SuppressErrorMessages<br />&nbsp; &nbsp; TWAIN_Testing123 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">67</span> &nbsp;; TWAIN_Testing123<br />&nbsp; &nbsp; TWAIN_Tiled@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">106</span> ; TWAIN_Tiled<br />&nbsp; &nbsp; TWAIN_ToFix32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">62</span> &nbsp;; TWAIN_ToFix32<br />&nbsp; &nbsp; TWAIN_ToFix32R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">129</span> ; TWAIN_ToFix32R<br />&nbsp; &nbsp; TWAIN_UnloadSourceManager@<span style="color: #000000;">0</span> &nbsp; &nbsp;@<span style="color: #000000;">46</span> &nbsp;; TWAIN_UnloadSourceManager<br />&nbsp; &nbsp; TWAIN_UserClosedSource &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">57</span> &nbsp;; TWAIN_UserClosedSource<br />&nbsp; &nbsp; TWAIN_WaitForNativeXfer &nbsp; &nbsp; &nbsp; &nbsp;@<span style="color: #000000;">54</span> &nbsp;; TWAIN_WaitForNativeXfer<br />&nbsp; &nbsp; TWAIN_WriteNativeToFilename@<span style="color: #000000;">8</span> &nbsp;@<span style="color: #000000;">49</span> &nbsp;; TWAIN_WriteNativeToFilename<br />&nbsp; &nbsp; TWAIN_XferMech@<span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @<span style="color: #000000;">65</span> &nbsp;; TWAIN_XferMech<br /><br />&nbsp;</div>[/code:h5h8twn9] Slds
Compilando Toolbar1.prg
Estoy usando FWH febrero + harbour 45.0 + bcc 5.5 que estan en la entrega de Febrero del FTDN estoy usando en una aplicacion grande los TOOLBAR tal como en el ejemplo por comando DEFINE del Toolbar1.prg y me genera el siguiente error : Compiling 'toolbar1.prg' and generating preprocessed output to 'toolbar1.ppo'. toolbar1.prg(26) Error E0030 Syntax error: "parse error at '['" 1 error igualmente en mi aplicacion. de antemano gracias. Mario Gonzalez
Compilando Toolbar1.prg
Mario, Modifica este comando dentro de FiveWin.ch, gracias: [code:34qk9tmi] #xcommand DEFINE TOOLBAR <oTlb> ; &#91; <dlg&#58; OF, WINDOW, DIALOG> <oWnd> &#93; ; &#91; SIZE <nWidth>, <nHeight> &#93; ; &#91; IMAGELIST <oImg> &#93; ; &#91; <balloon&#58; BALLOON > &#93; ; => ; <oTlb> &#58;= TToolBar&#40;&#41;&#58;New&#40; <oWnd>, &#91;<nWidth>&#93;, &#91;<nHeight>&#93;, &#91;<oImg>&#93;,; &#91;<&#46;balloon&#46;>&#93; &#41; [/code:34qk9tmi]
Compilando Toolbar1.prg
[quote="Antonio Linares":106f35vx]Mario, Modifica este comando dentro de FiveWin.ch, gracias: [code:106f35vx] #xcommand DEFINE TOOLBAR <oTlb> ; &#91; <dlg&#58; OF, WINDOW, DIALOG> <oWnd> &#93; ; &#91; SIZE <nWidth>, <nHeight> &#93; ; &#91; IMAGELIST <oImg> &#93; ; &#91; <balloon&#58; BALLOON > &#93; ; => ; <oTlb> &#58;= TToolBar&#40;&#41;&#58;New&#40; <oWnd>, &#91;<nWidth>&#93;, &#91;<nHeight>&#93;, &#91;<oImg>&#93;,; &#91;<&#46;balloon&#46;>&#93; &#41; [/code:106f35vx][/quote:106f35vx] Antonio, es eso correcto ??? es decir, se debe hacer esa corrección ??? Yo no tengo FWH de febrero, pero me habian reportado ese error como un error de VERCE, sin embargo, le pedi al usuario que compilara con /p y vi el problema que se menciona, sin embargo, esto no funciona con XHARBOUR, acaso es algún error del preprocesador de HARBOUR ??? Solo sucede con la toolbar ???? Te agradeceria tus comentarios Gracias
Compilando Toolbar1.prg
Juan Carlos, Es que <oTlb> no estaba como opcional en el comando y si estaba opcional en el resultado. Esto antes lo permitía el preprocesador, pero ahora se ha corregido.
Compilando Toolbar1.prg
[quote="Antonio Linares":nzs7ranr]Juan Carlos, Es que <oTlb> no estaba como opcional en el comando y si estaba opcional en el resultado. Esto antes lo permitía el preprocesador, pero ahora se ha corregido.[/quote:nzs7ranr] entonces se tendría que cambiar el FiveWin.ch con el cambio que mensionas para que funcione ok. y solo es con la IMAGELIST ?? o hay algun otro comando que haya que cambiar ??? Gracias antonio
Compilando Toolbar1.prg
Juan Carlos, #xcommand DEFINE IMAGELIST ... y #xcommand DEFINE TOOLBAR <oTlb> ... solamente
Compilando Winsock.c
Antonio : Me podrías decir cuales son los flags correspondientes para compilar correctamente el programa Winsock.c.
Compilando Winsock.c
Victor, -DARM -DUNICODE -D__HARBOUR__ -DHB_API_MACROS -D__FLAT__ y primero tienes que llamar a tools\clp2harb.exe para que adapte el fichero C a formato compatible con Harbour.