示例#1
0
//==============================================================================
STDMETHODIMP CVMain::ShowGroup(long iGroupID, long iLogID){
  int iObj, nObjects;
  CVObject *pObj;

  nObjects = g_ptObjectList.GetN_Pointers();
  
  for( iObj = 0; iObj<nObjects; iObj++){
    g_ptObjectList.GetPointer( iObj, (void **) &pObj);
    if(iGroupID) pObj->Show( iGroupID );
    else  pObj->Show();
  }

  g_RequestUpdate(iLogID);
  return S_OK;
}
示例#2
0
//==============================================================================
STDMETHODIMP CVMain::MoveGroup(long iGroupID, SAFEARRAY * psaXY, long iLogID){
  double * pdData;
  int iObj, nObjects;
  CVObject *pObj;

  // We expect 2-long array of doubles
  if( g_CheckSafeArray( 2, psaXY, &pdData )) {
    return g_ErrorToHresult( 1 );
  }

  nObjects = g_ptObjectList.GetN_Pointers();
  
  for( iObj = 0; iObj<nObjects; iObj++){
    g_ptObjectList.GetPointer( iObj, (void **) &pObj);
    if(iGroupID) pObj->Move( pdData[0], pdData[1], iGroupID );
    else  pObj->Move( pdData[0], pdData[1]);
  }
  SafeArrayUnaccessData( psaXY );
  g_RequestUpdate(iLogID);
  return S_OK;
}
示例#3
0
//==============================================================================
void CVObject::m_RequestUpdate( long iLogID ){
  if(m_IsVisible) g_RequestUpdate(iLogID);
}
示例#4
0
//==============================================================================
HRESULT CVObject::vHide( long iLogID ){
  Hide();
  g_RequestUpdate(iLogID);
  return S_OK;
}
示例#5
0
//==============================================================================
HRESULT CVObject::vShow( long iLogID ){
  Show();
  g_RequestUpdate(iLogID);
  return S_OK;
}
示例#6
0
//==============================================================================
HRESULT CVObject::vSetShowFlag( long iShowFlag, long iLogID){
  m_IsVisible = iShowFlag;
  g_RequestUpdate(iLogID);
  return S_OK;
}