Solved

API to change Desktop resolution and Task Bar Properties (AutoHide)

Posted on 2004-09-24
6
215 Views
Last Modified: 2013-12-03
Does anyone know of an API to change the desktop resolution and the TaskBar properties? I'm using Delphi 7, but thought this was more an OS specific question than a language specific question.  Extra points (and heartfelt thanks) for sample Delphi code!!  :-)
0
Comment
Question by:tfield98
  • 2
  • 2
  • 2
6 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 100 total points
ID: 12148542
WinAPI ChangeDisplaySettings is the standard way to do this.
Here is a sample code in a previous question:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20537476.html
Good luck,
Jaime.
0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 100 total points
ID: 12148566
Here is another PAQ with a link on how to change screen resolutions in Delphi:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20113291.html

After an exhaustive search of the net and this site, I determined that you cannot change the AutoHide feature of the taskbar via code.  The closest "solution" was to complete hide the taskbar and then show it again when you are done.  This is not recommended however since the taskbar will be gone if your program crashes or the user switches to another application.

Regards,

Idle_Mind
0
 

Author Comment

by:tfield98
ID: 12148575
Olivares gets points for the first screen resolution answer! :-)

(I guess I've got to start searching EE before posting!)

Idle_Mind: I don't mind hiding the tool bar entirely. This is for a utility I'm using here: I'm doing screen recordings at 800x600, but can't stand to edit them at that resolution. I'll take the the risk. Any pointer to code that does that??
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 12148595
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 12148598
I found the solution easily because I know that the answer is ChangeDisplaySettings. About the problem mentioned by Idle-Mind, it's true.
Here you have a "Delphi solution":
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_11491518.html
0
 

Author Comment

by:tfield98
ID: 12150224
GREAT answers. Thanks, fellas.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now