예제 #1
0
void CPPPropertyPage::OnDeltaPos(UINT idFrom, NMHDR FAR *pnmhdr, LRESULT *pResult)
{
	if (pnmhdr->code == UDN_DELTAPOS)
	{
		CSpinFixedCtrl *pSpin = (CSpinFixedCtrl *)CWnd::FromHandlePermanent(pnmhdr->hwndFrom);
		if (pSpin && pSpin->IsKindOf(RUNTIME_CLASS(CSpinFixedCtrl)))
			pSpin->OnNotifyDeltaPos((LPNM_UPDOWN)pnmhdr);
	}
	*pResult = 0;
}	
예제 #2
0
void Dialog_OnNotify(HWND hDlg, int idFrom, NMHDR FAR *pnmhdr)
/***************************************************************************/
{
	if (pnmhdr->code == UDN_DELTAPOS)
	{
		CSpinFixedCtrl *pSpin = (CSpinFixedCtrl *)CWnd::FromHandlePermanent(pnmhdr->hwndFrom);
		if (pSpin && pSpin->IsKindOf(RUNTIME_CLASS(CSpinFixedCtrl)))
			pSpin->OnNotifyDeltaPos((LPNM_UPDOWN)pnmhdr);
	}
}