Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++Win32MFCdialog
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.
Aravind B.
Posted 19-Nov-12 8:13am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
0 Shai Vashdi 319
1 OriginalGriff 280
2 Sergey Alexandrovich Kryukov 250
3 Peter Leow 171
4 Abhinav S 168
0 Sergey Alexandrovich Kryukov 8,944
1 OriginalGriff 5,280
2 Peter Leow 3,985
3 Maciej Los 3,535
4 Abhinav S 3,218

Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid