{
LPNMUPDOWN pNMUpDown=reinterpret_cast & lt; LPNMUPDOWN> (pNMHDR);
//TODO: add the control notification handler code
The UpdateData (TRUE);
If (pNMUpDown - & gt; IDelta=1) {//iDelta=1 click on the arrow up, said iDelta=1 click on the arrow down
M_edit_freq=m_edit_freq + 0.16;
} else {
M_edit_freq=m_edit_freq - 0.16;
}
Cstrings STR.
STR. The Format (_T (" % 2 f "), m_edit_freq);
GetDlgItem (m_edit_freq) - & gt; SetWindowTextW (STR);
* pResult=0;
}

CodePudding user response:
I encountered similar problems on combobox,Cstrings STR.
GetLBText (GetCurSel (), STR);
When GetCurSel (), when the return value is CB_ERR can play box prompts the error,
The original poster can find, from the perspective of similar ListCtrl when acquiring the text, for example, put a wrong index in,
CodePudding user response:
Thank you, the problem to find out, just to fit the small white, made low-level mistakes, pNMUpDown - & gt; IDelta=1 should be the relational operator==here, rather than assignment symbol=