Problems goig from CXTButton to CXTPButton |
Post Reply |
Author | |
eggbox
Groupie Joined: 10 March 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 19 January 2018 at 12:38pm |
We recently upgraded to version 18.2 from 17.2 and we are looking at code that uses CXTButton and would like to upgrade to CXTPButton since the former is deprecated.
The code in question creates a button and as a flat button style with an image, with no code changes the button does not show the image at all. Some code (rcButtonPos and pParent are set correctly) ----- CXTPButton btn; btn.Create(_T(""), WS_CHILD|BS_NOTIFY|WS_VISIBLE|WS_TABSTOP, rcButtonPos, pParent, 100); btn.SetButtonStyle(BS_XT_SEMIFLAT|BS_XT_SHOWFOCUS );CBitmap bitmap; bitmap.LoadBitmap(uID); // Load image from resources CSize size = bitmap.GetBitmapDimension(); btn.SetBitmap(size, uID); -----It seems like I am doing everything correctly but all get is the default button images, e.g.Does anyone have an idea of what I am doing wrong?Thanks in advance. |
|
//*eggbox
Product: Xtreme ToolkitPro v18.2.0 Platform: Windows 7 (32 bit) Language: C++ / MFC |
|
cluster
Groupie Joined: 22 January 2015 Status: Offline Points: 91 |
Post Options
Thanks(0)
|
Hi
i think you should try:
|
|
Windows 7
Visual Studio 2013 CodeJock 18.6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |