Ver Mensaje Individual
  #2  
Antiguo 29-10-2010
Avatar de ecfisa
ecfisa ecfisa is offline
Moderador
 
Registrado: dic 2005
Ubicación: Tres Arroyos, Argentina
Posts: 10.508
Reputación: 38
ecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to beholdecfisa is a splendid one to behold
Hola mlara.

Con la funcion GetWindowLong .
Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
begin
  with StringGrid1 do
  begin
    if (GetWindowLong(Handle, GWL_STYLE) and WS_VSCROLL) <> 0 then
       ShowMessage('ScrollBar vertical visible')
    else
       ShowMessage('ScrollBar vertical oculta');

    if (GetWindowLong(Handle, GWL_STYLE) and WS_HSCROLL) <> 0 then
       ShowMessage('ScrollBar horizontal visible')
    else
       ShowMessage('ScrollBar horizontal oculta');
  end;
end;


Saludos.

Última edición por ecfisa fecha: 29-10-2010 a las 04:07:41.
Responder Con Cita