Resoluçao de video
Como eu verifico via codigo se a maquina do cliente tem uma resolução de video igual a 800x600? Obrigado.
Luiz
Luiz
L_carlos
Curtidas 0
Respostas
Nightshade
20/06/2007
if (Screen.Width = 800) and (Screen.Height = 600) then begin Showmessage(´tem resoluçao 800x600´); end;
GOSTEI 0
Nightshade
20/06/2007
function TrocaResolucao(X, Y: word): Boolean; var lpDevMode: TDeviceMode; begin Result := False; if EnumDisplaySettings(nil, 0, lpDevMode) then begin lpDevMode.dmFields := DM_PELSWIDTH Or DM_PELSHEIGHT; lpDevMode.dmPelsWidth := X; lpDevMode.dmPelsHeight:= Y; Result := ChangeDisplaySettings(lpDevMode, 0) = DISP_CHANGE_SUCCESSFUL; end; end;
função pra ti mudar a resoluçao via programaçao
GOSTEI 0
L_carlos
20/06/2007
Vlw Pessoal. Os dois posts me ajudaram.
Luiz
Luiz
GOSTEI 0