Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 25th, 2006, 10:50 AM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,086
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Changing Windows Appearance Settings

Is it possible to simulate the following manual procedure, automatically using the win32api?

right click on desktop > properties > appearance > effects > untick the 'use the following methods to smooth edges of screen fonts'.

Is there any data file or windows DLL command or win32api command I could use to simulate this procedure automatically? (And I definitely do not mean synthesis the appropriate keystrokes)
Sane is offline   Reply With Quote
Old May 25th, 2006, 11:03 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I Googled, but I found nothing. Well, nothing for C++... there's a Delphi feature that'll do it:

http://www.daniweb.com/code/snippet472.html

Can I suggest posting in the proper forum next time? :p
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 25th, 2006, 11:50 AM   #3
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
there could be something in the registry for it
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old May 25th, 2006, 12:41 PM   #4
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
Why do you need to code this, it's already done for you?
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Old May 25th, 2006, 3:09 PM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing has a number of associated values. It's been a while since I messed with this one, and that was with the Windows shell scripting thangy. Some of these things don't take effect until you log off, or in some cases, reboot. Don't know about this one.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 25th, 2006, 4:29 PM   #6
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,086
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Quote:
Originally Posted by King
Why do you need to code this, it's already done for you?
Not on the majority of the computers manufactured in Malaysia (which is the target audience of my program).



Quote:
Originally Posted by DaWei
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing
Wow! Thank-you very much!! Helps a lot.
Sane is offline   Reply With Quote
Old May 26th, 2006, 5:06 PM   #7
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,086
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
I'm having some troubles. When I make changes to the checkbox, I see them take effect on the screen, but I don't see them change in that location of the registry. I've tried refreshing and reopening the registry but no values in there are changing.
Sane is offline   Reply With Quote
Old May 26th, 2006, 5:49 PM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Are you going to make me go off and scratch and spit and surf, and here it is Sattidy, bath day?

Incidentallly, here is a tip, but I've deep-sixed my copy. As you know, there are a number of "tune-up" and "tweak" utilities that let you set things like this from one place, instead of hunting all over your system. There is one (not X-Teq, but similar) that not only makes the changes, but tells you the registry keys. I used it a lot while piddling around with that wsh thing. My memory, sadly, doesn't recall the name.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 26th, 2006, 5:53 PM   #9
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,194
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Sane
Is it possible to simulate the following manual procedure, automatically using the win32api?

right click on desktop > properties > appearance > effects > untick the 'use the following methods to smooth edges of screen fonts'.
Yup, that's completely possible. Use keyboard/mouse capturing to synthesize the appropriate keystrokes and mouse clicks.
Quote:
Originally Posted by Sane
Is there any data file or windows DLL command or win32api command I could use to simulate this procedure automatically? (And I definitely do not mean synthesis the appropriate keystrokes)
Oh, damn.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is online now   Reply With Quote
Old May 26th, 2006, 6:00 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
LOL, lectric, synthesize this, buddy!
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:58 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC