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. how to call a function outside class??

how to call a function outside class??

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialgraphicsquestion
3 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

    In SDI CView-based application, in OnOK() of CDialog class, how to call a function in CView? For example: when clicking a button on a dialog, invoke a funtion in CView to invalidate drawing on the view thanks very much! don't stop me now!!!

    D 1 Reply Last reply
    0
    • U unidentify

      In SDI CView-based application, in OnOK() of CDialog class, how to call a function in CView? For example: when clicking a button on a dialog, invoke a funtion in CView to invalidate drawing on the view thanks very much! don't stop me now!!!

      D Offline
      D Offline
      deldeep
      wrote on last edited by
      #2

      unidentify wrote: In SDI CView-based application, in OnOK() of CDialog class, how to call a function in CView? Using OnOK() will be not right method, i think you better use Custom Window Messages!!! keep smilling.....b'coz smile is the shortest distance between people....

      U 1 Reply Last reply
      0
      • D deldeep

        unidentify wrote: In SDI CView-based application, in OnOK() of CDialog class, how to call a function in CView? Using OnOK() will be not right method, i think you better use Custom Window Messages!!! keep smilling.....b'coz smile is the shortest distance between people....

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

        My project is Splitter window application. First view is inherrited from CFormView. Two other view is CView-based. This class add 3 class that inherrited from CPeropertyPage to use as Tabbed control and follow that there are 3 Dialog. Then I want each event occur at these dialog (clicking an button) will be display an message in second view (in OnDraw()) Please help me!! Thanks a lot. don't stop me now!!!

        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