Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: text object models Pin
Code-o-mat28-Jan-09 2:23
Code-o-mat28-Jan-09 2:23 
GeneralRe: text object models Pin
SutterA2-Feb-09 1:58
SutterA2-Feb-09 1:58 
GeneralRe: text object models Pin
Code-o-mat2-Feb-09 2:04
Code-o-mat2-Feb-09 2:04 
GeneralRe: text object models Pin
SutterA2-Feb-09 19:16
SutterA2-Feb-09 19:16 
GeneralRe: text object models Pin
Code-o-mat3-Feb-09 0:34
Code-o-mat3-Feb-09 0:34 
GeneralRe: text object models Pin
SutterA3-Feb-09 0:52
SutterA3-Feb-09 0:52 
GeneralRe: text object models Pin
Code-o-mat3-Feb-09 0:56
Code-o-mat3-Feb-09 0:56 
GeneralRe: text object models Pin
SutterA3-Feb-09 23:23
SutterA3-Feb-09 23:23 
Hi,

bad news. Seems the language problem was too big or the description in the MSDN too bad. Anyway collapse does not have the effect I though it would have. I found the following description:


The expand and collapse Methods
The expand method expands a TextRange object to fully encompass a character, a word, a sentence, or the entire text of the text edit owner on which it was created. For example, if the TextRange object spans a portion of a word, calling its expand method with the parameter word causes it to span the entire word. The expand method returns a Boolean value indicating whether the method succeeded.

The collapse method performs the reverse operation, placing the TextRange object's begin and end markers together as an insertion point. An optional parameter determines whether the insertion point is placed at the beginning or end of the current range; the default value is true, which places the insertion point at the beginning.



This means, it only changes the range that is marked and not the text itself. Too bad, this would have been nice and easy. Looks like I have to think about creating OLE objects myself again.
GeneralRe: text object models Pin
Code-o-mat3-Feb-09 23:51
Code-o-mat3-Feb-09 23:51 
QuestionScroll and double buffering Pin
Laan8225-Jan-09 21:53
Laan8225-Jan-09 21:53 
QuestionAddFontResourceEx Pin
RaymondM25-Jan-09 21:52
RaymondM25-Jan-09 21:52 
AnswerRe: AddFontResourceEx Pin
RaymondM25-Jan-09 21:53
RaymondM25-Jan-09 21:53 
GeneralRe: AddFontResourceEx Pin
Randor 26-Jan-09 17:22
professional Randor 26-Jan-09 17:22 
GeneralRe: AddFontResourceEx Pin
RaymondM26-Jan-09 19:13
RaymondM26-Jan-09 19:13 
GeneralRe: AddFontResourceEx [modified] Pin
Randor 26-Jan-09 21:09
professional Randor 26-Jan-09 21:09 
GeneralRe: AddFontResourceEx Pin
RaymondM27-Jan-09 4:47
RaymondM27-Jan-09 4:47 
GeneralRe: AddFontResourceEx Pin
Randor 27-Jan-09 7:52
professional Randor 27-Jan-09 7:52 
QuestionWindow Handle from CreateWindow will colse itself when thread exit? Pin
fitatc25-Jan-09 21:33
fitatc25-Jan-09 21:33 
AnswerRe: Window Handle from CreateWindow will colse itself when thread exit? Pin
Stuart Dootson25-Jan-09 21:55
professionalStuart Dootson25-Jan-09 21:55 
AnswerRe: Window Handle from CreateWindow will colse itself when thread exit? Pin
Stephen Hewitt26-Jan-09 0:33
Stephen Hewitt26-Jan-09 0:33 
AnswerRe: Window Handle from CreateWindow will colse itself when thread exit? Pin
Randor 26-Jan-09 13:27
professional Randor 26-Jan-09 13:27 
GeneralRe: Window Handle from CreateWindow will colse itself when thread exit? Pin
fitatc26-Jan-09 13:46
fitatc26-Jan-09 13:46 
QuestionShow/Hide part of a CView / CFormView Pin
swarnalucky25-Jan-09 20:17
swarnalucky25-Jan-09 20:17 
AnswerRe: Show/Hide part of a CView / CFormView Pin
SutterA25-Jan-09 22:05
SutterA25-Jan-09 22:05 
GeneralRe: Show/Hide part of a CView / CFormView Pin
swarnalucky26-Jan-09 3:49
swarnalucky26-Jan-09 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.