注册 登录
编程论坛 VC.NET论坛

問個很奇怪的問題

banboo2004 发布于 2006-07-20 13:23, 1633 次点击
我在VC的對話框中創建一個CSpinButtonCtrl的控件,不要告訴我不知道這個控件.我不在資源的對話框裡進行填加控件,我只想動態的生成一個控件,用CSpinButtonCtrl的Create函數,但是我所創建的spinbutton不能更改寬度,只能更改長短,好像哪裡有限置,不知道大家有沒有遇到過????
2 回复
#2
十一月天2006-07-21 10:18

Construction

Create: Creates a spin button control and attaches it to a CSpinButtonCtrl object.
CreateEx: Creates a spin button control with the specified Windows extended styles and attaches it to a CSpinButtonCtrl: object.
CSpinButtonCtrl: Constructs a CSpinButtonCtrl object.

Attributes

GetAccel: Retrieves acceleration information for a spin button control.
GetBase: Retrieves the current base for a spin button control.
GetBuddy: Retrieves a pointer to the current buddy window.
GetPos: Retrieves the current position of a spin button control.
GetPos32: Retrieves the 32-bit position of a spin button control.
GetRange: Retrieves the upper and lower limits (range) for a spin button control.
GetRange32: Retrieves the 32-bit range for a spin button control.
SetAccel: Sets the acceleration for a spin button control.
SetBase: Sets the base for a spin button control.
SetBuddy: Sets the buddy window for a spin button control.
SetPos: Sets the current position for the control.
SetPos32: Sets the 32-bit position for a spin button control.
SetRange: Sets the upper and lower limits (range) for a spin button control.
SetRange32: Sets the 32-bit range for a spin button control.

#3
十一月天2006-07-21 10:19
上面是我能找到的CSpinButtonCtrl的所有属性和方法,好像没有你要的方法,你再看看。

在.NET里我真的没听说过CSpinButtonCtrl这个控件,应该是MFC里的控件吧

[此贴子已经被作者于2006-7-21 10:23:09编辑过]

1