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

C / C++ / MFC

 
GeneralRe: strcat_memcpy Pin
Freak3026-Apr-13 2:15
Freak3026-Apr-13 2:15 
GeneralRe: strcat_memcpy Pin
pasztorpisti26-Apr-13 2:20
pasztorpisti26-Apr-13 2:20 
AnswerRe: strcat_memcpy Pin
Richard MacCutchan25-Apr-13 22:17
mveRichard MacCutchan25-Apr-13 22:17 
QuestionDoModal in CWnd::PreTranslateMessage( MSG *pMsg ) Pin
Newbie0025-Apr-13 10:26
Newbie0025-Apr-13 10:26 
AnswerRe: DoModal in CWnd::PreTranslateMessage( MSG *pMsg ) Pin
jeron125-Apr-13 10:48
jeron125-Apr-13 10:48 
GeneralRe: DoModal in CWnd::PreTranslateMessage( MSG *pMsg ) Pin
Newbie0025-Apr-13 18:24
Newbie0025-Apr-13 18:24 
AnswerRe: DoModal in CWnd::PreTranslateMessage( MSG *pMsg ) Pin
Richard MacCutchan25-Apr-13 22:14
mveRichard MacCutchan25-Apr-13 22:14 
GeneralRe: DoModal in CWnd::PreTranslateMessage( MSG *pMsg ) Pin
Newbie0026-Apr-13 7:02
Newbie0026-Apr-13 7:02 
Unfortunately I cannot use OnChange. It is to early to disturb user. I have to wait untill user finishes typing. EN_CHANGE is sent after each pressed key and I cannot save data from control to internal buffer during typing. I want to do it, if user decides to leave edit control.

I have also investigated this MSG *pMsg deeper and it occured that: If I let pumping messages (f.e with modal messagebox), I always have to return TRUE in PreTranslateMessage. Saving first message and forwarding it at the end has no sence, because the whole messaging process is disturbed any way.

Here is example of situation, for which my solution with saving *pMSG won't help:

WM_LBUTTONDOWN -> WM_LBUTTONUP pair is very sensitive here.
If I put messagebox between WM_LBUTTONDOWN and WM_LBUTTONUP in PreTranslateMessage it causes WM_LBUTTONUP to run for mouse point from the [OK] button on the messagebox and not for the original coordinates. So code from CFirstClickedArea::OnLButtonUp() will not be run.

So I think, I have to return always TRUE and I have no choice, if I want to use PreTranslateMessage with DoModal.

modified 26-Apr-13 13:22pm.

GeneralRe: DoModal in CWnd::PreTranslateMessage( MSG *pMsg ) Pin
Richard MacCutchan26-Apr-13 7:23
mveRichard MacCutchan26-Apr-13 7:23 
GeneralRe: DoModal in CWnd::PreTranslateMessage( MSG *pMsg ) Pin
Newbie0026-Apr-13 8:01
Newbie0026-Apr-13 8:01 
GeneralRe: DoModal in CWnd::PreTranslateMessage( MSG *pMsg ) Pin
Richard MacCutchan26-Apr-13 22:15
mveRichard MacCutchan26-Apr-13 22:15 
QuestionC++ MVC framework for Linux/Motif Pin
Leif Simon Goodwin25-Apr-13 6:35
Leif Simon Goodwin25-Apr-13 6:35 
AnswerRe: C++ MVC framework for Linux/Motif Pin
pasztorpisti25-Apr-13 20:56
pasztorpisti25-Apr-13 20:56 
QuestionCrystal Reports 2011 with C++/MFC Dev Studio 2010 Pin
Member 983646924-Apr-13 18:42
Member 983646924-Apr-13 18:42 
QuestionAudio in DirectShow Pin
Sachin k Rajput 24-Apr-13 17:40
Sachin k Rajput 24-Apr-13 17:40 
AnswerRe: Audio in DirectShow Pin
Vaclav_25-Apr-13 3:03
Vaclav_25-Apr-13 3:03 
QuestionHow to create 4 dimenstional array Pin
jothivel k24-Apr-13 9:07
jothivel k24-Apr-13 9:07 
AnswerRe: How to create 4 dimenstional array Pin
Richard MacCutchan24-Apr-13 9:33
mveRichard MacCutchan24-Apr-13 9:33 
AnswerRe: How to create 4 dimenstional array Pin
pasztorpisti24-Apr-13 9:45
pasztorpisti24-Apr-13 9:45 
GeneralRe: How to create 4 dimenstional array Pin
jothivel k25-Apr-13 7:12
jothivel k25-Apr-13 7:12 
GeneralRe: How to create 4 dimenstional array Pin
pasztorpisti25-Apr-13 20:48
pasztorpisti25-Apr-13 20:48 
AnswerRe: How to create 4 dimenstional array Pin
Stefan_Lang24-Apr-13 22:15
Stefan_Lang24-Apr-13 22:15 
AnswerRe: How to create 4 dimenstional array Pin
Joe Woodbury25-Apr-13 6:47
professionalJoe Woodbury25-Apr-13 6:47 
Questioniso_8583 message Pin
khushboo gupta23-Apr-13 0:16
khushboo gupta23-Apr-13 0:16 
AnswerRe: iso_8583 message Pin
Marco Bertschi23-Apr-13 1:53
protectorMarco Bertschi23-Apr-13 1:53 

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.