标  题: 如何将窗口居中显示?                              
发信人: Pacific (无情~~~Nolove), 信区: VisualC
发信站: BBS 水木清华站 (Fri Oct 16 16:58:24 1998)


        Easy, Call Function CWnd:: Center Windows                                
                                                                                 
         Example(1):  CenterWindow( );  //Relative to it's parent               
          // Relative to Screen                                                  
         Example(2):  CenterWindow(CWnd:: GetDesktopWindow( ));                 
          //Relative to Application's MainWindow                                 
         AfxGetMainWnd( ) -> Center Window( );                                   
                                                                                 

--
        老鸟有交待,中鸟要等待,菜鸟要忍耐。
        老鸟级功夫:吹牛、聊天、玩MUD 、发呆。
        中鸟级功夫:睡觉、灌水、玩游戏、NT&VC。
        菜鸟级功夫:学习、泡妞、玩篮球、And so on

        My E-Mail: Nolove@263.net

※ 修改:·Pacific 於 Oct 19 17:22:29 修改本文·[FROM:    166.111.6.89]

--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: yazhou.bbs@bbs.net.t]
※ 修改:.fzx 于 Aug  9 16:50:52 修改本文.[FROM: heart.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.301毫秒