Solved

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

Posted on 2004-09-24
6
217 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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 …
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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