Solved

Problems with popup dialogs...

Posted on 2001-07-26
2
312 Views
Last Modified: 2013-11-20
I have a Dialog based app with PropertyPages on it without a PropertySheet. I change the pages using ShowWindow (SW_SHOW) and ShowWindow (SW_HIDE). All the PropertyPages are added to a collection that takes CPropertyPages and some other info. So when I create the page I get the PropertyPage from the collection and Create it. On some PropertyPages have a created a tabbed PropertySheet with with a couple of more PropertyPages. The problem is when I try to open a dialog or a MessageBox from those pages, it doesn't work. I hear the ding when the messagebox opens but my program freezes and I have to kill it using the taskmanager. Does anyone have any idea what it could be? I have tried setting different hWnd when I display the MessageBox but that doesn't seem to matter. It works fine when I open a MessageBox on the PropertyPage that is a child to my main window.

Thanks..
//Joakim
0
Comment
Question by:joakimf
2 Comments
 
LVL 12

Accepted Solution

by:
migel earned 100 total points
ID: 6321783
Hi!
try set style WS_EX_CONTROLPARENT for each propertypage and propertysheet
0
 
LVL 1

Author Comment

by:joakimf
ID: 6321823
Thank you very much, it worked, all pages and the PropertySheet needed to be Controlparent. Thanks for your help.

/Joakim
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa‚Ķ
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question