![]() |
|
|||||||
| MontiVision Development Kit Support for MontiVision Development Kit. |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
unmeant reaction on a mouse click inside the Smart Control
Hello,
i enlarge the Smart Control to adjust it to the Framework in runtime. Now i get a unmeant reaction on a mouse click inside the Smart Control: The Smart Control Window get the size of initialisation->The size i drag and drop it in my dialog-resources. For any idea i'm really glad! |
|
#2
|
|||
|
|||
|
Re: unmeant reaction on a mouse click inside the Smart Control
Hi,
i solve this in OnPaint... void CLocalCamera::OnPaint() { CPropertyPage::OnPaint(); if(m_SCVideo){ CRect rcCtrl,rcWnd,rcBtn; GetWindowRect(&rcWnd); m_SCVideo.GetWindowRect(&rcCtrl); m_btnScreenshot.GetWindowRect(&rcBtn); CString str; if(rcCtrl.Width() != rcWnd.Width() || rcCtrl.Height() != (rcWnd.Height()-rcBtn.Height()) ){ // Set position and size of SmartControl SetSize(rcWnd.Width(),rcWnd.Height()); } } If anybody know an other/better solution, please let me know! |
|
#3
|
||||
|
||||
|
Re: unmeant reaction on a mouse click inside the Smart Control
Hi,
Did you try IMVSCVideoWindow::ControlToVideo, which converts video coordinates to screen coordinates? Best Regards, Marc Cymontkowski |
|
#4
|
|||
|
|||
|
Re: unmeant reaction on a mouse click inside the Smart Control
Hi Marc,
many thanks for your reply. I understand how this function works, but I don't understand how it could help me to solve my problem that I tried to explain in my first message. Best Regards Ps: When callling this function without the graph being started, I get an exception. Last edited by FS7; July 15, 2009 at 15:48:14. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ICControl crashes | RPaulsen | IC Imaging Control C++ Class Library | 2 | October 11, 2004 13:52:02 |