Re: CPEdit

| Index | Champ Home Page |

Posted by Hans Salvisberg on 1999-12-04 23:14 CET
(In reply to: CPEdit posted by Moritz Kobel on 1999-12-04 22:35 CET)

[The question is how to extract the entire line (including spaces) from an edit control.]

Es funktioniert gleich wie bei jedem Input-Stream (z.B. cin):

char buf[50];
CPEdit edit( dialog, IDC_Test, sizeof( buf ) - 1 );
edit.text().getline( buf, sizeof( buf ) );

edit.text() ist ein iostream und alles weitere macht die Borland Library.


Current thread:
CPEdit Moritz Kobel 1999-12-04 22:35 CET
Re: CPEdit Hans Salvisberg 1999-12-04 23:14 CET

Use this form to post a followup.
Name:
Email: (optional, hidden, replies will be forwarded to this address)
Subject:   (no text)

Message:

Optional Link (uses rel="nofollow" attribute to avoid attracting spammers)
Apparently, the forum spammers don't know what rel="nofollow" does, and because
they continue to feed their trash into the forum, we have to disable the Link feature.
Please do not post any link, or your post will be deleted automatically.
We're sorry for having to take that measure.
URL:
Title:

   



| Index | Champ Home Page |

Copyright © 2010 Salvisberg Software & Consulting. All rights reserved.
Top