Results 1 to 4 of 4

Thread: CButton WM_LBUTTONDOWN [MFC]

  1. #1

    Thread Starter
    Lively Member ExciteMouse's Avatar
    Join Date
    Jul 2000
    Location
    Dallas, TX
    Posts
    78

    CButton WM_LBUTTONDOWN [MFC]

    yeah i know, its an MFC question. dont yell at me.

    how can you detect messages other than "click" and "doubleclick" on a CButton control that you place on a dialog.
    When i open the classwizard, all i see are those two commands.


    what i need is the WM_LBUTTONDOWN command trapped.


    thanks in advance

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    you need to select your control (under the Object IDs) in the ClassWizards, then you will be able to see the available message:

    • BN_CLICKED
    • BN_DOUBLECLICKED


    PHP Code:
    void CMy222Dlg::OnDoubleclickedButton1() 
    {
        
    // TODO: Add your control notification handler code here
        
    }

    void CMy222Dlg::OnButton1() 
    {
        
    // TODO: Add your control notification handler code here
        

    regards,

  3. #3

    Thread Starter
    Lively Member ExciteMouse's Avatar
    Join Date
    Jul 2000
    Location
    Dallas, TX
    Posts
    78
    i know this.. thats what i said up there.
    what i need to know how to do is capture the WM_LBUTTONDOWN msg. i allready know how to get those msgs you stated above.
    please re-read my question.

    thanks

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Im over look it...

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