Print Page | Close Window

CXTPPopupControl and UpdateLayeredWindow

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14890
Printed Date: 25 June 2025 at 4:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPopupControl and UpdateLayeredWindow
Posted By: PierreL
Subject: CXTPPopupControl and UpdateLayeredWindow
Date 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)



Replies:
Posted By: PierreL
Date Posted: 24 August 2009 at 10:56am
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)


Posted By: Oleg
Date Posted: 25 August 2009 at 5:49am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net