Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another internal SelectReplaceHighlightFormat question
#2
In this cases the memory is used only for the CHARFORMAT2W variable.
Code:
Copy      Help
out sizeof(CHARFORMAT2W)
Windows knows EM_REPLACESEL and copies the string, don't need shared memory for it. Same with WM_SETTEXT, maybe with several other known messages. For other messages where text used need __ProcessMemory, allocate enough memory for the string.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)