DrawCaption()的DC_BUTTONS标志不起作用? [英] DC_BUTTONS flag for DrawCaption() not work?

查看:211
本文介绍了DrawCaption()的DC_BUTTONS标志不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用0x1000也不起作用,

有关DrawCaption的DC_BUTTONS标志的MSDN文档说:Windows XP:如果设置,该函数将在标题栏中绘制按钮(以最小化,还原或关闭应用程序).

我的平台只是Windows XP,我的代码是:

Using 0x1000 dosen''t work either,

MSDN documentation about DC_BUTTONS flag for DrawCaption said: Windows XP: If set, the function draws the buttons in the caption bar (to minimize, restore, or close an application).

my platform is just Windows XP and my code:

::DrawCaption(m_hWnd,hdc,&rtTitle,DC_ACTIVE|DC_ICON|DC_TEXT|0x1000);



除了这些按钮以外,还可以绘制其他项目.



Other Items can be drawn except these buttons

推荐答案

DC_BUTTONS定义为0x1000(请参见 winuser.h ).

如果不起作用"表示使用DC_BUTTONS时出现编译器错误:定义需要_WIN32_WINNT >= 0x0501(XP或更高版本).您可以在 stadfx.h 文件中调整_WIN32_WINNT或改用0x1000.

XP之前的Windows版本不支持此功能,因此在这些版本上将无法使用.
DC_BUTTONS is defined as 0x1000 (see winuser.h).

If ''not work'' means that you get a compiler error when using DC_BUTTONS: The definition requires _WIN32_WINNT >= 0x0501 (XP or later). You may adjust _WIN32_WINNT in your stadfx.h file or use 0x1000 instead.

It is not supported by Windows versions prior to XP and will not work on those.


对不起,我的意思是0x1000,我拼写错了

我的平台只是Windows XP
Sorry,i meant 0x1000,i had spell it wrong

my platform is just Windows XP


这篇关于DrawCaption()的DC_BUTTONS标志不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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