Bookmark Selection Range Problem

L

Landon

I use MFC VC++ 4.2
I have successful in getting all bookmarks and now I am trying to update them.

As the solution, I use Select() method that Bookmark class has:
if( m_Book.GetName() == "support" ){
m_Book.Select();
selObj.TypeBackspace();
selObj.TypeText( pHistory->m_sSupportTantou );
}

But now I have a problem with the range I guess, because each time I update
the file, there are 2 / 3 bookmarks that did not updated.

Can you please help me with the Selection range?

I don't really understand and I set it to :

long a = m_Book.GetStart();
long b = m_Book.GetEnd();
selObj.SetRange( a, b );

Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top