CDateTimeCtrl对话框关闭 [英] CDateTimeCtrl dialog dismissed

查看:76
本文介绍了CDateTimeCtrl对话框关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用此控件时,无论我是否使用箭头滚动月份,它都会在5到8秒后消失.

When using this control it is dismissed after about 5-8 seconds whether or not I am scrolling month using arrows. It thought it was only dismissed after entering date?

推荐答案

可以通过CalendarCtrl,它可以触发事件
It may by the CalendarCtrl, it may fire the event


谢谢为了得到答复,我自己弄清楚了.问题是我允许:: OnPaint()事件失去对CDateTimeCtrl对话框的关注,导致它关闭.
Thanks for the reply, I figured it out myself. The problem was that I was allowing an ::OnPaint() event to lose focus on the CDateTimeCtrl dialog causing it to dismiss.


这篇关于CDateTimeCtrl对话框关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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