各位大哥:
小弟初学MFC编程请多照顾
提问:
vc++中关于筐架中的函数(比如和工具栏,菜单有关的) 
它的返回值是BOOL或是UINT是什么类型 
例如: 
BOOL SetBitmap(HBITMAP hbmImageWell) 
UINT GetButtonStyle(int nIndex)const 

解决方案 »

  1.   

    BOOL = bool ,  TRUE or FALSE
    UINT = unsigned int
      

  2.   

    UINT 是 unsigned int
    BOOL 返回0或非0值
      

  3.   

    BOOL其实也是 unsigned int。只不过是0为false, 非0为true。
    UINT = Unsigned INTeger
      

  4.   

    在WINDEF.h中
    typedef int                 BOOL;
    typedef unsigned int        UINT;注意BOOL不等于bool
    bool是C++标准类型,只能取true和false(都是关键字)
    BOOL是Windows定义的类型,是int的同义词,因此可以取TRUE(1),FALSE(0),也能取其他值,但语义上却应该当作bool