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. MFC loading form

MFC loading form

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
2 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.
  • M Offline
    M Offline
    missnazar
    wrote on last edited by
    #1

    Can someone give the way to load a particular form or dialog on execution of an MFC appwizard application? Drushti

    A 1 Reply Last reply
    0
    • M missnazar

      Can someone give the way to load a particular form or dialog on execution of an MFC appwizard application? Drushti

      A Offline
      A Offline
      agentnem
      wrote on last edited by
      #2

      That depends on how you made the application. If you're using the document/view architecture then just make the view class a CFormView (it's the last step when using the wizard). If not then use this workaround: (a) Create a dialog resource, and make a class for it. MAKE SURE TO OVERRIDE THE OnOk and OnCancel functions. (b) In your application add the dialog as a member variable. (c) In your applications' OnCreate function, create the dialog by calling CDialog::Create, put WS_CHILD | WS_VISIBLE for the style. DO NOT CALL DoModal.

      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