32 references to GetOcState
System.Windows.Forms (32)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
545if (hostControl.GetOcState() >= OC_RUNNING && hostControl.IsUserMode() && hostControl.AwaitingDefreezing())
System\Windows\Forms\ActiveX\AxHost.cs (28)
379int ocState = GetOcState(); 427else if (!containingControl.Visible && Visible && IsHandleCreated && GetOcState() >= OC_INPLACE) 431else if (containingControl.Visible && !GetState(States.Visible) && IsHandleCreated && GetOcState() >= OC_INPLACE) 920if (value is not null && !newuMode && olduMode != newuMode && GetOcState() > OC_LOADED) 976if (GetOcState() >= OC_UIACTIVE && !selectionService.GetComponentSelected(this)) 1159if (GetOcState() < OC_INPLACE) 1212if (GetOcState() > OC_RUNNING) 1299while (state < GetOcState()) 1301switch (GetOcState()) 1327Debug.Assert(GetOcState() == OC_LOADED, " failed transition"); 1332Debug.Assert(GetOcState() == OC_PASSIVE, " failed transition"); 1337SetOcState(GetOcState() - 1); 1359while (state > GetOcState()) 1361switch (GetOcState()) 1366Debug.Assert(GetOcState() == OC_LOADED, " failed transition"); 1371Debug.Assert(GetOcState() == OC_RUNNING, " failed transition"); 1423if (GetOcState() < OC_INPLACE) 1432Debug.Assert(GetOcState() == OC_UIACTIVE, " failed transition"); 1437SetOcState(GetOcState() + 1); 1623Debug.Assert(GetOcState() >= OC_INPLACE, "have to be in place in order to hide."); 1626if (GetOcState() < OC_INPLACE) 1855if (GetOcState() >= OC_RUNNING) 1868if (GetOcState() < OC_RUNNING) 2011if (GetOcState() < OC_RUNNING) 2920if (GetOcState() < OC_RUNNING) 2931if (GetOcState() < OC_RUNNING) 3136if (GetOcState() >= OC_INPLACE) 3417if (GetOcState() == OC_RUNNING)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
297if (_host.GetOcState() < OC_INPLACE) 410if (_host.GetOcState() > OC_INPLACE) 420if (_host.GetOcState() == OC_UIACTIVE)