void CBitmapBtn::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
// TODO: Add your code to draw the specified item
UINT uStyle = DFCS_BUTTONPUSH;
// This code only works with buttons.
ASSERT(lpDrawItemStruct->CtlType == ODT_BUTTON);
/*// If drawing selected, add the pushed style to DrawFrameControl.
if (lpDrawItemStruct->itemState & ODS_SELECTED)
uStyle |= DFCS_PUSHED;
// Draw the button frame.
::DrawFrameControl(lpDrawItemStruct->hDC, &lpDrawItemStruct->rcItem,
DFC_BUTTON, uStyle);
*/
// Get the button's text.
CString strText=L"";
// TCHAR strbuf[100];
GetWindowText(strText);
// GetDlgItemText(GetDlgCtrlID(),strbuf,100);
// Draw the button text using the text color red.
//2007--9--13 xqh 按钮要显示就会进这个函数,通过向串口输出这条消息,可以进行追踪!
//RETAILMSG(1,(TEXT("++++CCCC::Entrying CBitmapBtn::DrawItem( )----the control ID is %d \r\n"),lpDrawItemStruct->CtlID));