Solved

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

Posted on 2004-09-24
6
219 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ODBC Connection; Switch between 2 SQL Databases VBA 11 90
How can i Install a new Data Source on Visual Studio 2 99
windbg taking it's time 32 90
Trouble with References... 5 54
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

777 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