01-17-2014, 03:37 PM
In the SelectReplaceHighlightFormat code there is the following statement:
Function SelectReplaceHighlightFormat
I know from the documentation that this is for allocating memory in the context of the process that the window handle belongs to. What's unclear to me is - what is the relation of the size of the buffer and the size of the text that is being updated?
In a subsequent line there is this command:
Function SelectReplaceHighlightFormat
My question: if replaceText.len > 1000 - should the buffer be larger? Or is this irrelevant - SendMessage manages its own memory and the Alloc is just for the target application having enough memory to do housekeeping (which may mean that it needs to be larger).
Thanks
Function SelectReplaceHighlightFormat
I know from the documentation that this is for allocating memory in the context of the process that the window handle belongs to. What's unclear to me is - what is the relation of the size of the buffer and the size of the text that is being updated?
In a subsequent line there is this command:
Function SelectReplaceHighlightFormat
My question: if replaceText.len > 1000 - should the buffer be larger? Or is this irrelevant - SendMessage manages its own memory and the Alloc is just for the target application having enough memory to do housekeeping (which may mean that it needs to be larger).
Thanks