|
Posted by Dogs on June 10, 2005, 5:43 am
Please log in for more thread options
I think I have discoverd what the symptoms to the problem are.
the HTML that I am passing to the control is being formatted into a
string.
the code to do this is
show/hide quoted text
l_sHTML = _T("<HTML><HEAD></HEAD><BODY>");
l_sHTML += _T("<TABLE width='100%%'><TR>");
//if a thumbnail was passed in then use it
if( m_hThumbnailBitmap )
{
show/hide quoted text
l_sHTML += _T("<TD VALIGN='TOP'><IMG Src='IMG1'></TD>");
}
show/hide quoted text
l_sHTML += _T("<TD VALIGN='TOP'>");
l_sHTML += _T("<FONT COLOR=");
l_sHTML += l_sColour;
show/hide quoted text
l_sHTML += _T(">");
l_sHTML += ("<B>");
l_sHTML += m_strHeading;
show/hide quoted text
l_sHTML += _T("</B>");
l_sHTML += _T("</FONT>");
l_sHTML += _T("<P>");
l_sHTML += _T("<FONT COLOR=");
l_sHTML += l_sColour;
show/hide quoted text
l_sHTML += _T(">");
l_sHTML += m_strTime;
show/hide quoted text
l_sHTML += _T("<BR><BR>");
l_sHTML += _T("</FONT>");
l_sHTML += m_strBody;
show/hide quoted text
l_sHTML += _T("</P>");
l_sHTML += _T("</BODY></HTML>");
It seems that this HTML is causing the scroll bar to bounce to the
bottom.
I dont see anything wrong with the HTML.
Can any of you guys?
Is this a bug.
Cheers
A
Dogs wrote:
show/hide quoted text
> Hi,
> I have a HTML Control sitting on a dialog.
> I pass it a big chunk (more than a screens worth) of HTML which
> displays properly formatted etc. But, for some reason when the control
> is displayed, it is scrolled to the bottom of the content.
> have any of you seen this?
>
> Any ideas what I am doing wrong
>
> Thanks
>
> A
|
l_sHTML += _T("<TABLE width='100%%'><TR>");