Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > API de Windows
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 26-09-2008
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Poder: 22
cHackAll Va por buen camino
Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
var
 Index: Integer;
 Actually, DevNode: TDeviceMode;
begin
 Actually.dmSize := SizeOf(Actually);
 DevNode.dmSize := SizeOf(DevNode);
 ListBox1.MultiSelect := True;
 ListBox1.Clear;
 Index := 0;
 EnumDisplaySettings(nil, $FFFFFFFF, Actually);
 while EnumDisplaySettings(nil, Index, DevNode) do
  begin
   if lstrcmp(@Actually.dmDeviceName, @DevNode.dmDeviceName) = 0 then
    begin
     ListBox1.AddItem(InTtoStr(DevNode.dmPelsWidth)+'x'+IntToStr(DevNode.dmPelsHeight)+'x'+IntToStr(DevNo  de.dmBitsPerPel) + ' at ' + IntToStr(DevNode.dmDisplayFrequency) + ' Hz.', nil);
     ListBox1.Selected[Index] := (Actually.dmPelsWidth = DevNode.dmPelsWidth) and
                                 (Actually.dmPelsHeight = DevNode.dmPelsHeight) and
                                 (Actually.dmBitsPerPel = DevNode.dmBitsPerPel);
    end;
   Inc(Index);
  end;
end;
__________________
RTFM > STFW > Foro > Truco > Post > cHackAll > KeBugCheckEx
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
api , manejo de frecuencias gaston260 API de Windows 5 18-02-2008 23:59:05
Tamaño de columnas con display tag beatriz g JAVA 0 31-08-2007 09:01:31
Display de un campo alcides Varios 5 19-09-2006 22:20:22
Plataformas soportadas en Delphi Tino Conexión con bases de datos 6 20-09-2004 11:49:17


La franja horaria es GMT +2. Ahora son las 16:57:36.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi