Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to pass handle to stl container? Pin
Todd Smith22-Apr-02 15:37
Todd Smith22-Apr-02 15:37 
AnswerRe: How to pass handle to stl container? Pin
Paul M Watt22-Apr-02 15:52
mentorPaul M Watt22-Apr-02 15:52 
GeneralRe: How to pass handle to stl container? Pin
Christian Graus22-Apr-02 16:06
protectorChristian Graus22-Apr-02 16:06 
GeneralSpeeding Up Display Time in CEditView :: MFC Pin
valikac22-Apr-02 15:27
valikac22-Apr-02 15:27 
GeneralRe: Speeding Up Display Time in CEditView :: MFC Pin
Paul M Watt22-Apr-02 16:02
mentorPaul M Watt22-Apr-02 16:02 
GeneralRe: Speeding Up Display Time in CEditView :: MFC Pin
valikac22-Apr-02 16:36
valikac22-Apr-02 16:36 
GeneralRe: Speeding Up Display Time in CEditView :: MFC Pin
Paul M Watt22-Apr-02 18:47
mentorPaul M Watt22-Apr-02 18:47 
GeneralRe: Speeding Up Display Time in CEditView :: MFC Pin
valikac22-Apr-02 19:13
valikac22-Apr-02 19:13 
Thanks.

You made a very good point. First off, I made a change to the display algorithm. This new algorithm concatenate all lines into one string and then display one string only.

New algorithm:

-----
currentData = pDoc->GetOneLine(pos++);
rE.SetWindowText(currentData);

if (pDoc->GetLineCount() > 1)
{
newData.Format("%s\r\n%s", static_cast<lpctstr>(currentData), pDoc->GetOneLine(pos++));

for (size_t i = 2; i < pDoc->GetLineCount(); ++i)
{
newData += "\r\n";
newData += pDoc->GetOneLine(pos++);
}

rE.SetWindowText(static_cast<lpctstr>(newData));
}
-----

Okay. The reason I chose a linked list was because the program needs to remove one or more nodes at any section of the list. Vector does not have the feature of direct insertion and removal anywhere in the data structure. I have not consider a map. I will definitely consider it now that you have brought it up.

Kuphryn
GeneralCFormView resizing Pin
22-Apr-02 13:58
suss22-Apr-02 13:58 
GeneralRe: CFormView resizing Pin
Roger Allen22-Apr-02 21:51
Roger Allen22-Apr-02 21:51 
GeneralRe: CFormView resizing Pin
ErrN023-Apr-02 1:12
ErrN023-Apr-02 1:12 
GeneralGet an HICON from a running process Pin
22-Apr-02 13:33
suss22-Apr-02 13:33 
GeneralRe: Get an HICON from a running process Pin
Paul M Watt22-Apr-02 13:48
mentorPaul M Watt22-Apr-02 13:48 
GeneralRe: Get an HICON from a running process Pin
22-Apr-02 16:35
suss22-Apr-02 16:35 
GeneralHigh-speed screen captures Pin
twomagiclovers22-Apr-02 12:37
twomagiclovers22-Apr-02 12:37 
GeneralRe: High-speed screen captures Pin
Christian Graus22-Apr-02 12:41
protectorChristian Graus22-Apr-02 12:41 
GeneralRe: High-speed screen captures Pin
Paul M Watt22-Apr-02 14:00
mentorPaul M Watt22-Apr-02 14:00 
QuestionClass Function? Pin
Loli1022-Apr-02 10:24
Loli1022-Apr-02 10:24 
AnswerRe: Class Function? Pin
Chris Losinger22-Apr-02 10:37
professionalChris Losinger22-Apr-02 10:37 
AnswerRe: Class Function? Pin
Ravi Bhavnani22-Apr-02 11:09
professionalRavi Bhavnani22-Apr-02 11:09 
GeneralRe: Class Function? Pin
24-Apr-02 11:04
suss24-Apr-02 11:04 
GeneralFindFirstFile() Pin
hph22-Apr-02 10:12
hph22-Apr-02 10:12 
GeneralRe: FindFirstFile() Pin
23-Apr-02 0:10
suss23-Apr-02 0:10 
QuestionVC6 and VS.NET installed on the same computer? Pin
Rickard Andersson2022-Apr-02 9:48
Rickard Andersson2022-Apr-02 9:48 
AnswerRe: VC6 and VS.NET installed on the same computer? Pin
Tim Smith22-Apr-02 9:55
Tim Smith22-Apr-02 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.