V victor Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-17 #1 如何在delphi中设置系统时间的格式, 如设置24小时制或12小时制?
J jiangtao Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-17 #2 使用FormatDateTime函数即可 function FormatDateTime(const Format: string; DateTime: TDateTime): string; { FormatDateTime formats the date-and-time value given by DateTime using the format given by Format. The following format specifiers are supported:
使用FormatDateTime函数即可 function FormatDateTime(const Format: string; DateTime: TDateTime): string; { FormatDateTime formats the date-and-time value given by DateTime using the format given by Format. The following format specifiers are supported:
V victor Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-17 #3 先谢了! 但我说的是修改系统(如win95中的)时钟的显示格式, 我不希望出现系统时钟中不出现am, pm之类的显示
C CJ Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-20 #6 快给我加分!!! 为了这个KEY我找了好久! /key_current_user/Control Panel/International/sShortDate
P pegasus Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-30 #7 Hehe, 更好的方法是使用API: SetLocaleInfo Set the value which Type is LOCALE_SSHORTDATE
V victor Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-30 #8 请问SetLocaleInfo中的参数如何用? 谢谢!
P pegasus Unregistered / Unconfirmed GUEST, unregistred user! 1998-10-31 #9 呜呜, 只有30分哪! SetLocaleInfo( LOCALE_USER_DEFAULT, LOCALE_STIME, "tt hh:mm:ss" ); 改完之后不要忘了广播一条 WM_SETTINGCHANGE 消息
呜呜, 只有30分哪! SetLocaleInfo( LOCALE_USER_DEFAULT, LOCALE_STIME, "tt hh:mm:ss" ); 改完之后不要忘了广播一条 WM_SETTINGCHANGE 消息
V victor Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-20 #11 讨论结束 pegasus:你说的广播消息,如何实现? 谢谢
P pegasus Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-20 #12 It's easy: SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, NULL, NULL); then the taskbar clock or other well-done application will automatically reload the system setting,
It's easy: SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, NULL, NULL); then the taskbar clock or other well-done application will automatically reload the system setting,