Spin control
-
Hi all, I have some doubt regarding the spin button control. In Spin button control, how can i know which button (up/dowm arrow button) is clicked? Thanx in advance.
-
Hi all, I have some doubt regarding the spin button control. In Spin button control, how can i know which button (up/dowm arrow button) is clicked? Thanx in advance.
void CTest::OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult) { NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR; // TODO: Add your control notification handler code here if(pNMUpDown->iDelta <0) MessageBox("up button"); else if(pNMUpDown->iDelta>0) MessageBox("down button"); *pResult = 0; } Regards, Ram
-
void CTest::OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult) { NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR; // TODO: Add your control notification handler code here if(pNMUpDown->iDelta <0) MessageBox("up button"); else if(pNMUpDown->iDelta>0) MessageBox("down button"); *pResult = 0; } Regards, Ram
Thanx for ur reply:)
-
Hi all, I have some doubt regarding the spin button control. In Spin button control, how can i know which button (up/dowm arrow button) is clicked? Thanx in advance.