如何设置Datetimepicker控件只读/不可编辑。 [英] How to set Datetimepicker control readonly/non-editable.

查看:3902
本文介绍了如何设置Datetimepicker控件只读/不可编辑。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我正在使用DATETIMEPICK_CLASS类来绘制DatetiemPicker控件。 默认情况下,我希望它可以编辑,稍后根据某些条件我必须将其设置为只读/不可编辑,因此我无法将WS_DISABLED传递给CreateWindowEx()方法。 (创作时间)



你可以帮我看看如何在绘制后设置DatetimePicker控件readonly / non-editable。

我们有没有可以使用的消息?





问候,

Joy

Hello All,

I am using DATETIMEPICK_CLASS class to draw DatetiemPicker control. By default I want it to be editable, later based on some condition I have to set it readonly/non-editable hence I can not pass WS_DISABLED to CreateWindowEx() method. ( while creation time)

can you please help me how to set DatetimePicker control readonly/non-editable after drawing it.
do we have any message that can be used?


Regards,
Joy

推荐答案

您好



这个链接用于你。



http://forums.codeguru.com/showthread.php?79904-Enable-and-Disable-Date-Time-Picker
Hi

This link is use ful for u.

http://forums.codeguru.com/showthread.php?79904-Enable-and-Disable-Date-Time-Picker


这篇关于如何设置Datetimepicker控件只读/不可编辑。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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