Results 1 to 2 of 2

Thread: Sending Messages

  1. #1
    amac
    Guest

    Sending Messages

    Its fairly simple question but doesnt seem to be working for me...

    I found what the lParam and the wParam for the Message I want to send but not sure about some stuff...

    the message i want to send is BN_CLICKED...

    the WPARAM is the identifier of the button...
    and LPARAM is a handle to the button...

    in VC++ would the identifier be something like IDC_BUTTON...

    and how do i get a handle to the button?

  2. #2
    Megatron
    Guest
    BN_CLICKED is a notification message. BM_CLICK is the actual message. To send it like this:
    Code:
    PostMessage hwnd_of_button, BM_CLICK, 0, 0

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