如何修改CSpinButtonCtrl的样式 [英] how to modify the style of CSpinButtonCtrl

查看:85
本文介绍了如何修改CSpinButtonCtrl的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能告诉我如何只用代码更改CSpinButtonCtrl的样式吗?我发现CSpinButtonCtrl的

属性Auto Buddy无法通过代码设置,它只能通过Visual Studio中的属性窗口设置,任何人都可以帮助我,谢谢!

hi , can anybody tell me how to change the style of CSpinButtonCtrl with only code ? i found that CSpinButtonCtrl's
property Auto Buddy can not be set by code , it can be set only by property window in Visual studio , can anybody help me , thank you !

推荐答案

只能在创建控件时指定 CSpinButtonCtrl 样式。如果在运行时需要不同的样式,则必须动态创建控件。 MSDN文章手动添加控件 [ ^ ]说明了如何执行此操作。如果在控件存在时也必须更改样式,则必须将其销毁并重新创建。
The CSpinButtonCtrl styles can be only specified when creating the control. If you need different styles at run-time, you must create the control dynamically. The MSDN article Adding Controls By Hand[^] explains how to do this. If the style must be also changed when the control exists already, it must be destroyed and re-created.


你好,

你可以看一下所有者淹没旋转按钮。在CP中,您将找到许多关于所有者淹没GUI元素的文章。我认为以下链接将帮助您实现目标



所有者绘制的旋转按钮控件,带有自动禁用箭头按钮。


这篇关于如何修改CSpinButtonCtrl的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆