Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPPopupControl and UpdateLayeredWindow
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPopupControl and UpdateLayeredWindow

 Post Reply Post Reply
Author
Message
PierreL View Drop Down
Groupie
Groupie
Avatar

Joined: 01 September 2006
Location: Canada
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote PierreL Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPopupControl and UpdateLayeredWindow
    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)
Back to Top
PierreL View Drop Down
Groupie
Groupie
Avatar

Joined: 01 September 2006
Location: Canada
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote PierreL Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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
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.156 seconds.