<!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>&nbsp;&nbsp;&nbsp; I have a problem in changing example source 
code &nbsp;"Examples\GUI\Win32\SampleMFC"</FONT></DIV>
<DIV><FONT size=2>and "Examples\GUI\Win32\vtkMFC\vtkMDI".</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; I want to add some code&nbsp;in 
VTK&nbsp;example to&nbsp;answer message WM_RBUTTONDOWN in these two programs. 
the code is add to the program is as:</FONT></DIV>
<DIV><FONT size=2>&nbsp;LRESULT CXXView::WindowProc(UINT message, WPARAM wParam, 
LPARAM lParam) <BR>{<BR>&nbsp;// TODO: Add your specialized code here and/or 
call the base class<BR>&nbsp;switch (message)&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp; case WM_RBUTTONDOWN: 
<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CWnd msgwnd;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
//add_begin<BR>&nbsp;&nbsp;&nbsp;msgwnd.MessageBox("Rbutton");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//add_end<BR>&nbsp;&nbsp;}<BR></FONT><FONT 
size=2>....</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;break;<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;return 
vtkMFCRenderView::WindowProc(message, wParam, lParam);<BR>}<BR></FONT><FONT 
size=2></FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; But two examples has different 
characteristics.</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; In&nbsp;&nbsp;program 
"Examples\GUI\Win32\SampleMFC ", it can show a message box when i press right 
button whthin the&nbsp;ClientRect&nbsp;of the&nbsp;view; </FONT><FONT size=2>but 
in program "Examples\GUI\Win32\vtkMFC\vtkMDI", it show nothing.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; who can tell me why???</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>----------------------------<BR>good luck 
!<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; subin ^_^</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV></BODY></HTML>