Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 96587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:50:27+00:00 2026-05-10T23:50:27+00:00

Hai in vc++6.0 MFC, i connected a serial port, while reading and displaying a

  • 0

Hai in vc++6.0 MFC, i connected a serial port, while reading and displaying a data(i want to display date and time ) in edit box (IDC_EDIT1),

My problem is I used a vertical scrollbar in the edit box. Whenever I display new data, the vertical scrollbar moves up; it must come down (scroll down),

The written code:

CString temp;     static CString dat;     static CString tim;      if (dat != m_date || tim != m_time)     {         temp = '\r\n-------------------------------------------------------------------------------------------------\r\n\r\n';         temp = temp + 'Date: ';         temp = temp + m_date;         temp = temp + '\t\t\t';         temp = temp + 'Time: ';         temp = temp + m_time;         temp = temp + '\r\n-------------------------------------------------------------------------------------------------';     }      dat = m_date;     tim = m_time;      temp = temp + '\r\n\r\n';     temp = temp + m_sensorname +'\t\t';     temp = temp + m_value + '\t\t';     temp = temp + m_units;      if (m_datalog_id ==0x01)         m_pdialog->m_editlog1= m_pdialog->m_editlog1 + temp;     else if(m_datalog_id==0x02)         m_pdialog->m_editlog2 = m_pdialog->m_editlog2 + temp;     else         return;      m_pdialog->UpdateData(false); 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:50:28+00:00Added an answer on May 10, 2026 at 11:50 pm

    After you write your text to the edit control, call IDC_EDIT1.ScrollToCaret(). That will scroll it down to the bottom where the new line is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hai I want to give a javascript variable within a double Quotes , Can
Hai I want to build a web site containing chat. i am working with
Hai i want to download an excel sheet which contain Macro. But i use
Hai Techies, I have some stored procedure which was written in SQL server.Now i
public enum myEnum { VAL1(10), VAL2(20), VAL3(hai) { public Object getValue() { return this.strVal;
I have used this in my HTML: <q> Hai How r u </q> Which
Hai, I tried to create a ListViewControl (tile mode) and added a ListViewItem .
Hai I am doing a web page. In that there is a drop down
hai i am very new to jquery and jqgrid.. i have implemented a grid...but
Hai Guys, Like DataAccessApplicationBlock for .net with sql server,Is there any thing for MySql

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.