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. OnInitialUpdate

OnInitialUpdate

Scheduled Pinned Locked Moved C / C++ / MFC
question
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
    john5632
    wrote on last edited by
    #1

    In my CFormView drived class, why OnInitialUpdate() is not getting executed?

    A 1 Reply Last reply
    0
    • J john5632

      In my CFormView drived class, why OnInitialUpdate() is not getting executed?

      A Offline
      A Offline
      Andrew Brock
      wrote on last edited by
      #2

      Could you please post code from your header definition and source file, only relevant parts please. At a guess tho, I would say it is because you didn't declare it as a virtual function. In the header file it should be declared as virtual void OnInitialUpdate();

      N 1 Reply Last reply
      0
      • A Andrew Brock

        Could you please post code from your header definition and source file, only relevant parts please. At a guess tho, I would say it is because you didn't declare it as a virtual function. In the header file it should be declared as virtual void OnInitialUpdate();

        N Offline
        N Offline
        Niklas L
        wrote on last edited by
        #3

        Andrew Brock wrote:

        At a guess tho, I would say it is because you didn't declare it as a virtual function.
         
        In the header file it should be declared as virtual void OnInitialUpdate();

        Not likely since once virtual, always virtual. You don't need to declare an overridden virtual function virtual. However good it might be for readability, it's not necessary.

        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