博客
关于我
MFC在CDockablePane中添加对话框
阅读量:237 次
发布时间:2019-02-28

本文共 939 字,大约阅读时间需要 3 分钟。

??MFC?????????????????????CMainFrame???CFraneWndEx???????????????

  • ???????MFC????CDockablePane?????CDockablePane????????????????????

  • ??CMainFrame??OnCreate??????????

  • if (!dock.Create(_T("??"), this, CRect(0, 0, 500, 500), TRUE, 1000,WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | CBRS_ALIGN_BOTTOM | CBRS_FLOAT_MULTI)) {    return FALSE;}dock.EnableDocking(CBRS_ALIGN_ANY);DockPane(&dock);

    ???dock?CDock???????????????????????

    1. ?????????????????????????Child?????Border???None???????????????CDUIHUA?

    2. ??????????????CDock????OnCreate????????????????DUIHUA???????????

    3. ??????????????????????????????????????????????

    4. ?CDock????OnPaint?????????????
    5. void CDock::OnPaint() {    CWindow::OnPaint();    // ??????    GetDC()->SetBkColor(RGB(255, 255, 255));}
      1. ???????CDock????OnSize?????????????????
      2. void CDock::OnSize() {    CWindow::OnSize();    // ?????????    GetParentWindow()->SetWindowRect(GetWindowRect());}

        ????????????????????????

    转载地址:http://qtip.baihongyu.com/

    你可能感兴趣的文章
    Pillow lacks the JPEG 2000 plugin
    查看>>
    SpringBoot之ElasticsearchRestTemplate常用示例
    查看>>
    ping 全网段CMD命令
    查看>>
    ping 命令的七种用法,看完瞬间成大神
    查看>>
    Pinia入门(快速上手)
    查看>>
    Pinia:$patch的使用场景
    查看>>
    Pinia:$subscribe()的使用场景
    查看>>
    Pinpoint对Kubernetes关键业务模块进行全链路监控
    查看>>
    Pinterest 大规模缓存集群的架构剖析
    查看>>
    pintos project (2) Project 1 Thread -Mission 1 Code
    查看>>
    PinYin4j库的使用
    查看>>
    PIP
    查看>>
    pip install goose-extractor // SyntaxError: Missing parentheses in call to 'print'
    查看>>
    pip install mysqlclient报错
    查看>>
    pip install 出现报asciii码错误的解决
    查看>>
    pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding‘ 在尝试安装新软件包时
    查看>>
    pip 下载慢
    查看>>
    pip 升级报错AttributeError: ‘NoneType’ object has no attribute ‘bytes’
    查看>>
    pip 安装opencv-python卡死
    查看>>
    pip 安装出现异常
    查看>>