Search results for 'SystemParametersInfo'. 3 post(s) found.
- 2007/09/25 How to show window contents while dragging
- 2007/09/19 Disable ALT+TAB, CTRL+ESC, CTRL+ALT+DEL
- 2007/09/19 How to Activate/Deactivate the Screen Saver
Here's how to enable or disable the "Show window contents while dragging" Windows fature from Delphi code:
//To Show window contents while dragging:
SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, 1, nil, 0) ;
//To disable this option call the function:
SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, 0, nil, 0) ;
SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, 1, nil, 0) ;
//To disable this option call the function:
SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, 0, nil, 0) ;
Another posts included in "Delphi"
| How to use TTF Font Without Installing (0) | 2007/09/25 |
| Window flashing (0) | 2007/09/25 |
| Technology sharing related with software development. Specially content... (0) | 2007/10/02 |
| How to save text from Clipboard to a file (0) | 2007/09/25 |
| How to send char as message to another application (0) | 2007/09/25 |
| How to restrict mouse movement (0) | 2007/09/25 |
| List Devices (LPT, COM ports, ...) (0) | 2007/09/25 |
| How to know whether the font is TrueTypeFont or not (0) | 2007/09/25 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/28 22:26
moneyideas
-
Subject different money making ideas
2010/01/29 06:42
moneyideas
-
Subject different money making ideas
2010/01/31 16:41
moneyideas
If you wish to disable those key combinations while your application is running call SystemKeys. When you call SystemKeys, if Disable is True, the keys will be disabled, False otherwise.
Note: the code does NOT work under Win NT systems (XP, 2000)
procedure SystemKeys(Disable: Boolean) ;
var OldVal : LongInt;
begin
SystemParametersInfo(SPI_SCREENSAVERRUNNING, Word(Disable), @OldVal, 0) ;
end;
var OldVal : LongInt;
begin
SystemParametersInfo(SPI_SCREENSAVERRUNNING, Word(Disable), @OldVal, 0) ;
end;
Another posts included in "Delphi"
| Get Windows Temp directory (0) | 2007/09/20 |
| How to Get Windows OS Version ? (0) | 2007/09/20 |
| How to Get Filenames from Clipboard ? (0) | 2007/09/20 |
| Display Standard Windows Properties dialog (0) | 2007/09/19 |
| Disable Mouse and Keyboard from Delphi Code (0) | 2007/09/19 |
| Detecting Drive Types (0) | 2007/09/19 |
| Detecting and preventing Windows shut down (0) | 2007/09/19 |
| Create new program group in the Start menu (0) | 2007/09/19 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/25 08:20
moneyideas
-
Subject different money making ideas
2010/01/28 21:40
moneyideas
-
Subject different money making ideas
2010/01/29 06:13
moneyideas
-
Subject different money making ideas
2010/01/31 16:40
moneyideas
Sometimes you want to deactivate the current screensaver when performing some very long process. You can use this function to activate or deactivate the screensaver. Pass True to activate it, or False to deactivate it.
function ActivateScreenSaver(Activate: boolean): boolean;
var IntActive: byte;
begin
if Activate then
IntActive := 1
else
IntActive := 0;
Result := SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, IntActive, nil, 0) ;
end;
var IntActive: byte;
begin
if Activate then
IntActive := 1
else
IntActive := 0;
Result := SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, IntActive, nil, 0) ;
end;
Another posts included in "Delphi"
| How to capture the output from a DOS (command/console) Window (0) | 2007/09/19 |
| How to Change the Windows Start button bitmap (0) | 2007/09/19 |
| How to Close Another Application by Windows Caption (0) | 2007/09/19 |
| Retrieving all image links from an HTML document (0) | 2007/09/18 |
| List All Network Drives (0) | 2007/09/18 |
| How to set the "home page" for the Internet Explorer from Delphi code (0) | 2007/09/18 |
| How to get get IE favorites (0) | 2007/09/18 |
| Extracting the domain (host) name from an e-mail address (0) | 2007/09/18 |
Trackback : Cannot send a trackbact to this post.
-
Subject different money making ideas
2010/01/25 08:53
moneyideas
-
Subject different money making ideas
2010/01/28 22:12
moneyideas
-
Subject different money making ideas
2010/01/29 06:27
moneyideas
-
Subject different money making ideas
2010/01/31 16:40
moneyideas

Prev

Rss Feed