Al seleccionar un item, el recuadro aparece más arriba.
A ver si damos con la solución, gracias!
iParentsWithCaption++; // nuevo !!!
pt.x = rct.left;
pt.y = rct.top;
ScreenToClient( hWndParent, &pt );
rct.left = pt.x + ( iParentsWithCaption * GetSystemMetrics( SM_CXFRAME ) );
rct.top = pt.y + ( iParentsWithCaption * ( GetSystemMetrics( SM_CYCAPTION ) + GetSystemMetrics( SM_CYFRAME ) ) );
while( GetParent( hWndParent ) )
{
#ifndef UNICODE
char ClassName[ 100 ];
GetClassName( hWndParent, ClassName, 99 );
if( strcmp( ClassName, "#32770" ) == 0 ) // a Modal Dialog
break;
if( lstrcmp( ClassName, "MDIClient" ) == 0 ) // MDIClient
iParentsWithCaption++;
Return to EasyReport, EasyDialog y EasyPreview
Users browsing this forum: No registered users and 1 guest