Solved

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

Posted on 2004-09-24
6
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 86

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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

630 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