发现使用的时候&前缀它不认,但仔细观察后发现disable的button能正确显示&前缀,仿照其代码,修改如下:
约106行:
if(nButtonState & ODS_SELECTED)
{
CPoint ptCaption = ptCaptionBegPos;
ptCaption.x++;
ptCaption.y++;
dc.DrawState(ptCaption, szText, pszButtonCaption, DSS_NORMAL);
}
else
{
dc.DrawState(ptCaptionBegPos, szText, pszButtonCaption, DSS_NORMAL);
}