ACMer  
日历
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
统计
  • 随笔 - 3
  • 文章 - 9
  • 评论 - 3
  • 引用 - 0

导航

常用链接

留言簿(1)

随笔档案

文章分类

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜

 
        HWND   hDesk;  
        RECT   rc;
        
if (stat == 0)
        {
            
// 全屏
            hDesk = GetDesktopWindow();  
            GetWindowRect( hDesk, 
&rc);  
            SetWindowLong( hwnd, GWL_STYLE, WS_BORDER);  
            SetWindowPos( hwnd, HWND_TOPMOST, 
00, rc.right, rc.bottom, SWP_SHOWWINDOW);
            stat 
= 1;
        }

        
else
        {
            
// 窗口化
            SetWindowLong( hwnd, GWL_STYLE, WS_OVERLAPPEDWINDOW);
            SetWindowPos( hwnd, HWND_TOPMOST, 
0000, SWP_SHOWWINDOW);
            MoveWindow(hwnd, left, top, width,height, TRUE);    
            InvalidateRect(
0,NULL,0); //桌面重绘
            stat = 0;
        }
        
return 0;

posted on 2009-05-21 20:07 小奇 阅读(335) 评论(0)  编辑 收藏 引用 所属分类: Win32 SDK

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


 
Copyright © 小奇 Powered by: 博客园 模板提供:沪江博客