Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to handle right mouse button click in menu Pin
kotbegemot26-Oct-03 22:24
kotbegemot26-Oct-03 22:24 
AnswerRe: How to handle right mouse button click in menu Pin
Michael Dunn27-Oct-03 4:10
sitebuilderMichael Dunn27-Oct-03 4:10 
GeneralLoadIcon and LoadMenu fails...... Pin
Paolo Ponzano26-Oct-03 21:46
Paolo Ponzano26-Oct-03 21:46 
GeneralRe: LoadIcon and LoadMenu fails...... Pin
Anonymous26-Oct-03 23:04
Anonymous26-Oct-03 23:04 
GeneralRe: LoadIcon and LoadMenu fails...... Pin
Paolo Ponzano27-Oct-03 8:10
Paolo Ponzano27-Oct-03 8:10 
GeneralCRichEdit and PreTranslateMessage Pin
Jahangir Jamshed26-Oct-03 21:20
sussJahangir Jamshed26-Oct-03 21:20 
GeneralRe: CRichEdit and PreTranslateMessage Pin
Steve S27-Oct-03 1:35
Steve S27-Oct-03 1:35 
GeneralRe: CRichEdit and PreTranslateMessage Pin
Anonymous27-Oct-03 8:56
Anonymous27-Oct-03 8:56 
Steve

I have tried the following code after calling the SetEventMask with ENM_CHANGE ored with the previous mask.

<br />
void CMyDialog::PreTranslateMessage(MSG *pMsg)<br />
{<br />
   if (pMsg->message == WM_COMMAND && HIWORD(pMsg->wParam) == EN_CHANGE<br />
       && (HWND)pMsg->lParam == m_reObj.m_hWnd)<br />
   {<br />
       TRACE("EN_CHANGE received\n");<br />
   }<br />
}<br />


But this doesnt work, i even tried to replace the above condition with this

<br />
void CMyDialog::PreTranslateMessage(MSG *pMsg)<br />
{<br />
   if (pMsg->message == WM_COMMAND)<br />
   {<br />
       TRACE("EN_CHANGE received\n");<br />
   }<br />
}<br />


But still no luck. I tried to subclass the control with a custom rich edit class and setup the message handler for EN_CHANGE and Voala i was receiving the message in OnChange() but i am unable to receive it in my PreTranslateMessage so what is wrong here.

Regards
-Saad
GeneralCBitmap from file Pin
ImrShah Shehpori26-Oct-03 20:19
sussImrShah Shehpori26-Oct-03 20:19 
GeneralRe: CBitmap from file Pin
Jarek G26-Oct-03 23:40
Jarek G26-Oct-03 23:40 
QuestionHow to access mysql database using C Pin
samhita26-Oct-03 19:57
samhita26-Oct-03 19:57 
AnswerRe: How to access mysql database using C Pin
Florin Ochiana27-Oct-03 0:34
Florin Ochiana27-Oct-03 0:34 
QuestionCan anybody see what I'm doing wrong? Pin
Oinka26-Oct-03 18:30
Oinka26-Oct-03 18:30 
AnswerRe: Can anybody see what I'm doing wrong? Pin
Roger Allen27-Oct-03 2:17
Roger Allen27-Oct-03 2:17 
GeneralThanks Roger! Pin
Oinka27-Oct-03 5:35
Oinka27-Oct-03 5:35 
GeneralDirectShow Problem: Error return 'E_INVALIDARG' when calling ICaptureGraphBuilder2::RenderStream Pin
Member 65339926-Oct-03 16:57
Member 65339926-Oct-03 16:57 
GeneralDesign question Pin
alex.barylski26-Oct-03 13:39
alex.barylski26-Oct-03 13:39 
GeneralRe: Design question Pin
Ravi Bhavnani26-Oct-03 13:57
professionalRavi Bhavnani26-Oct-03 13:57 
GeneralRe: Design question Pin
alex.barylski27-Oct-03 6:55
alex.barylski27-Oct-03 6:55 
GeneralCListCtrl DeleteItem Pin
Jarek G26-Oct-03 13:05
Jarek G26-Oct-03 13:05 
GeneralRe: CListCtrl DeleteItem Pin
Daniel132426-Oct-03 13:53
Daniel132426-Oct-03 13:53 
GeneralRe: CListCtrl DeleteItem Pin
Ravi Bhavnani26-Oct-03 13:54
professionalRavi Bhavnani26-Oct-03 13:54 
GeneralRe: CListCtrl DeleteItem Pin
Jarek G26-Oct-03 14:16
Jarek G26-Oct-03 14:16 
GeneralRe: CListCtrl DeleteItem Pin
Ravi Bhavnani26-Oct-03 14:39
professionalRavi Bhavnani26-Oct-03 14:39 
GeneralRe: CListCtrl DeleteItem Pin
Jarek G26-Oct-03 23:32
Jarek G26-Oct-03 23:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.