Page 1 of 1
Resizing programmatically
Posted: Thu Dec 27, 2012 11:58 pm
by VPDannyMan
Does anyone know of a way to return paramters such as the hWnd of the vst plugin window? Getting this would open a lot of doors for us. We might even be able to ruby to make Win API calls and resize the window..!
Re: Resizing programmatically
Posted: Fri Dec 28, 2012 2:35 am
by MyCo
This wouldn't help. The resizing is done through the VST interface dispatcher (effEditGetRect)... That is a direct function call, so there is nothing you can do about it.
Re: Resizing programmatically
Posted: Fri Dec 28, 2012 7:35 am
by VPDannyMan
hmm..
I may be wrong here, ? but..
Unless the VST SDK does not use windows forms at all, but rather creates its own forms internally, then that editor window has an Hwnd and a DC. So my thoughts are if thats the case, then we should be able to change it independant of the VST SDK and its effEditGetRect. Instead I would think it (the editor window) would just fire a resize event we were done. Now in that case the question becomes what gets the resize event, the daw, or the editor window?
Or does the resize crash the system altogether? We'll never know until we can identify the editor window and make some of these calls..