CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2007
    Posts
    11

    Rejecting Messages Send by other Processes. Is It Possible ?.

    Hi,
    Is it possible to implement a standard (MFC) app which rejects messages
    send by other processes, if they, for example, are trying to read data
    kept in the app's listview ?
    - Alexander

  2. #2
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: Rejecting Messages Send by other Processes. Is It Possible ?.

    Quote Originally Posted by 4iK
    Hi,
    Is it possible to implement a standard (MFC) app which rejects messages
    send by other processes, if they, for example, are trying to read data
    kept in the app's listview ?
    - Alexander
    I don't believe that a message contains information about the process from wich it was sent.
    However, you could block all messages that read data from yout list, and for your own purposes implement private messages instead.
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

  3. #3
    Join Date
    Mar 2007
    Posts
    11

    Re: Rejecting Messages Send by other Processes. Is It Possible ?.

    if LV_GETITEM does not work, and therefore is to assume that the
    listview process implements own private messaging for managing
    listview control - what is the way to find out which private massages these are ?

  4. #4
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: Rejecting Messages Send by other Processes. Is It Possible ?.

    If I understand you, you are not trying to implement some sort of message block in your own app.

    Rather, you are trying to get text from another app, and you're not successful, and you therefore suspect that the other app has somehow implemented a message block. Is this correct?

    If so, then why do you think that the other app is an MFC app? It could be anything.

    Mike

  5. #5
    Join Date
    Mar 2007
    Posts
    11

    Re: Rejecting Messages Send by other Processes. Is It Possible ?.

    I'am trying to get text of the items out of control with LVS_OWNERDATA and LVS_OWNERDRAWFIXED styles...

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

Featured