|
|
|
|
To Change the system color 32bit 16bit etc
|
| |
Terms of Agreement:
By using this article, you agree to the following terms...
- 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.
- 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.
- You may link to this article from another website, but ONLY if it is not wrapped in a frame.
- 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
|
Your Vote
|
| |
Other User Comments
|
11/29/2001 12:35:36 PM: Ed
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 PM: Ed
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 PM: Ed
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.
|