Solved

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

Posted on 2004-09-24
6
220 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to have excel show file name on the title bar 4 55
VS2015 compilation and missing DLLs 9 163
SAPE.heur.AE935 Visual Studio 3 53
Trouble with References... 5 60
This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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…

828 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