CreateWindow和CreateWindowEX这两个API的区别,我相信一定还有很多这样类似格式的API 所以想搞明白

解决方案 »

  1.   

    The CreateWindowEx function creates an overlapped, pop-up, or child window with an extended window style; otherwise, this function is identical to the CreateWindow function这句话应该看的懂吧!
      

  2.   

    The CreateWindow function creates an overlapped, pop-up, or child window. It specifies the window class, window title, window style, and (optionally) the initial position and size of the window. The function also specifies the window's parent or owner, if any, and the window's menu.To use extended window styles in addition to the styles supported by CreateWindow, use the CreateWindowEx function.
      

  3.   

    CreateWindow函数的帮助里这样写的。
     this function is identical to the CreateWindow function. For more information about creating a window and for full descriptions of the other parameters of CreateWindowEx这两个函数是一样的,只不过CreateWindowEx提供了更详细的参数,而CreateWindow里面有很多参数是系统默认了,你不能改,其余的类推。他们实现同一个的不同版本。有的时候,Ex的功能有所增强,或者通用于Windows平台(包括Nt、2000),而没有Ex的可能只用于95/98。
      

  4.   

    CreateWindow()实际上最终调用CreateWindowEx()
      

  5.   

    API中带Ex后缀的,一般是没有Ex后缀的函数的扩充版本,增加更多功能。