Click here to Skip to main content
15,883,623 members

Modeless property sheet & Dialog focus issues

Aravind Badrinath Krishnan asked:

Open original thread
Hi,

I have an issue with setting window position of a Popup window behind a WS_CHILD property sheet. My application has controls bars, a WS_CHILD Style property sheet & a few modeless dialog boxes in a view. users works with multiple dialog boxes.

I have a requirement that when a user does a action say on click on button in a control bar or select a menu, one specific dialog needs to go to the bottom of Z Order behind all the existing dialogs. Details are as below:

1. I have a Property sheet which is created using a WS_CHILD style
Create(pParent, WS_CHILD | WS_VISIBLE);
2. I have a Modeless dialog say CMyViewDlg. This is a popup dialog box displayed as modeless dialog.
3. User does a action and i use the following line of code to send the CMyViewDlg to the bottom of Z-Order.
pMyViewDlg->SetWindowPos(&CWnd::wndBottom, 0, 0, 0, 0, SWP_NOACTIVATE |SWP_NOMOVE | SWP_NOSIZE);

This change in Z-oder sends my requested dialog behind all the dialogs except the first created Modeless Property Sheet. Is there any issue with the property sheet that a dialog cannot go behind it?

Any help is greatly appreciated.

Thanks,
Aravind B.
Tags: C++, Win32, MFC, Dialog

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900