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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Update window??

Update window??

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestionannouncement
4 Posts 2 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.
  • U Offline
    U Offline
    unidentify
    wrote on last edited by
    #1

    My Project is SDI, in MainFrame class, I use OnCreateClient(...) to splitter window. And I want to change style of one view after user click a button on the toolbar. How to update window by recreate window style like as using Invalidate() function to redraw?? Can anybody help me, please? Thanks a lots! don't stop me now!!!

    C 1 Reply Last reply
    0
    • U unidentify

      My Project is SDI, in MainFrame class, I use OnCreateClient(...) to splitter window. And I want to change style of one view after user click a button on the toolbar. How to update window by recreate window style like as using Invalidate() function to redraw?? Can anybody help me, please? Thanks a lots! don't stop me now!!!

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Is this[^] article usefull ? With this class you can create two different views and 'store' them on the same pane (one will be visible and the one wich is beyond is not visible). Thus, on command, you can switch the two views. So your code would look also a little bit better: if the two views you need to display needs to be handled differently... Hope this helps

      U 1 Reply Last reply
      0
      • C Cedric Moonen

        Is this[^] article usefull ? With this class you can create two different views and 'store' them on the same pane (one will be visible and the one wich is beyond is not visible). Thus, on command, you can switch the two views. So your code would look also a little bit better: if the two views you need to display needs to be handled differently... Hope this helps

        U Offline
        U Offline
        unidentify
        wrote on last edited by
        #3

        thank you. My problem have solved. And to My project interface become friendly and more useful. I only want to split into 3 view. And in left view, I have many my functions and store them in left panel like as tabbed control with some CPeropertyPage class. My software is used to control device, so I want all event occur at each page must be outted as logs on second view. I can't access data and invoke function in Document class from these page. Please help me solve this problem. Thanks. don't stop me now!!!

        C 1 Reply Last reply
        0
        • U unidentify

          thank you. My problem have solved. And to My project interface become friendly and more useful. I only want to split into 3 view. And in left view, I have many my functions and store them in left panel like as tabbed control with some CPeropertyPage class. My software is used to control device, so I want all event occur at each page must be outted as logs on second view. I can't access data and invoke function in Document class from these page. Please help me solve this problem. Thanks. don't stop me now!!!

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Informs the documents of the changes you make in one view so it will take the appropriate actions (send the 'update' data to the second view). Try to avoid having direct 'dialog' between two views: normally they should be totally independant. It is the document that must update them and have a knowledge of what's happening in one view (so to keep the other up to date)

          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