Results 1 to 3 of 3

Thread: I asked this question before.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    How can you find the handle to a specific button? What I mean is, if you have three buttons in a Message box, how can you find the handle to the center button?

    I was using FindWindowEx but only successful with returning the first button. I used the spy tool to get the handle to the message box with FindWindow.

    Can someone help this time?
    Mako Shark
    Great White

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    With Findwindow you could find the button if it has a individual classname or caption. You could also use Windowfrompoint to retrieve a button from a specified location, for instance in the middle of the message box.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    There is no way you can find the second button with API? Thanks for replying Kedaman!
    Mako Shark
    Great White

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