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. Need a simple "console-style" output window in MFC

Need a simple "console-style" output window in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
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.
  • J Offline
    J Offline
    Jan75
    wrote on last edited by
    #1

    Hello *.*! I'm just programming a little app with MFC. I wonder if there is a simple control that took my output data but there was only the listbox. It is very sinewy to collect all chars to a single line, delete the \n \l 's an then use the AddString function to put it out. I need to output to a control in a dialog like with printf: printf("bla bla"); printf("blubb blah \n"); <- NOW the new line!! and so on... Did anyone of you have an idea to solve my problem? But I can't use the win32-console-application since I have to use MFC and dialogs! Thanks in advance, Jan

    S 1 Reply Last reply
    0
    • J Jan75

      Hello *.*! I'm just programming a little app with MFC. I wonder if there is a simple control that took my output data but there was only the listbox. It is very sinewy to collect all chars to a single line, delete the \n \l 's an then use the AddString function to put it out. I need to output to a control in a dialog like with printf: printf("bla bla"); printf("blubb blah \n"); <- NOW the new line!! and so on... Did anyone of you have an idea to solve my problem? But I can't use the win32-console-application since I have to use MFC and dialogs! Thanks in advance, Jan

      S Offline
      S Offline
      S van Leent
      wrote on last edited by
      #2

      A textbox could do the trick, by doing something like

      txtBox->SetWindowText(txtBox->GetWindowText() + CString(_T("Some text")))

      LPCTSTR Dutch = TEXT("Double Dutch :-)");

      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