Results 1 to 3 of 3

Thread: Sendmessage Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Sendmessage Help

    Hi guys, here's my situation

    I have an external app. In this app there's a parent window and a child window. Everytime i send a sendmessage to the parent window the child will show.

    Now the problem is, the child windows will appear and the parent window will lost the focus. I don't want this to happen. It there a way to Sendmessage and the the child windows will appear not on the top. i don't want to deal with getforground windows and setfroground window.

    Thanks for your reply.

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Re: Sendmessage Help

    Code:
    Dim parent as Long, child as Long
    parent = FindWindow("My class",vbnullstring)
    Sendmessage  parent,WM_COMMAND,2541,0 ' Show child and parent lost focus here
    
    child = findwindow("#32770",vbnullstring)

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