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. a chat window

a chat window

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutoriallounge
5 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.
  • K Offline
    K Offline
    Kaspac
    wrote on last edited by
    #1

    hi, using the MFC, I just want to have a window in which u can chat, so with an edit control at the bottom and also a view to display a text. and then my real problem will be to display a text on this window, I thing that I will have to use the OnPaint(), but I don't really know how to deal with that stuff. thx for ur help. -- Kas'pac'll be back.

    T L 2 Replies Last reply
    0
    • K Kaspac

      hi, using the MFC, I just want to have a window in which u can chat, so with an edit control at the bottom and also a view to display a text. and then my real problem will be to display a text on this window, I thing that I will have to use the OnPaint(), but I don't really know how to deal with that stuff. thx for ur help. -- Kas'pac'll be back.

      T Offline
      T Offline
      Thomas Lau
      wrote on last edited by
      #2

      Hello. You can use the CFormView Class .The FormView have a look like Dialog.You can place a RichEdit control on the top of form view and place a Edit control on the bottom of form view. Good luck!:)

      K 1 Reply Last reply
      0
      • K Kaspac

        hi, using the MFC, I just want to have a window in which u can chat, so with an edit control at the bottom and also a view to display a text. and then my real problem will be to display a text on this window, I thing that I will have to use the OnPaint(), but I don't really know how to deal with that stuff. thx for ur help. -- Kas'pac'll be back.

        L Offline
        L Offline
        l a u r e n
        wrote on last edited by
        #3

        ummmmm i hate to rain on ur parade man (as the man said) but theres just a little more to a chat program than an edit window and a few buttons :omg:


        "traffic lights are for people who can't make their own decisions"
        biz stuff   about me

        1 Reply Last reply
        0
        • T Thomas Lau

          Hello. You can use the CFormView Class .The FormView have a look like Dialog.You can place a RichEdit control on the top of form view and place a Edit control on the bottom of form view. Good luck!:)

          K Offline
          K Offline
          Kaspac
          wrote on last edited by
          #4

          Hi, thanks for ur idea TLiu, I'll try that, but I still wonder how to do to display a text on the RichEdit control. thx very much. -- Kaspac'll be back.

          T 1 Reply Last reply
          0
          • K Kaspac

            Hi, thanks for ur idea TLiu, I'll try that, but I still wonder how to do to display a text on the RichEdit control. thx very much. -- Kaspac'll be back.

            T Offline
            T Offline
            Thomas Lau
            wrote on last edited by
            #5

            You can reference to MSDN about CRichEidt.I remenber that there is a sample in MSDN about wordpad.Using CRichEdit in the sample.;)

            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