MFC aero shake window message
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 m开发者_开发百科essage 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:
wndNoTopMost Repositions the window to the top of all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window.
and this is how i have solved my problem!
Thank you!
精彩评论