vc实现的体温计控件. voidCThermoMeter::OnPaint() { CPaintDCdc(this); //获得控件区域 GetClientRect(&m_rectCtrl); CMemDCmemDC(&dc,&m_rectCtrl); //绘制仪表盘 if(m_dcMeterPlate.GetSafeHdc()==NULL||(m_bitmapMeterPlate.m_hObject==NULL)) { m_dcMeterPlate.CreateCompatibleDC(&dc); m_bitmapMeterPlat