![]() |
CXTPPopupControl and UpdateLayeredWindow |
Post Reply ![]() |
Author | |
PierreL ![]() Groupie ![]() ![]() Joined: 01 September 2006 Location: Canada Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() Posted: 03 August 2009 at 10:44am |
Hello all,
I've upgraded to TKP 13.0.0 recently (from 11.2.2). It seems like the CXTPPopupControl class now uses the 'UpdateLayeredWindow' call an as a result my own derived popup control is not displaying properly. I have a CXTPPopupControl derived class to which I set the background bitmap (32 bit with alpha). I also use one CXTPPopupItem derived class to display text on top of this background image. In 11.2.2 this worked fine. In 13.0.0 I no longer see the popup item text? When I turn off the WS_EX_LAYERED property then I see my text. I haven't played with 'UpdateLayeredWindow' before. I read on various forums that children of a layered window don't get the paint message. I do see the painting being called for my text-based popup item... but no text is displayed. Can someone shed some light on what I need to do in order to get my text to display on top of the background image again? Thanks, Peter |
|
Product: Xtreme ToolkitPro version 13.0.0
Platform: Windows XP (32bit) - SP 3 Language: C++ (MFC) |
|
![]() |
|
PierreL ![]() Groupie ![]() ![]() Joined: 01 September 2006 Location: Canada Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
Anyone had a chance to figure this out? I really need to fix this issue.
![]() Here are a few more details: My derived CXTPPopupControl class uses the xtpPopupThemeCustom theme. I call SetBackgroundBitmap specifying the ID of the one and only image I load in the control's Image manager (this bitmap is 32 bits). I then add a simple CXTPPopupItem that is used to display a message (text only). The popup ctrl displays nicely; the rounded edges of the bitmap render just fine. I'm just not seeing the text item within it? Thanks for your time, Peter. |
|
Product: Xtreme ToolkitPro version 13.0.0
Platform: Windows XP (32bit) - SP 3 Language: C++ (MFC) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Yes if you use 32 bit alpha bitmap Popup control use Layers and can't draw any text. Just set simple 24 bit bitmap to make custom shape.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |