Click here to Skip to main content
15,880,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
That's okay, I forget who first directed me towards that tool. It sure was helpful when I was busy trying to hack through win32 coding all that time ago.


I've just tried to compile that program in debug mode, however am presented with this "do not pass go" message:

1>c:\users\enhzflep\documents\code\test2\my3view.cpp(30): error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CMy3View::* )(NMHDR *,LRESULT *)' to 'BOOL (__thiscall CCmdTarget::* )(NMHDR *,LRESULT *)'

Which perhaps unsurprisingly points to the below code:
BEGIN_MESSAGE_MAP(CMy3View, CListView)
	//{{AFX_MSG_MAP(CMy3View)
	ON_NOTIFY_REFLECT_EX(LVN_COLUMNCLICK, OnColumnclick) /* This is the offending line */
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


Tried it with VS2010.


Upon digging deeper, I came across this page[^] at msdn, that seems to indicate that your function OnColumnClick should have a return-type of BOOL


Hmmmmmm - just tried editing the definition of the OnColumnClick function so that it has a return type of BOOL, instead of LRESULT - that worked!

Now, finally I can see where you're coming from. Rather than the pair of messages I was seeing in my app, I can see that your app is generating 2 pairs of messages. It seems that the messages are being sent from two different controls WTF | :WTF:

Each click on a column header is giving me (amongst other messages) this:
<00323> 015A080C S WM_NOTIFY idCtrl:59680 pnmh:0040E220
<00324> 015A080C R WM_NOTIFY
<00325> 015A080C S WM_NOTIFY idCtrl: 0 pnmh:0040F96C
<00326> 015A080C R WM_NOTIFY

Perhaps an investigation into what these two controls are is in order..Unsure | :~

Perhaps one of these may help?
(1)[^]
(2)[^] (In german, use Google translate - for some reason had trouble pasting the url of the translated page)
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 
AnswerSome thread questions Pin
Vaclav_1-Jul-11 3:22
Vaclav_1-Jul-11 3:22 
QuestionProblems with MFC Ribbon edit with spin button Pin
Dansveen27-Jun-11 11:04
Dansveen27-Jun-11 11:04 

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.