|
// *********************************************************
// WM_NOTIFYメッセージを取得してユーザメッセージを送る
// 戻り値 : メッセージ( 0 の時は対象外 )
// *********************************************************
UINT LboxDTPicker::Notify( HWND hTarget, LPARAM lParam )
{
HWND hCur;
LPNMHDR lpNmhdr;
lpNmhdr = (LPNMHDR)lParam;
hCur = lpNmhdr->hwndFrom;
// メッセ−ジがこのオブジェクトである場合
if ( hCur == this->hWnd ) {
if ( lpNmhdr->code == DTN_DATETIMECHANGE ) {
SendMessage( hTarget, LBOX_DTP_CHANGE, (WPARAM)hCur, 0 );
}
if ( lpNmhdr->code == NM_KILLFOCUS ) {
SendMessage( hTarget, LBOX_DTP_KILLFOCUS, (WPARAM)hCur, 0 );
}
if ( lpNmhdr->code == NM_SETFOCUS ) {
SendMessage( hTarget, LBOX_DTP_SETFOCUS, (WPARAM)hCur, 0 );
}
return lpNmhdr->code;
}
return 0;
}
| |