想讓滑塊的初始位置居中,代碼如下:
m_hangxiang.SetRange(-127,127);
m_hangxiang.SetPos(0);
m_fuyang.SetRange(-127,127);
m_fuyang.SetPos(0);
可是運行后還是位于最左邊

求教這是怎么回事?
uj5u.com熱心網友回復:
m_Slider4.SetRange( -127, +127, TRUE);m_Slider4.SetPos(0);
uj5u.com熱心網友回復:
Sets the range (minimum and maximum positions) for the slider in a slider control.
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.
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/81956.html
標籤:基礎類
上一篇:【請大神幫忙jie'jue】【 "WNDCLASS *" 型別的實參與 "const WNDCLASSA *" 型別的形參不兼容】
下一篇:MFC 界面
