• <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 閱讀(2730) 評論(0)  編輯 收藏 引用 所屬分類: VC/MFC

            <2025年7月>
            293012345
            6789101112
            13141516171819
            20212223242526
            272829303112
            3456789

            常用鏈接

            留言簿(7)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            相冊

            編程資源

            不務正業

            找工作

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            欧美午夜A∨大片久久 | 老色鬼久久亚洲AV综合| 久久久久久午夜精品| 亚洲精品无码专区久久久| 国产精品久久久久影院嫩草 | 蜜桃麻豆WWW久久囤产精品| 色妞色综合久久夜夜| 国产午夜精品理论片久久| 色青青草原桃花久久综合| 99久久99这里只有免费的精品| 国产91久久综合| 亚洲精品无码成人片久久| 久久国产午夜精品一区二区三区| 久久精品国产亚洲AV忘忧草18| 久久综合综合久久狠狠狠97色88| 香蕉久久久久久狠狠色| 一本一道久久精品综合| 综合网日日天干夜夜久久| 久久久久免费视频| 成人久久久观看免费毛片| 精品综合久久久久久98| 人妻精品久久久久中文字幕| 91精品国产91久久久久久蜜臀| 亚洲AV无码久久精品成人| 久久频这里精品99香蕉久| 久久久精品日本一区二区三区 | 久久国产精品国产自线拍免费| 久久无码高潮喷水| 欧美久久亚洲精品| 国产精品欧美久久久久无广告 | 97香蕉久久夜色精品国产| 免费一级做a爰片久久毛片潮| 99久久免费国产精品| 亚洲成色999久久网站| 久久久久久久尹人综合网亚洲| 日产精品久久久久久久性色| 综合人妻久久一区二区精品| 中文字幕无码免费久久| 四虎影视久久久免费| 欧美日韩精品久久久久| 久久久国产亚洲精品|