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

C / C++ / MFC

 
GeneralRe: Doubt in Splitter window [modified] Pin
Member 30398433-Jun-06 1:30
Member 30398433-Jun-06 1:30 
GeneralRe: Doubt in Splitter window [modified] Pin
Sameer_Thakur4-Jun-06 3:26
Sameer_Thakur4-Jun-06 3:26 
GeneralRe: Doubt in Splitter window [modified] Pin
Member 30398434-Jun-06 18:02
Member 30398434-Jun-06 18:02 
GeneralRe: Doubt in Splitter window [modified] Pin
Sameer_Thakur4-Jun-06 19:56
Sameer_Thakur4-Jun-06 19:56 
GeneralRe: Doubt in Splitter window [modified] Pin
Member 30398434-Jun-06 23:41
Member 30398434-Jun-06 23:41 
GeneralRe: Doubt in Splitter window [modified] Pin
Sameer_Thakur5-Jun-06 4:28
Sameer_Thakur5-Jun-06 4:28 
QuestionHow to set/clear and read status pin of COM port ? Pin
quangpk2-Jun-06 14:00
quangpk2-Jun-06 14:00 
QuestionCWnd::OnRButtonUp( ) Pin
LeeeNN2-Jun-06 13:03
LeeeNN2-Jun-06 13:03 
I down a example (gridctrl_demo225) to study. in the code one thing puzzled me.
platform : VC.Net
a CGridCtrl based on CWnd,
a Dialog(CDlgA) is the parent of the CGridCtrl instance.

following is a part of the code

// EFW - Added to forward right click to parent so that a context
// menu can be shown without deriving a new grid class.
void CGridCtrl::OnRButtonUp(UINT nFlags, CPoint point)
{
CWnd::OnRButtonUp(nFlags, point); // !!!this call trigers CDlgA::OnContextMenu(...)
:
:
}

I read document of CWnd::OnRButtonUp(nFlags, point), it does not say, it will triger parent's OnContextMenu. so if I say CWnd::OnRButtonUp(nFlags, point) calls parent's OnContextMenu(...). Is it right?

And the weird thing is I set a breakpoint in CDlgA::OnContextMenu(...) want to see who calls it. There is no records of callstack.

AnswerRe: CWnd::OnRButtonUp( ) Pin
Michael Dunn2-Jun-06 14:36
sitebuilderMichael Dunn2-Jun-06 14:36 
GeneralRe: CWnd::OnRButtonUp( ) Pin
LeeeNN2-Jun-06 21:20
LeeeNN2-Jun-06 21:20 
QuestionForcing focus to a control.... [modified] Pin
Peter Weyzen2-Jun-06 12:13
Peter Weyzen2-Jun-06 12:13 
AnswerRe: Forcing focus to a control.... [modified] Pin
Wes Aday2-Jun-06 12:20
professionalWes Aday2-Jun-06 12:20 
QuestionAccelerators Questions Pin
Maximilien2-Jun-06 10:31
Maximilien2-Jun-06 10:31 
GeneralRe: Accelerators Questions Pin
Maxwell Chen2-Jun-06 11:12
Maxwell Chen2-Jun-06 11:12 
QuestionWinsock 2 question Pin
SPowers2-Jun-06 10:17
SPowers2-Jun-06 10:17 
AnswerRe: Winsock 2 question Pin
Zac Howland2-Jun-06 10:22
Zac Howland2-Jun-06 10:22 
GeneralRe: Winsock 2 question Pin
SPowers2-Jun-06 10:23
SPowers2-Jun-06 10:23 
GeneralRe: Winsock 2 question Pin
led mike2-Jun-06 11:15
led mike2-Jun-06 11:15 
QuestionHANDLE - what exactly is it ? Pin
big_denny_2002-Jun-06 10:16
big_denny_2002-Jun-06 10:16 
AnswerRe: HANDLE - what exactly is it ? [modified] Pin
Maxwell Chen2-Jun-06 10:57
Maxwell Chen2-Jun-06 10:57 
QuestionHow to learn develop in C++ and VOIP ? Pin
Yanshof2-Jun-06 8:47
Yanshof2-Jun-06 8:47 
AnswerRe: How to learn develop in C++ and VOIP ? Pin
led mike2-Jun-06 8:55
led mike2-Jun-06 8:55 
GeneralRe: How to learn develop in C++ and VOIP ? [modified] Pin
Yanshof2-Jun-06 10:39
Yanshof2-Jun-06 10:39 
AnswerRe: How to learn develop in C++ and VOIP ? [modified] Pin
Maxwell Chen2-Jun-06 11:04
Maxwell Chen2-Jun-06 11:04 
Questionstring issues again [modified] Pin
big_denny_2002-Jun-06 8:21
big_denny_2002-Jun-06 8:21 

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.