cadencii.VSTiDriverBase.enumChildProc C# (CSharp) Method

enumChildProc() private method

private enumChildProc ( IntPtr hwnd, int lParam ) : bool
hwnd System.IntPtr
lParam int
return bool
        private bool enumChildProc( IntPtr hwnd, int lParam )
        {
            RECT rc = new RECT();
            try {
                win32.GetWindowRect( hwnd, ref rc );
            } catch ( Exception ex ) {
                serr.println( "vstidrv#enumChildProc; ex=" + ex );
            }
            if ( ui != null ) {
                ui.childWnd = hwnd;
            }
            uiWindowRect = new Dimension( rc.right - rc.left, rc.bottom - rc.top );
            return false; //最初のやつだけ検出できればおkなので
        }