|
// *********************************************************
// 日付の SYSTEMTIME の設定
// 戻り値 : 設定できない日付を指定すると false
// *********************************************************
BOOL LboxDTPicker::SetDateSystemtime( SYSTEMTIME *st )
{
BOOL bRet;
if ( this->bNoData ) {
if ( st->wYear == 0 && st->wMonth == 0 && st->wDay == 0 ) {
DateTime_SetSystemtime( this->hWnd, GDT_NONE, st );
}
else {
bRet = DateTime_SetSystemtime( this->hWnd, GDT_VALID, st );
if ( !bRet ) {
DateTime_SetSystemtime( this->hWnd, GDT_NONE, st );
}
}
return true;
}
else {
bRet = DateTime_SetSystemtime( this->hWnd, GDT_VALID, st );
return bRet;
}
}
| |