if((GetDlgItem(IDC_BUTTON4)->ShowWindow(SW_HIDE))==true)
我这样写怎么不对
谢谢!

解决方案 »

  1.   

    不能这样判断。CWnd::IsWindowVisible================高举那个,向星星挺进========================================
    http://www.betajin.com/alphasun/index.htm
    DocWizard C++程序文档自动生成工具 | Wave OpenGL 水波与动模拟和显示
      

  2.   

    if((GetDlgItem(IDC_BUTTON4)->IsWindowVisible() == true)
      

  3.   

    MSDN这样说:
    Return Values
    If the window was previously visible, the return value is nonzero. If the window was previously hidden, the return value is zero. 应该可以吧。
      

  4.   

    这不是按钮的显示判断,这是判断按钮隐藏是否成功,ShowWindow的返回值MSDN上这么说:Return Value
    Nonzero if the window was previously visible; zero if the CWnd was previously hidden