CMFCToolBarDateTimeCtrl

CMFCToolBarDateTimeCtrl

本文介绍了CMFCToolBarDateTimeCtrl - 外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将 CMFCToolBarDateTimeCtrl 添加到 CMFCToolBar.我找到了 ToolbarDateTimePicker 示例.在我的应用程序中,我像示例中一样实现了 CMFCToolBarDateTimeCtrl.问题是日期选择器看起来与示例的应用程序不同.

I try add CMFCToolBarDateTimeCtrl to CMFCToolBar. I found ToolbarDateTimePicker sample. In my application I implemented CMFCToolBarDateTimeCtrl the same like in the sample. The problem is that date picker looks otherwise than in sample's app.

打印屏幕:http://fotoo.pl//out.php?i=961861_datepick.jpg

有人知道为什么我的应用程序的外观与示例不同吗?提前致谢!

Does anybody know why the appearance of my app is different than sample?Thank in advance!

推荐答案

问题的解决方法是:

#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

到 stdafx.cpp.

to stdafx.cpp.

@rrirower、@user1793036 - 感谢您的提示.

@rrirower, @user1793036 - thank you for your tips.

这篇关于CMFCToolBarDateTimeCtrl - 外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 06:02