|
-
Jul 27th, 2001, 07:05 PM
#1
Thread Starter
Lively Member
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
-
Jul 28th, 2001, 01:18 AM
#2
PowerPoster
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,
-
Jul 28th, 2001, 03:16 AM
#3
Thread Starter
Lively Member
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
-
Jul 28th, 2001, 10:37 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|