• <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函數,今天又要寫SetWindowPos函數,因為MoveWindow確實不好,浪費了差不多一天時間。。。對于主窗口,選擇了Center屬性就可以移動位置,不選就不行;窗口資源過大也不能移動;改變后窗口的尺寸大于等于屏幕尺寸的話,在它上面DoModal出來的新窗口不能移動。。原來,使用MoveWindow移動對話框位置似乎有很苛刻的條件,一不小心就原地不動了,而且我也實在琢磨不透這樣的條件,網上也沒有查處來。今天用了SetWindowPos后,才發現,果然好用!

            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

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

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

            <2006年3月>
            2627281234
            567891011
            12131415161718
            19202122232425
            2627282930311
            2345678

            常用鏈接

            留言簿(7)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            相冊

            編程資源

            不務正業

            找工作

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            99久久精品国内| 国产精品久久久久影院色| 久久一本综合| 亚洲AV无码1区2区久久| 久久狠狠色狠狠色综合| 伊人伊成久久人综合网777| 狠狠88综合久久久久综合网| 国产成人AV综合久久| 精品久久久无码21p发布| 色综合久久综精品| 一本色道久久综合狠狠躁| 99国产欧美久久久精品蜜芽| 国产精品乱码久久久久久软件| 久久国产精品99久久久久久老狼| 色天使久久综合网天天| 精品熟女少妇av免费久久| 亚洲精品国精品久久99热| 国产精品美女久久久免费| 婷婷久久香蕉五月综合加勒比| 久久久久噜噜噜亚洲熟女综合| 波多野结衣中文字幕久久| 中文字幕乱码人妻无码久久| 久久久久久久综合日本| 国产AV影片久久久久久| 9久久9久久精品| 成人久久综合网| 久久国产亚洲高清观看| 亚洲国产精品无码久久久秋霞2| 久久强奷乱码老熟女| 91久久九九无码成人网站| MM131亚洲国产美女久久| 亚洲狠狠婷婷综合久久蜜芽| 久久SE精品一区二区| 久久久久久久精品妇女99| 无码任你躁久久久久久老妇App| 久久久久国产精品三级网 | 青春久久| 久久久久国产精品麻豆AR影院| 精品一久久香蕉国产线看播放 | 久久99精品久久久久久噜噜| 国产午夜福利精品久久|