Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Document telling DialogBar to Update

Document telling DialogBar to Update

Scheduled Pinned Locked Moved C / C++ / MFC
designquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JennyP
    wrote on last edited by
    #1

    Hello, In my application, it would be most convenient for a CDocument method to send a message to a DialogBar to update it's UI with the latest Document values (Document values are updated by a second DialogBar). My question is (A) Although this may not be the best OO design, is this "OK"? and (B) What's the best way to implement this? (detailed code not necessary). Thanks! JennyP

    T 1 Reply Last reply
    0
    • J JennyP

      Hello, In my application, it would be most convenient for a CDocument method to send a message to a DialogBar to update it's UI with the latest Document values (Document values are updated by a second DialogBar). My question is (A) Although this may not be the best OO design, is this "OK"? and (B) What's the best way to implement this? (detailed code not necessary). Thanks! JennyP

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      You may consider overriding CDialogBar::OnUpdateCmdUI or adding UPDATE_CMD_UI for particular controls. Tomasz Sowinski -- http://www.shooltz.com

      What is "scratch" and why can everything be made from it?

      E 1 Reply Last reply
      0
      • T Tomasz Sowinski

        You may consider overriding CDialogBar::OnUpdateCmdUI or adding UPDATE_CMD_UI for particular controls. Tomasz Sowinski -- http://www.shooltz.com

        What is "scratch" and why can everything be made from it?

        E Offline
        E Offline
        Ernest Laurentin
        wrote on last edited by
        #3

        Tomasz is right! Just use UPDATE_CMD_UI macro, you won't have to send message to your dialog bar. The document needs to update only its view(s). The frame window should take care about updating the dialog bar, menus, etc.. VOTD:"5. The Lord loves righteousness and justice; the Earth is full of his unfailing love. "-Psalm 33:5

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups