360风格的自绘按钮
只能传demo,代码被公司加密了。哎 m_btn.LoadFacePng(IDR_PNG8,"PNG"); m_btn.LoadPressPng(IDR_PNG10,"PNG"); // m_btn.LoadDisablePng(IDR_PNG10,"PNG"); m_btn.LoadHoverPng(IDR_PNG9,"PNG"); m_btn.SetTooltipText("Hunter lv Tool tips!", TRUE); m_btn.SetMenu(IDR_MENU1, this->m_hWnd, TRUE); void PaintBk(CDC* pDC); BOOL LoadFacePng(UINT nID, LPCTSTR cType); //btn face image, load BOOL LoadDisablePng(UINT nID, LPCTSTR cType); BOOL LoadPressPng(UINT nID, LPCTSTR cType); BOOL LoadHoverPng(UIN T nID, LPCTSTR cType); DWORD SetBk(CDC* pDC); DWORD EnableBalloonTooltip(); void InitToolTip(); void SetTooltipText(LPCTSTR lpszText, BOOL bActivate);
用户评论
代碼可用,謝謝
正是我需要的,试用中