Window标准事件如:MESSAGE_HANDLER(WM_CREATE,OnCreate);LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
{
   return bHandled = FALSE;
}return的返回值false和true的区别是什么呢?

解决方案 »

  1.   

    看看 WM_CREATE 的说明吧
      

  2.   

    If an application processes this message, it should return zero to continue creation of the window. If the application returns –1, the window is destroyed and the CreateWindowEx or CreateWindow function returns a NULL handle.
      

  3.   

    我不是具体要说明某个事件,WM_CREATE只是举例!我想知道,所有的事件都会返回false or true,什么情况下会返回false,什么时候返回true,谢了~
      

  4.   

    这要看具体你调用的那个函数了,看看函数的具体说明!返回值Return Value
      

  5.   

    同上,看具体函数,是如何定义的。比如有些事件处理了,而且成功,就返回true.
      

  6.   

    看情况吧,比如成功了返回TRUE错了就FALSE
      

  7.   

    你上面的是create成功了就是TURE,不成功就是FALSE。