I am working on a program built in MFC.
I have this weird situation when I shake my CFormView. The first time everything is minimised correctly, but when I shake it the second time while all of the windows are restored, one of my CDialog’s inside the CFormView are going to the back, but it should be on front.
How can I catch the event of the second shake? What message does it send to my CDialog?
Is it something I can declare on my message map?
I couldn’t find anything about it in the internet.
i have found my solution.
i didn’t find any message that i could put my finger on, but on my function of “MoveDialog”
I used:
SetWindowPos(&wndNoTopMost,x,y,cx,cy,SWP_NOSIZE|SWP_SHOWWINDOW);The &wndNoTopMost by MSDN is:
and this is how i have solved my problem!
Thank you!