"Donovan J. Edye" <[EMAIL PROTECTED]> wrote on 9/02/2001 18:59:19:
>
>G'Day All,
>
>Does anyone know the API call to  open up the Date/Time Properties 
>Dialog? ie the dialog you get when you double click on the time on the 
>taskbar. I need a solution for all flavours of Windows := 9x, NT, 2K

It's a control panel in Win95/98 - can't speak for WinNT/2K.  You can 
start it from a commandline with: 

> rundll32 shell32.dll,Control_RunDLL timedate.cpl

You should be able to use ShellExecute() to do that or something 
similar.  Or the PSDK's suggestion: 

  WinExec('control.exe date/time', SW_NORMAL);

Or, if you're in a really masochistic mood, you can use LoadLibrary to 
get the .cpl file into memory and then send messages to it through the 
exported CPlApplet entry point.  You might get a little more control, 
but at the expense of a lot of extra work. 

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to