Solved

Problems with popup dialogs...

Posted on 2001-07-26
2
309 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
Comment Utility
Hi!
try set style WS_EX_CONTROLPARENT for each propertypage and propertysheet
0
 
LVL 1

Author Comment

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

/Joakim
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Mac OS 9 (Classic Environment) vs. MacBook Pro OS 10 8 36
if loop error 4 76
List out all word 7 219
countEvens challenge 2 55
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now