Results 1 to 2 of 2

Thread: GetText Api Mirc Not Working Please Help.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Posts
    78

    Unhappy GetText Api Mirc Not Working Please Help.

    I am trying to retrieve text from a custom log window in Mirc, The trouble is that the hwnd is the same for the titlebar as the box that looks like a multiline edit box, and when sending the message gettext i get the text of the title bar, not the editbox. The class of the window is status and has one child which is the scrollbar, the rest of the window all has the ame hwnd. So how can i retrieve the text, any ideas?

  2. #2
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    I have had a similar problem with windows derived from the AfxWnd class and found that if you save off the clipboard and then send the window a WM_COPY message you can get the window text from the clipboard. You will then need to restore the former content of the clipboard.

    I have wrapped up this functionality in the ApiClipboard and ApiWindow classes of the EventVB.dll which is available for free download from Merrion Computing Ltd

    HTH,
    Duncan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width