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. mIRC channel textoutput .......

mIRC channel textoutput .......

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

    how create output text in richedit ctrl like mIRC channel textoutput ? I mean text scrolling from bottom side to upper side.... [ sorry for my english :) ] ---------------------------- never stop coding.

    D 1 Reply Last reply
    0
    • M Mandalay

      how create output text in richedit ctrl like mIRC channel textoutput ? I mean text scrolling from bottom side to upper side.... [ sorry for my english :) ] ---------------------------- never stop coding.

      D Offline
      D Offline
      Daniel Ferguson
      wrote on last edited by
      #2

      You want to insert text at the bottom of the richedit control?

      CHARRANGE cr;
      cr.cpMax = LONG_MAX;
      cr.cpMin = LONG_MAX;
      richedit.SetSel( cr ); // move selection to the bottom
      richedit.ReplaceSel( (LPCSTR)string ); // insert your text

      // force the rich edit to scroll to the bottom
      richedit.SendMessage( SB_BOTTOM, NULL, NULL );

      So in the interests of survival, they trained themselves to be agreeing machines instead of thinking machines. All their minds had to do was to discover what other people were thinking, and then they thought that, too."
      Breakfast of Champions, Kurt Vonnegut

      M 1 Reply Last reply
      0
      • D Daniel Ferguson

        You want to insert text at the bottom of the richedit control?

        CHARRANGE cr;
        cr.cpMax = LONG_MAX;
        cr.cpMin = LONG_MAX;
        richedit.SetSel( cr ); // move selection to the bottom
        richedit.ReplaceSel( (LPCSTR)string ); // insert your text

        // force the rich edit to scroll to the bottom
        richedit.SendMessage( SB_BOTTOM, NULL, NULL );

        So in the interests of survival, they trained themselves to be agreeing machines instead of thinking machines. All their minds had to do was to discover what other people were thinking, and then they thought that, too."
        Breakfast of Champions, Kurt Vonnegut

        M Offline
        M Offline
        Mandalay
        wrote on last edited by
        #3

        thanx :) ---------------------------- never stop coding.

        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