Announcement

Collapse
No announcement yet.

SF_RTF and SFF_SELECTION won't work together

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SF_RTF and SFF_SELECTION won't work together

    I've tryint to stream Text from a RTF file into the selected part of my RichEdit control. It streams in fine with %SF_RTF, but just using thta reaplces all text. But for some reason if I do %SF_RTF OR %SFF_SELECTION it wont' call my edit stream call back function. He's a snipet of my code:

    eStream2.dwCookie = f%
    eStream2.pfnCallback = CODEPTR(editStreamCallbackIn)
    eStream2.dwError = 0
    SendMessage GetDlgItem(hGlobeDlg&, 106), %EM_STREAMIN, %SF_RTF + %SFF_PLAINRTF, VARPTR(eStream2)

    Can anyone explain what's wrong?


    -------------
    Thank you,
    Ryan M. Cross
    Head Webmaster Nofee Inc. Internet Services
    President Likuid Creations Ltd.

    Thank you,
    Ryan M. Cross
Working...
X