aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vst/src/PopupWindow.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-02-23 12:52:25 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-02-23 12:52:25 +0000
commit97d45e6c3f1858fa51daec5655dc93a92c79a955 (patch)
treed6dac65eeacbd78ed447141063191f2b912d1fd1 /externals/grill/vst/src/PopupWindow.cpp
parentf627d3fed905ef8288c3b6bbc18e195495fea96b (diff)
""
svn path=/trunk/; revision=425
Diffstat (limited to 'externals/grill/vst/src/PopupWindow.cpp')
-rw-r--r--externals/grill/vst/src/PopupWindow.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/externals/grill/vst/src/PopupWindow.cpp b/externals/grill/vst/src/PopupWindow.cpp
index 35c30a81..92fbabd2 100644
--- a/externals/grill/vst/src/PopupWindow.cpp
+++ b/externals/grill/vst/src/PopupWindow.cpp
@@ -60,7 +60,6 @@ void CPopupWindow::SetPlugin(VSTPlugin *p)
CreateEx( WS_EX_DLGMODALFRAME,AfxRegisterWndClass(CS_DBLCLKS),tmp,WS_CAPTION|WS_THICKFRAME|WS_POPUP|WS_SYSMENU,0,0,0,0,NULL,NULL,NULL);
plug->Dispatch(effEditOpen , 0 , 0 , m_hWnd , 0.0f );
- RECT r = plug->GetEditorRect();
/*
CString str = theApp->GetProfileString( "VSTPos" , plug->GetName() , "10,10");
int idx = str.Find(",");
@@ -68,11 +67,13 @@ void CPopupWindow::SetPlugin(VSTPlugin *p)
CString y = str.Right( idx );
printf(" index is %d left is %s and right is %s" , idx , x , y);
*/
- SetWindowPos(&wndTopMost,plug->getX(),plug->getY(),(r.right - r.left) + 10 , r.bottom - r.top + 30 , SWP_SHOWWINDOW);
DoInit();
- ShowWindow( SW_SHOW );
- BringWindowToTop();
+
+ RECT r = plug->GetEditorRect();
+ SetWindowPos(&wndTop,plug->getX(),plug->getY(),(r.right - r.left) + 10 , r.bottom - r.top + 30 , SWP_SHOWWINDOW);
+// ShowWindow( SW_SHOW );
+// BringWindowToTop();
// SetFocus();
}