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. Creating a CWnd with a dialog resource

Creating a CWnd with a dialog resource

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionlearning
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.
  • A Offline
    A Offline
    Antti Keskinen
    wrote on last edited by
    #1

    Hi ! Is it possible to create a CWnd which would have it's client area look like a dialog resource ? Why ? Because CDialog class doesn't have a great support for menus, docking toolbars or other stuff a CWnd has.. CFormView is the closest thing to what I want to achieve (CFrameWnd with CFormView as the view), but I do not want to use the document template. And using a CFormView without a document template is daunting process (read: I have no clue how) In addition to all this, my dialog MUST have a classname as well.. So, any suggestions on where to begin ? Namely, how to bind a dialog template to a CWnd :) Thanks, Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

    K 1 Reply Last reply
    0
    • A Antti Keskinen

      Hi ! Is it possible to create a CWnd which would have it's client area look like a dialog resource ? Why ? Because CDialog class doesn't have a great support for menus, docking toolbars or other stuff a CWnd has.. CFormView is the closest thing to what I want to achieve (CFrameWnd with CFormView as the view), but I do not want to use the document template. And using a CFormView without a document template is daunting process (read: I have no clue how) In addition to all this, my dialog MUST have a classname as well.. So, any suggestions on where to begin ? Namely, how to bind a dialog template to a CWnd :) Thanks, Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      You MUST not use the doc, you code your programm around. It only helps you with some routines. Another approach can be the modeless dialog. There are some samples in the MSDN and maybe in CP. Try this @ home. (B&B)

      A 1 Reply Last reply
      0
      • K KarstenK

        You MUST not use the doc, you code your programm around. It only helps you with some routines. Another approach can be the modeless dialog. There are some samples in the MSDN and maybe in CP. Try this @ home. (B&B)

        A Offline
        A Offline
        Antti Keskinen
        wrote on last edited by
        #3

        Thanks for the reply ! Unfortunately, I couldn't find any ways to 'code this around'.. Any hints on where I could find such articles ? Like I described in my opening post, using a CDialog-derived class is NOT an option, unless you can tell me how I can specify a menu resource, a class name and a window name while building the dialog. Does the CDialog have a suitable overridden CWnd::Create for this purpose ? Greets, Antti ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

        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