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

  • SEARCH
  • Home
  • 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 every one . im my project while displaying a page if there are
Hai i want to generated an automated click event. I am working in php
Hai guys, I want to send scheduled mail every morning from my application and
Hai all, In my iphone application i want to open a my custom application(available
hai guys, I want to upload images through my web page to a folder
Hai am trying to set alarm for every 10 minutes.But its running first time
Hai i want to send the message via coding is it possible? mobile number=xxx
Hai I used basic code for adwhirl to display ads by using AdWhirl. I
Hai... i am facing a problem while inserting values to an array. the programming
Hai Is there any way to edit the Registry of an system from another

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.