Click here to Skip to main content
15,908,274 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: missing zero in ostringstream format Pin
ed welch28-Jun-11 5:31
ed welch28-Jun-11 5:31 
GeneralRe: missing zero in ostringstream format Pin
enhzflep28-Jun-11 5:56
enhzflep28-Jun-11 5:56 
Question_atoi64 in VS10 Pin
gomathylakshmanan28-Jun-11 3:43
gomathylakshmanan28-Jun-11 3:43 
AnswerRe: _atoi64 in VS10 PinPopular
Chuck O'Toole28-Jun-11 5:21
Chuck O'Toole28-Jun-11 5:21 
QuestionON_NOTIFY_REFLECT_EX called twice Pin
_Flaviu27-Jun-11 22:06
_Flaviu27-Jun-11 22:06 
QuestionRe: ON_NOTIFY_REFLECT_EX called twice Pin
David Crow28-Jun-11 3:27
David Crow28-Jun-11 3:27 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
_Flaviu28-Jun-11 4:40
_Flaviu28-Jun-11 4:40 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
enhzflep28-Jun-11 5:04
enhzflep28-Jun-11 5:04 
Firstly, I've very little experience with MFC and realize my answer may not be helpful.

However, when I fire up a plain ol' win32 program and click on the header of a list-view, there are indeed two WM_NOTIFY in a row in the messages list.

Looking at the messages in Spy++, I get:

....
....
<00824> 01BC0A0C S WM_NOTIFY idCtrl: 0 pnmh:0028DD08
<00825> 01BC0A0C R WM_NOTIFY
....
....

Checking the help for spy++, gives this explanation of the 'S' and the 'R'
Code Meaning
P The message was posted to the queue with the PostMessage function. No information is available concerning the ultimate disposition of the message.
S The message was sent with the SendMessage function. This means that the sender doesn’t regain control until the receiver processes and returns the message. The receiver can, therefore, pass a return value back to the sender.
s The message was sent, but security prevents access to the return value.
R Each ‘S’ line has a corresponding ‘R’ (return) line that lists the message return value. Sometimes message calls are nested, which means that one message handler sends another message.


Reading the code meanings seems to suggest that the second instance, the 'R' one is the return value of a call to SendMessage (when the child notified the parent)

Now I really am intrigued...

Are you able to report on what spy++ tells you about the messages being passed in your program?
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
_Flaviu28-Jun-11 8:06
_Flaviu28-Jun-11 8:06 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
enhzflep28-Jun-11 9:12
enhzflep28-Jun-11 9:12 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
David Crow28-Jun-11 16:57
David Crow28-Jun-11 16:57 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
enhzflep28-Jun-11 21:19
enhzflep28-Jun-11 21:19 
QuestionHow to get clsid from GUID of a class Pin
gtag27-Jun-11 21:21
gtag27-Jun-11 21:21 
QuestionRe: How to get clsid from GUID of a class Pin
CPallini27-Jun-11 21:34
mveCPallini27-Jun-11 21:34 
QuestionDispatchID Failed... Pin
yaxiya27-Jun-11 16:25
yaxiya27-Jun-11 16:25 
AnswerRe: DispatchID Failed... Pin
barneyman27-Jun-11 17:40
barneyman27-Jun-11 17:40 
GeneralRe: DispatchID Failed... Pin
yaxiya27-Jun-11 19:32
yaxiya27-Jun-11 19:32 
QuestionStopping Morse code - overriding pending event function - how to? Pin
Vaclav_27-Jun-11 14:28
Vaclav_27-Jun-11 14:28 
AnswerRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin27-Jun-11 15:18
professionalAlbert Holguin27-Jun-11 15:18 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Vaclav_27-Jun-11 17:01
Vaclav_27-Jun-11 17:01 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin28-Jun-11 4:49
professionalAlbert Holguin28-Jun-11 4:49 
AnswerRe: Stopping Morse code - overriding pending event function - how to? Pin
Vaclav_28-Jun-11 3:43
Vaclav_28-Jun-11 3:43 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin28-Jun-11 4:51
professionalAlbert Holguin28-Jun-11 4:51 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Vaclav_28-Jun-11 6:08
Vaclav_28-Jun-11 6:08 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin28-Jun-11 8:24
professionalAlbert Holguin28-Jun-11 8:24 

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.