Basim
July 21st, 2003, 05:37 AM
Hi all i am using WndProc Hook to get the Notifications from a Spin control and the Notification is UDN_DELTAPOS in this Notification i am receiving the NMUPDOWN notification.
in this structure there are two int type informations
one is iPos and other is iDelta
the problem is that for every spin control and for every up or down click i am getting the same integer values
can any one tell me why the code i have pasted is as follows.
if(strcmp(cname,"msctls_updown32")==0)
{
if(pNm->code==UDN_DELTAPOS)
{
Beep(3000,20);
LPNMUPDOWN pUpDown;
pUpDown=(LPNMUPDOWN)lParam;
fprintf(file1,"\nThe iPos value is=%d\n",pUpDown>iPos);
fprintf(file1,"\The Delta value is=%d\n",pUpDown->iDelta);
}
}
thanx in advance for ur time.
regards
Basim
in this structure there are two int type informations
one is iPos and other is iDelta
the problem is that for every spin control and for every up or down click i am getting the same integer values
can any one tell me why the code i have pasted is as follows.
if(strcmp(cname,"msctls_updown32")==0)
{
if(pNm->code==UDN_DELTAPOS)
{
Beep(3000,20);
LPNMUPDOWN pUpDown;
pUpDown=(LPNMUPDOWN)lParam;
fprintf(file1,"\nThe iPos value is=%d\n",pUpDown>iPos);
fprintf(file1,"\The Delta value is=%d\n",pUpDown->iDelta);
}
}
thanx in advance for ur time.
regards
Basim