Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: In MFC, how can I find the actual signature of a function which is combined with a specific notification Pin
Mike Dimmick23-Aug-06 10:54
Mike Dimmick23-Aug-06 10:54 
QuestionReentrancy and Thread Safety Pin
Richard Andrew x6422-Aug-06 12:30
professionalRichard Andrew x6422-Aug-06 12:30 
AnswerRe: Reentrancy and Thread Safety Pin
Dave Calkins22-Aug-06 18:06
Dave Calkins22-Aug-06 18:06 
QuestionActive window Pin
jpyp22-Aug-06 10:32
jpyp22-Aug-06 10:32 
AnswerRe: Active window Pin
jk chan22-Aug-06 14:16
jk chan22-Aug-06 14:16 
AnswerRe: Active window Pin
jpyp23-Aug-06 8:26
jpyp23-Aug-06 8:26 
GeneralRe: Active window Pin
jk chan23-Aug-06 14:15
jk chan23-Aug-06 14:15 
AnswerRe: Active window Pin
jpyp24-Aug-06 8:11
jpyp24-Aug-06 8:11 
Thanks for your response!
I thought I understood this Z-order thing but maybe I'm missing something.
I have tried what you recommended with no success. The result was actually worst. I tried the following: (the lines in italic are what has changed from my original code)

I set the position of the main window.
SetWindowPos(&wndBottom, 0, 0, 0, 0, (SWP_NOSIZE | SWP_NOMOVE));<br />

Then I open the first 2 child windows as follows: (this not done in a loop)
<br />
page[0].pDlg = new CMyDlg0(this);<br />
page[0].pDlg->Create(ID of this dialog, NULL);<br />
HWND pHwnd = page[0].pWnd->GetSafeHwnd();<br />
::SetWindowPos(pWnd, HWND_TOP, 20, 100, 0, 0, SWP_NOSIZE);<br />
<br />
page[1].pDlg = new CMyDlg0(this);<br />
page[1].pDlg->Create(ID of this dialog, NULL);<br />
HWND pHwnd = page[1].pWnd->GetSafeHwnd();<br />
::SetWindowPos(pWnd, HWND_TOP, 20, 100, 0, 0, SWP_NOSIZE);<br />

If I understand how this work, at this point my Z-order should look like this:
page[1]
page[0]
main window
I started with the main window at the bottom, then I open the first child window with HWND_TOP which puts it at the top and keeping the main window at the bottom. Then I open the second window again with HWND_TOP which in turns puts it at the top and pushes down the other 2 windows to position 2 and 3 respectively.
When I close page[1], page[0] should become the active window because it is the next higher up in the Z-order in order word now position 1. However in my case, the main window becomes the active window.
Like I said, I must be missing something.
Is there a way I can look at the Z-order list?


jpyp

GeneralRe: Active window Pin
jk chan24-Aug-06 14:25
jk chan24-Aug-06 14:25 
QuestionCMap with integer keys [modified] Pin
bob1697222-Aug-06 10:16
bob1697222-Aug-06 10:16 
AnswerRe: CMap with integer keys Pin
Jörgen Sigvardsson22-Aug-06 13:56
Jörgen Sigvardsson22-Aug-06 13:56 
GeneralRe: CMap with integer keys [modified] Pin
bob1697222-Aug-06 18:37
bob1697222-Aug-06 18:37 
GeneralRe: CMap with integer keys Pin
Blake Miller29-Sep-06 8:37
Blake Miller29-Sep-06 8:37 
GeneralRe: CMap with integer keys Pin
bob169721-Oct-06 7:56
bob169721-Oct-06 7:56 
GeneralRe: CMap with integer keys Pin
Blake Miller2-Oct-06 2:22
Blake Miller2-Oct-06 2:22 
Questionfunction hooks Pin
inebriate22-Aug-06 8:55
inebriate22-Aug-06 8:55 
AnswerRe: function hooks Pin
Jörgen Sigvardsson22-Aug-06 13:54
Jörgen Sigvardsson22-Aug-06 13:54 
AnswerRe: function hooks Pin
Dave Calkins22-Aug-06 18:15
Dave Calkins22-Aug-06 18:15 
Questionexceptions Pin
jon-8022-Aug-06 8:48
professionaljon-8022-Aug-06 8:48 
QuestionRe: exceptions Pin
David Crow22-Aug-06 8:57
David Crow22-Aug-06 8:57 
AnswerRe: exceptions Pin
jon-8022-Aug-06 9:06
professionaljon-8022-Aug-06 9:06 
GeneralRe: exceptions Pin
Zac Howland22-Aug-06 9:10
Zac Howland22-Aug-06 9:10 
GeneralRe: exceptions Pin
David Crow22-Aug-06 9:21
David Crow22-Aug-06 9:21 
GeneralRe: exceptions Pin
Zac Howland22-Aug-06 9:22
Zac Howland22-Aug-06 9:22 
QuestionRe: exceptions Pin
David Crow22-Aug-06 9:32
David Crow22-Aug-06 9:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.