How to change Brightness ????
Posted on 2005-04-10
How can I change the brightness of the screen / window application ??
I have tried using the SetColorAdjustment function but nothing happend when I chenged the caBrightness parameterof the tagCOLORADJUSTMENT.
This is what i did :
procedure TForm1.Button1Click(Sender: TObject);
hw : HWND;
nc : tagCOLORADJUSTMENT;
//I first got the normal tagCOLORADJUSTMENT of the form :
hw := Form1.Handle;
//and then I try to change it and set it back:
nc.caBrightness := 50;
nc.caIlluminantIndex := ILLUMINANT_B;
what can I do to make it work ??
Is there other functions to use ??