Hello Jack - if you're using Babel not sure what the answer is. But my
GetInitialExtent does the following (sets start and end cols to be the same)
which seems to look okay when displayed.
STDMETHODIMP CTypeBrowserCompletionSet::GetInitialExtent(long *piLine, long
*piStartCol, long *piEndCol) {
try
{
ASSERT(piLine && piStartCol && piEndCol);
if (!piLine || !piStartCol || !piEndCol)
return E_POINTER;
if (m_pTextView->GetCaretPos(piLine, piStartCol) != S_OK)
return S_FALSE;
*piEndCol = *piStartCol;
m_bVisible = true;
return S_OK;
}
catch(...)
{
ATLASSERT(false);
}
return S_FALSE;
}
> Hi,
>
[quoted text clipped - 13 lines]
>
> Jack
Jack Peters - 28 Jun 2004 16:12 GMT
Thanks scott.
I don't use babel. I am using C#.
I have already tried to set start and end same or to use GetWordExtent() to
compute start and end, but it doesn't make any difference.
I have even tried to force the end to be say 50 chars more that start
> Hello Jack - if you're using Babel not sure what the answer is. But my
> GetInitialExtent does the following (sets start and end cols to be the same)
[quoted text clipped - 43 lines]
> >
> > Jack