问题描述:
我有一个窗口B,B下有子窗口A1 - A10 10个子窗口,子窗口可随意拖动,现在我想让A3置与其它子窗口的顶层。
怎么实现啊,setwindowpos wndtopmost怎么不管用呢?

解决方案 »

  1.   

    CWnd::SetWindowPos(&wndTopMost, ...);肯定是可以设置到最顶层的
      

  2.   

    看看你的窗口风格是否指定了SWP_NOZORDER window can be moved to the top of the Z-order either by setting the 
    pWndInsertAfter parameter to &wndTopMost and ensuring that the SWP_NOZORDER
    flag is not set or by setting a window’s Z-order so that it is above any 
    existing topmost windows
      

  3.   

    我没有指定SWP_NOZORDER搞不懂为什么不行
      

  4.   

    有没有设置TOPMOST,窗口间有没有对应的主子关系,这些都有关系。自己好好检查下
      

  5.   

    子窗口与子窗口间唯一的关系就是父窗口相同,TOPMOST指定了