想让滑块的初始位置居中,代码如下:
m_hangxiang.SetRange(-127,127);
m_hangxiang.SetPos(0);
m_fuyang.SetRange(-127,127);
m_fuyang.SetPos(0);
可是运行后还是位于最左边
求教这是怎么回事?
m_hangxiang.SetRange(-127,127);
m_hangxiang.SetPos(0);
m_fuyang.SetRange(-127,127);
m_fuyang.SetPos(0);
可是运行后还是位于最左边
求教这是怎么回事?
m_Slider4.SetPos(0);
void SetRange(
int nMin,
int nMax,
BOOL bRedraw = FALSE
);
Collapse imageParameters
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.