Ver Mensaje Individual
  #2  
Antiguo 31-05-2020
Avatar de aguml
aguml aguml is offline
Miembro
 
Registrado: may 2013
Posts: 885
Reputación: 14
aguml Va por buen camino
Para solucionar lo del parpadeo intenté esto:
Código PHP:
__fastcall TForm1::TForm1(TComponentOwner)
        : 
TForm(Owner)
{
    
RichEditLogAntiDebug->DoubleBuffered true;
    ...
}

void __fastcall TMyThread::ShowMessagesTimes()
{
    
TMyThread2::EventDatosLlenos->WaitFor(INFINITE);

    
//Mostramos los datos
    
Form1->RichEditLogAntiDebug->Lines->BeginUpdate();
    
Form1->RichEditLogAntiDebug->Clear();
    
SendTextColored(Deteccion->IsDebuggerPresent);
    
SendTextColored(Deteccion->BeingDebugger);
    
SendTextColored(Deteccion->NTGlobalFlag);
    
SendTextColored(Deteccion->ProcessHeapFlags);
    
SendTextColored(Deteccion->ProcessHeapForceFlags);
    
SendTextColored(Deteccion->DebugPort);
    
SendTextColored(Deteccion->CloseHandleWithInvalidHandle);
    
SendTextColored(Deteccion->OutputDebugString);
    
SendTextColored(Deteccion->NtSetInformationThread);

    
//Mostramos si nos ha detectado con GetTickCount o no y posicionamos al inicio el TMEMO
    
SendTextColored(Deteccion->GetTickCount);
    
SendTextColored(Deteccion->timeGetTime);
    
SendTextColored(Deteccion->QueryPerformanceCounter);

    
Form1->RichEditLogAntiDebug->Lines->EndUpdate();

El problema es que no muestra absolutamente nada en el RichEdit.
Responder Con Cita