CDialog VS CFormView

This is a discussion on CDialog VS CFormView within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I made an old dialog based application but I need to convert it to use a Doc/View model (SDI). ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    205

    CDialog VS CFormView

    Hi,
    I made an old dialog based application but I need to convert it to use a Doc/View model (SDI). My application uses tabs to display different controls and GUI. Since most of the dialog boxes are derived from the CDialog class, I was wondering if I could still use them and call them from a CFormView derived class in my SDI or will I need to convert them to a CFormView derived object to work. Thanks
    Amish

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    I don't think it's possible to "call" CDialog derivates from CFormView if you mean "embed" by that.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    If you used the resource editor to create your dialogs, then you can use those resources with your CFormView derived classes. Then it's just a matter of creating the message handlers, and moving your old code into the new message handlers.

    I'm not sure what CDialog derived functions you are calling, but the only ones which CFormView will support are the ones that come from the CWnd class.

  4. #4
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    That's what I thought. Thanks for the clarification
    Amish

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stop CFormView from closing
    By bdiamond in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2004, 02:22 PM
  2. CFormview caption
    By MPSoutine in forum Windows Programming
    Replies: 3
    Last Post: 12-23-2003, 11:59 AM
  3. CDialog actions after appearing
    By phil_drew in forum Windows Programming
    Replies: 0
    Last Post: 12-06-2002, 07:13 AM
  4. CFormView and CTabCtrl :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-28-2002, 11:03 PM
  5. Auto Resized Objects in CFormView :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-28-2002, 07:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21