From 27da08004c5f024a0f35e3cb4c2b3942548ebcfa Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 11 Mar 2005 04:58:01 +0000 Subject: restructured VSThost code better shell support fix for build system update for flext build systemcleanups VSTTime info added event processing (like Midi in) svn path=/trunk/; revision=2617 --- externals/grill/vst/src/editorwin.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'externals/grill/vst/src/editorwin.hpp') diff --git a/externals/grill/vst/src/editorwin.hpp b/externals/grill/vst/src/editorwin.hpp index f29313d4..29e63db6 100644 --- a/externals/grill/vst/src/editorwin.hpp +++ b/externals/grill/vst/src/editorwin.hpp @@ -38,7 +38,7 @@ static LRESULT CALLBACK wndproc(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp) plug->StartEditing(hwnd); break; case WM_CLOSE: -#ifdef FLEXT_DEBUG +#ifdef FLEXT_LOGGING flext::post("WM_CLOSE"); #endif // plug could already have been unloaded... @@ -46,7 +46,7 @@ static LRESULT CALLBACK wndproc(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp) DestroyWindow(hwnd); break; case WM_DESTROY: -#ifdef FLEXT_DEBUG +#ifdef FLEXT_LOGGING flext::post("WM_DESTROY"); #endif // stop editor thread @@ -66,7 +66,7 @@ static LRESULT CALLBACK wndproc(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp) short x = reinterpret_cast(wx),y = reinterpret_cast(wy); // x and y are the coordinates of the client rect (= actual VST interface) plug->SetPos(x,y,false); -#ifdef FLEXT_DEBUG +#ifdef FLEXT_LOGGING flext::post("WM_MOVE x/y=%i/%i",x,y); #endif break; @@ -87,7 +87,7 @@ static LRESULT CALLBACK wndproc(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp) } #endif -#if 0 //def FLEXT_DEBUG +#if 0 //def FLEXT_LOGGING case WM_SIZE: { WORD wx = LOWORD(lp),wy = HIWORD(lp); short x = reinterpret_cast(wx),y = reinterpret_cast(wy); @@ -98,7 +98,7 @@ static LRESULT CALLBACK wndproc(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp) #endif default: - #ifdef FLEXT_DEBUG + #ifdef FLEXT_LOGGING flext::post("WND MSG %i, WP=%i, lp=%i",msg,wp,lp); #endif @@ -169,7 +169,7 @@ static void threadfun(flext::thr_params *p) ERect r; plug->GetEditorRect(r); windowsize(wnd,plug->GetX(),plug->GetY(),r.right-r.left,r.bottom-r.top,plug->GetCaption(),SWP_SHOWWINDOW); -#ifdef FLEXT_DEBUG +#ifdef FLEXT_LOGGING flext::post("Editor rect left/top=%i/%i, right/bottom=%i/%i",r.left,r.top,r.right,r.bottom); #endif @@ -220,23 +220,23 @@ void SetupEditor() void StartEditor(VSTPlugin *p) { -#ifdef FLEXT_DEBUG +#ifdef FLEXT_LOGGING flext::post("Start editor 1"); #endif flext::LaunchThread(threadfun,reinterpret_cast(p)); -#ifdef FLEXT_DEBUG +#ifdef FLEXT_LOGGING flext::post("Start editor 2"); #endif } void StopEditor(VSTPlugin *p) { -#ifdef FLEXT_DEBUG +#ifdef FLEXT_LOGGING flext::post("Stop editor 1"); #endif PostMessage(p->EditorHandle(),WM_CLOSE,0,0); flext::StopThread(threadfun,reinterpret_cast(p)); -#ifdef FLEXT_DEBUG +#ifdef FLEXT_LOGGING flext::post("Stop editor 2"); #endif } -- cgit v1.2.1