• <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ù),因?yàn)镸oveWindow確實(shí)不好,浪費(fèi)了差不多一天時(shí)間。。。對(duì)于主窗口,選擇了Center屬性就可以移動(dòng)位置,不選就不行;窗口資源過(guò)大也不能移動(dòng);改變后窗口的尺寸大于等于屏幕尺寸的話,在它上面DoModal出來(lái)的新窗口不能移動(dòng)。。原來(lái),使用MoveWindow移動(dòng)對(duì)話框位置似乎有很苛刻的條件,一不小心就原地不動(dòng)了,而且我也實(shí)在琢磨不透這樣的條件,網(wǎng)上也沒(méi)有查處來(lái)。今天用了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),對(duì)于子窗口用的是其父窗口的坐標(biāo)系。然而對(duì)于用DoModal()彈出的窗口,如果在資源屬性里沒(méi)有選擇Child屬性的話,它的父窗口是DeskTop,而不是調(diào)用DoModal()的窗口。

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

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

            常用鏈接

            留言簿(7)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            相冊(cè)

            編程資源

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

            找工作

            搜索

            •  

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            久久99国产综合精品女同| 欧美日韩久久中文字幕| 亚洲国产精品无码久久SM| 久久夜色精品国产亚洲av| 99热热久久这里只有精品68| 久久午夜电影网| 93精91精品国产综合久久香蕉| 国产99久久精品一区二区| 久久久久久综合一区中文字幕| 久久青青草原国产精品免费| www.久久精品| 久久av免费天堂小草播放| 久久久久亚洲AV成人网人人软件| 久久精品免费网站网| 亚洲精品久久久www| 久久久久久精品久久久久| 久久影院综合精品| 日本福利片国产午夜久久| 久久久青草青青国产亚洲免观| 久久成人18免费网站| 久久久久久久久久久| 久久免费的精品国产V∧| 久久香蕉国产线看观看99| 久久久受www免费人成| 国色天香久久久久久久小说| 久久99国产综合精品女同| 国产成人久久777777| 国内精品久久久久影院薰衣草| 久久久免费精品re6| 久久久WWW免费人成精品| 亚洲av日韩精品久久久久久a| 国产精品久久久久久久app| 久久久久女人精品毛片| 久久久网中文字幕| 狠狠色丁香久久综合婷婷| 久久强奷乱码老熟女| 亚洲国产精品无码久久久蜜芽| 91精品国产91久久久久久青草| 国内高清久久久久久| 久久丝袜精品中文字幕| MM131亚洲国产美女久久|