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

CXTPPopupControl and WS_EX_TOPMOST

 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 WS_EX_TOPMOST
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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