Print Page | Close Window

CXTPPopupControl and WS_EX_TOPMOST

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11538
Printed Date: 14 September 2025 at 11:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPopupControl and WS_EX_TOPMOST
Posted By: PierreL
Subject: CXTPPopupControl and WS_EX_TOPMOST
Date Posted: 22 July 2008 at 8:59am
Hello,

I have a CXTPPopupControl derived class and would like it to stay on top of its parent but not the Topmost window. When its displayed and I move another app in front of my app, this window is displayed on top. Is there an easy way to prevent this?

I override the Create and removed the WS_EX_TOPMOST ext. style but this has no effect due to the SetWindowPos call in UpdateState (I think?).

Thanks for your help,
Peter



Replies:
Posted By: Oleg
Date Posted: 23 July 2008 at 1:24am
Hi,
 
Just tried same and it works. Set breakpoint in your new Create method to be sure it executed.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: PierreL
Date Posted: 01 August 2008 at 12:02am
Hi Oleg,

The Create was being called in my code but for some reason removing WS_EX_TOPMOST ext. style did not work. It was still displayed as topmost.

I ended up overriding the CreateEx instead and I get the result I wanted.

Thanks for your reply,
Peter



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