浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2004年9月17日

摘要: 看了一段代码:#ifdef CopyCursor#undef CopyCursor#endif原来define了还可以undef的。 阅读全文
posted @ 2004-09-17 16:00 浙林龙哥 阅读(568) 评论(0) 推荐(0)

摘要: 发现使用的时候&前缀它不认,但仔细观察后发现disable的button能正确显示&前缀,仿照其代码,修改如下:约106行:if(nButtonState & ODS_SELECTED){ CPoint ptCaption = ptCaptionBegPos; ptCaption.x++; ptCaption.y++; dc.DrawState(ptCaption, szText, pszButt... 阅读全文
posted @ 2004-09-17 13:19 浙林龙哥 阅读(540) 评论(0) 推荐(0)

摘要: 今天又用了一下Button,需要注意以下几点:(1)在stdafx.h中加入:#include #include "atlgdix.h"#include (2)在类中加入 WUI::CWUIButton m_btn;(3)在消息反射中加入: REFLECT_NOTIFICATIONS()否则按钮不能自绘(4)在OnInitDialog中子类化控件 m_btn.SubclassWin... 阅读全文
posted @ 2004-09-17 12:00 浙林龙哥 阅读(625) 评论(0) 推荐(0)