Results 1 to 6 of 6

Thread: Get Hwnd of CheckBox in PictureBox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Get Hwnd of CheckBox in PictureBox

    How can I get the hwnd of a check box in a picture box of a program? I tried:

    pichwnd=FindWindowEx(MyHwnd, ByVal 0&, "ThunderRT6PictureBoxDC", vbNullString)
    checkboxhwnd=FindWindowEx(pichwnd, ByVal 0&, "ThunderRT6CheckBox", vbNullString)
    MsgBox checkboxhwnd

    pichwnd returned a value but checkboxhwnd returned 0
    Last edited by abazabam; Dec 11th, 2005 at 07:58 PM.

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Get Hwnd of CheckBox in PictureBox

    Is it your program (app) that your trying to get the CB Hwnd?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Get Hwnd of CheckBox in PictureBox

    No. It's another program made in VB.

  4. #4
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Re: Get Hwnd of CheckBox in PictureBox

    Only obvious thing is that you've spelt the class names wrong.

    Have a link to the app?

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Get Hwnd of CheckBox in PictureBox

    It would probably be faster if you just made it in VB yourself and tested it.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Get Hwnd of CheckBox in PictureBox

    It uses DeleteDC on the picture box

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