- 259 名前:デフォルトの名無しさん mailto:sage [2009/11/22(日) 23:09:35 ]
- >>248
ShowScrollBarするという基本的な方針は間違ってない 俺はこんな感じで制御してる(thisは独自のスクロールバークラス) どうしても分からなければメアド晒せばソースあげるよ protected void ShowScrollBar(bool show) { if (show != this.Visible){NativeMethods.ShowScrollBar(this.Handle, this.Orientation, show);} if (show == true) { SCROLLINFO info = new SCROLLINFO(); info.cbSize = Marshal.SizeOf(info); info.fMask = ScrollInfoFlags.RANGE | ScrollInfoFlags.PAGE; NativeMethods.GetScrollInfo(this.Handle, this.Orientation, ref info); this.Enabled = (info.nMax >= info.nPage); } }
|

|