<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>hi all,</FONT></DIV>
<DIV><FONT size=2> I have a problem in changing example source
code "Examples\GUI\Win32\SampleMFC"</FONT></DIV>
<DIV><FONT size=2>and "Examples\GUI\Win32\vtkMFC\vtkMDI".</FONT></DIV>
<DIV><FONT size=2> I want to add some code in
VTK example to answer message WM_RBUTTONDOWN in these two programs.
the code is add to the program is as:</FONT></DIV>
<DIV><FONT size=2> LRESULT CXXView::WindowProc(UINT message, WPARAM wParam,
LPARAM lParam) <BR>{<BR> // TODO: Add your specialized code here and/or
call the base class<BR> switch (message) </FONT></DIV>
<DIV><FONT size=2> {<BR> case WM_RBUTTONDOWN:
<BR> {<BR> CWnd msgwnd;
//add_begin<BR> msgwnd.MessageBox("Rbutton"); //add_end<BR> }<BR></FONT><FONT
size=2>....</FONT></DIV>
<DIV><FONT size=2> break;<BR> }<BR> <BR> return
vtkMFCRenderView::WindowProc(message, wParam, lParam);<BR>}<BR></FONT><FONT
size=2></FONT></DIV>
<DIV><FONT size=2> But two examples has different
characteristics.</FONT></DIV>
<DIV><FONT size=2> In program
"Examples\GUI\Win32\SampleMFC ", it can show a message box when i press right
button whthin the ClientRect of the view; </FONT><FONT size=2>but
in program "Examples\GUI\Win32\vtkMFC\vtkMDI", it show nothing.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> who can tell me why???</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>----------------------------<BR>good luck
!<BR> subin ^_^</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2></FONT> </DIV></BODY></HTML>