• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 19,  comments - 21,  trackbacks - 0
            昨天寫了MoveWindow函數(shù),今天又要寫SetWindowPos函數(shù),因為MoveWindow確實不好,浪費(fèi)了差不多一天時間。。。對于主窗口,選擇了Center屬性就可以移動位置,不選就不行;窗口資源過大也不能移動;改變后窗口的尺寸大于等于屏幕尺寸的話,在它上面DoModal出來的新窗口不能移動。。原來,使用MoveWindow移動對話框位置似乎有很苛刻的條件,一不小心就原地不動了,而且我也實在琢磨不透這樣的條件,網(wǎng)上也沒有查處來。今天用了SetWindowPos后,才發(fā)現(xiàn),果然好用!

            BOOL SetWindowPos(
               
            const CWnd* pWndInsertAfter,
               
            int x,
               
            int y,
               
            int cx,
               
            int cy,
               UINT nFlags 
            );

            Parameters

            pWndInsertAfter
            Identifies the CWnd object that will precede this CWnd object in the Z-order. This parameter can be a pointer to a CWnd or a Pointer to one of the following values:
            • wndBottom   Places the window at the bottom of the Z-order. If this CWnd is a topmost window, the window loses its topmost status; the system places the window at the bottom of all other windows.
            • wndTop   Places the window at the top of the Z-order.
            • wndTopMost   Places the window above all nontopmost windows. The window maintains its topmost position even when it is deactivated.
            • wndNoTopMost   Repositions the window to the top of all nontopmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a nontopmost window.
            nFlags
            Specifies sizing and positioning options. This parameter can be a combination of the following: 常用的是SWP_SHOWWINDOW

            注意:
                這里的坐標(biāo)參數(shù)用的是Client坐標(biāo),對于子窗口用的是其父窗口的坐標(biāo)系。然而對于用DoModal()彈出的窗口,如果在資源屬性里沒有選擇Child屬性的話,它的父窗口是DeskTop,而不是調(diào)用DoModal()的窗口。

            posted on 2006-03-01 17:30 halCode 閱讀(2737) 評論(0)  編輯 收藏 引用 所屬分類: VC/MFC

            <2005年12月>
            27282930123
            45678910
            11121314151617
            18192021222324
            25262728293031
            1234567

            常用鏈接

            留言簿(7)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            相冊

            編程資源

            不務(wù)正業(yè)

            找工作

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            久久久久女人精品毛片| 激情综合色综合久久综合| 亚洲精品美女久久久久99| 亚洲AV乱码久久精品蜜桃| 久久99国产精品久久99| 久久久久久久国产免费看| 久久偷看各类wc女厕嘘嘘| 久久国产乱子伦精品免费午夜| 久久精品国产AV一区二区三区| 成人亚洲欧美久久久久| 午夜精品久久久久久毛片| 性欧美大战久久久久久久| 久久伊人精品青青草原高清| 国产成人精品三上悠亚久久| 麻豆久久| 久久国产精品免费| 久久777国产线看观看精品| 亚洲国产精品无码久久| 国产精品久久久久蜜芽| 91久久精品电影| 久久伊人精品青青草原高清| 久久66热人妻偷产精品9| 久久伊人精品一区二区三区| 久久夜色撩人精品国产小说| 国产精品久久久99| 91精品久久久久久无码| 亚洲乱亚洲乱淫久久| 久久国产精品久久国产精品| 精品久久久久久久无码| 久久亚洲精品成人av无码网站| 2019久久久高清456| 久久久久久精品成人免费图片| 香蕉99久久国产综合精品宅男自| 欧美精品丝袜久久久中文字幕 | 国产免费久久精品99久久| 狠狠久久综合| 国产午夜精品久久久久九九电影 | WWW婷婷AV久久久影片| 久久亚洲AV成人无码电影| 国产精品久久久久jk制服| 狠色狠色狠狠色综合久久|