m_slider_frontAgl_.SetRange(-180, 180, TRUE);

MFC中SliderCtrl控件中SetRange为负数范围时候,必须第三个参数为TRUE

否则setPos初始化失败

 

void SetRange( int nMin, int nMax, BOOL bRedraw = FALSE );
Parameters
nMin
Minimum position for the slider.
nMax
Maximum position for the slider.
bRedraw
The redraw flag. If this parameter is TRUE, the slider is redrawn after the range is set; otherwise the slider is not redrawn

相关文章:

  • 2021-04-18
  • 2022-12-23
  • 2021-12-27
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2021-07-16
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案