Important alert: (current site time 7/16/2013 7:29:00 AM EDT)
 

article

Change System Color

Email
Submitted on: 11/24/2001 12:09:08 AM
By: Jerome Scott II aka codecaine  
Level: Beginner
User Rating: By 1 Users
Compatibility: Delphi 5
Views: 5355
author picture
(About the author)
 
     To Change the system color 32bit 16bit etc

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				How Can I change the system color in api it doesn't matter what programming languages its in I can convert its in
icq 52271010
aim Jeromecold
I know its in ChangeDisplaySettings api call
under the devicemode dm.color I just don't know how to applie it


Other 163 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
11/29/2001 12:35:36 PMEd

You should check Google or any other search engine. This is for code.

Try something like this site:
http://www.vbapi.com/ref/c/changedisplaysettings.html

http://msdn.micros oft.com/library/default.asp?url=/library/en-us/gdi/devcons_7gz7.asp

or:

http://groups. google.com/groups?hl=en&threadm=6lu8lf%243s8%40olivia.kanservu.ca&rnum=10&prev=/groups%3Fq%3DChangeD isplaySettings%26hl%3Den%26as_qdr%3Dall%26sa%3DN%26tab%3Dwg

(If this comment was disrespectful, please report it.)

 
11/29/2001 12:38:14 PMEd

I just searched through some old code and found the following: (I didn't write it, and can't remember who did)::


function AdjustDisplay (Width,Height,Bits,Hertz : word) : boolean ;
var DM : tDevMode ;
begin
DM.dmSize := sizeof(DM) ;

DM.dmPelsWidth := Width ;
DM.dmBitsPerPel := Bits ;
DM.dmPelsHeight := Height ;
DM.dmDisplayFrequency := Hertz ;
DM.dmFields := DM_BITSPERPEL + DM_PELSWIDTH +
DM_PELSHEIGHT + DM_DISPLAYFREQUENCY ;
Result := (ChangeDisplaySettings(DM,CDS_UPDATEREGISTRY) =
DISP_CHANGE_SUCCESSFUL)
end;


(If this comment was disrespectful, please report it.)

 
11/29/2001 12:39:01 PMEd

Sorry about the bad formating, just did a copy/paste.

(If this comment was disrespectful, please report it.)

 
1/17/2003 4:39:48 PM

asdfsdfasdf
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.