![]() |
Right mouse button event handler
1 Attachment(s)
MFC does not allow to trap all the events on the CButton control but some commonly used events like BN_CLICKED and BN_DOUBLECLICKED and so to trap a right mouse button events on a CButton MFC you need to derive a new class from the CButton.
MyButton.h Code: CPP
Code: CPP
Code:
ON_NOTIFY(NM_RCLICK, IDC_BUTTON1, OnRClicked)afx_msg void memberFxn( NMHDR * pNotifyStruct, LRESULT * result ); afx_msg void OnRClicked( NMHDR * pNotifyStruct, LRESULT * result ) |
_beginthread
iam getting undeclared error in _beginthread
process.h included this has been done "Project|Settings|C/C++|Code generation|Use runtime library: (Debug) > multithreaded" getting unresolved error in linking:_fun()@1 solution plz |
Re: Right mouse button event handler
Did you follow all the steps correctly. You probably have a call to a function _fun which you have not declared.
|
Re: Right mouse button event handler
naresha1 Please refer to Error Undeclared identifier error _beginthread.
|
Re: Right mouse button event handler
i m also getting an error
|
Re: Right mouse button event handler
Quote:
|
Re: Right mouse button event handler
now its done actually there was some declaration problem
|
Re: Right mouse button event handler
So... yeah.
I downloaded the files, your files, but can't compile them. Are they complete files in there own, or what? |
Re: Right mouse button event handler
Yes
|
Re: Right mouse button event handler
Well it didn't compile for me...
Visual Studio 2008 Professional |
| All times are GMT +5.5. The time now is 10:46. |