| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 298 人关注过本帖
标题:WINDOW编程中窗口处理函数问题
只看楼主 加入收藏
神七1
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-3-10
结帖率:0
收藏
已结贴  问题点数:3 回复次数:1 
WINDOW编程中窗口处理函数问题
case WM_SIZE:
          if (message == WM_SIZE)
          {
               cxClient = LOWORD (lParam) ;
               cyClient = HIWORD (lParam) ;
          }
               // Calculate scrolling rectangle

          rectScroll.left   = 0 ;
          rectScroll.right  = cxClient ;
          rectScroll.top    = cyChar ;
          rectScroll.bottom = cyChar * (cyClient / cyChar) ;

          InvalidateRect (hwnd, NULL, TRUE) ;
          if (message == WM_INPUTLANGCHANGE)
               return true ;

          return 0 ;
          上边是WM_SIZE:的完整
问题是  请哪位大哥帮我看看return true ;
的作用 这块不懂  返回后是什么状况
搜索更多相关主题的帖子: message return 
2011-03-10 21:48
njkido
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
帖 子:224
专家分:1184
注 册:2011-3-8
收藏
得分:3 
The WM_INPUTLANGCHANGE message is sent to the topmost affected window after an application's input language has been changed. You should make any application-specific settings and pass the message to the DefWindowProc function, which passes the message to all first-level child windows. These child windows can pass the message to DefWindowProc to have it pass the message to their child windows, and so on.

A window receives this message through its WindowProc function.

摘自MSDN
2011-03-11 09:43
快速回复:WINDOW编程中窗口处理函数问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.037187 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved