Solved

Problems with popup dialogs...

Posted on 2001-07-26
2
311 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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