Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - setting a bitmap handle to a CXTButton
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

setting a bitmap handle to a CXTButton

 Post Reply Post Reply
Author
Message
winxp View Drop Down
Newbie
Newbie
Avatar

Joined: 28 October 2003
Location: Israel
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote winxp Quote  Post ReplyReply Direct Link To This Post Topic: setting a bitmap handle to a CXTButton
    Posted: 03 July 2005 at 8:33am

hi,

is there a way to set the CXTButton bitmap from a handle ( HBITMAP ) ?

thanks

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 July 2005 at 11:07pm

try this:

HICON hIcon = CXTPTransparentBitmap(bmpIcon).ConvertToIcon();

BOOL bResult = CXTButton::SetIcon(size, hIcon, NULL, bRedraw);

DestroyIcon(hIcon);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.