|
// *********************************************************
// システム時刻を文字列で取得(99:99:99 999)
// 戻り値 : 無し
// *********************************************************
void LboxInfo::Time( LboxString *LString )
{
if ( LString->nLboxString < 32 ) {
LString->Resize( 32 );
}
LboxInfo::Time( LString->szLboxString );
}
void LboxInfo::Time( LPTSTR lpBuffer )
{
SYSTEMTIME st;
GetLocalTime(
&st // システム日時
);
wsprintf(
lpBuffer,
"%02d:%02d:%02d %03d",
st.wHour,
st.wMinute,
st.wSecond,
st.wMilliseconds
);
}
| |