cs.style = WS_OVERLAPPED  可以丢掉最大和最小以及system按钮,但是仍然有title
bar,如何让其消失,只出现俺的工具条在最上面呢?

解决方案 »

  1.   

    你是什么程序呀?
    SDI MDI DIALOG??????
      

  2.   

    那你是要掉主框架上的TitileBar了????
      

  3.   

    没错,去掉ws_caption是没用的
    高手快来呀
      

  4.   

    Specifies if a title bar appears at the top of a form.
    Syntax
    Object.TitleBar[ = nExpression]
    Settings
    nExpression
    the settings for the TitleBar property are as follows:
    setting          Description 
    0              The title bar is not displayed. 
    1 (Default)    The title bar is displayed. 怎么用,在哪里用,知情者帮忙啊
      

  5.   

    你看看,加上一下代码:
    BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
    {
    // TODO: Modify the Window class or styles here by modifying
    //  the CREATESTRUC;
    cs.style=WS_POPUPWINDOW;
    cs.style&=~WS_THICKFRAME;
    cs.x=0;
    cs.y=0;
    cs.cx=1024;
    cs.cy=768;
    cs.lpszName="title";
    return CFrameWnd::PreCreateWindow(cs);
    }
      

  6.   

    如果是对话框可以用
    BOOL CMoutDlg::OnInitDialog()
    {

    AfxGetMainWnd()->SetWindowText("");

    }
      

  7.   

    这样到也可以实现,不过好象有点不太美观啊
    不是有TITLEBARINFO和GetTitleBarInfo()的吗?怎么用他们啊?