开发者

Any way to make dialogs appear/disappear with a transition in MFC?

For inst开发者_如何学JAVAance I have a main dialog, when I click a button a smaller dialog appears next to it. But it would be neat if the small one could somehow transition in, rather than simply appear. For instance using transparency, or zooming in, or sliding in from width=0 -> full-width.

Making an actual dialog do such things isn't too hard, but what about the controls within it? How might we approach this in a way that is reusable on different dialogs?


I don't know of any MFC libraries that do this. Closest is AnimateWindow(). Depending on how flashy you want to make your effects, this may or may not be enough (e.g. a simple fade in you can do with AnimateWindow()).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜