CodePudding user response:
Add a list of header filesAfx_msg void OnCustomdrawList (NMHDR * pNMHDR, LRESULT * pResult);
The CPP file:
ON_NOTIFY (NM_CUSTOMDRAW IDC_LIST, OnCustomdrawList)
After OnCustomdrawList appear in the class, but when click again and said undefined, compile time appears unresolved external symbol, a great god please explain
CodePudding user response:
CPP file also need to add a function to achieve
Void CXXX: : OnCustomdrawList (NMHDR * pNMHDR, LRESULT * pResult)
{
//other code
}
CodePudding user response:
, thank you, have been solved, but now there is a problem, is I want to change the List Control controls the background color, when different button will show different color, but now I met the problem is that the first color can display normally, but when I press the button, the color of the now, will be put before the color of the cover, all the data of the background color is the color of the now, ask god to give directionsCodePudding user response:
The color of the now, will turn the color of the cover? Don't you want is to replace the former that the latter effect, don't you take two kinds of color, so I don't know what you mean, is there any explanation?In addition, your List Control is reporting mode or icon mode