Unlocks the class factory of the specified control.
BOOL AFXAPI AfxOleUnlockControl( REFCLSID clsid ); BOOL AFXAPI AfxOleUnlockControl( LPCTSTR lpszProgID );
The unique class ID of the control.
The unique program ID of the control.
A control is locked with AfxOleLockControl, so that dynamically created data associated with the control remains in memory. This can significantly speed up display of the control because the control need not be created and destroyed every time it is displayed. When you are ready to destroy the control, call AfxOleUnlockControl.
// Unlock controls (Microsoft FlexGrid Control) class factory. // Structure MSFlexGridLib::MSFlexGrid below obtained from #import of // msflxgrd.ocx. AfxOleUnlockControl(__uuidof(MSFlexGridLib::MSFlexGrid));