使用WUI点滴(一)

今天又用了一下Button,需要注意以下几点:

(1)
在stdafx.h中加入:
#include <atlmisc.h>
#include "atlgdix.h"
#include <wuilib.h>

(2)在类中加入
 WUI::CWUIButton<WUI::XPTraits, RGB(128,128,128)> m_btn;

(3)
在消息反射中加入:
        REFLECT_NOTIFICATIONS()
否则按钮不能自绘

(4)
在OnInitDialog中子类化控件
  m_btn.SubclassWindow(GetDlgItem(IDOK));


原文地址:https://www.cnblogs.com/huqingyu/p/44042.html