Click here to Skip to main content
15,923,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GDI+ randomly select point on a drawn circle Pin
Chris Losinger26-Aug-05 15:53
professionalChris Losinger26-Aug-05 15:53 
AnswerRe: GDI+ randomly select point on a drawn circle Pin
Bob Flynn27-Aug-05 5:58
Bob Flynn27-Aug-05 5:58 
GeneralRe: GDI+ randomly select point on a drawn circle Pin
mpastchenko29-Aug-05 7:50
mpastchenko29-Aug-05 7:50 
QuestionCEdit Pin
LeeeNN26-Aug-05 14:18
LeeeNN26-Aug-05 14:18 
AnswerRe: CEdit Pin
Ann6626-Aug-05 14:28
sussAnn6626-Aug-05 14:28 
GeneralRe: CEdit Pin
Anonymous26-Aug-05 17:20
Anonymous26-Aug-05 17:20 
GeneralRe: CEdit Pin
David Crow28-Aug-05 4:52
David Crow28-Aug-05 4:52 
AnswerRe: CEdit Pin
Mr. Accident26-Aug-05 14:40
Mr. Accident26-Aug-05 14:40 
One fairly simple way to achieve this effect would be to insert a newline every 16 characters before you set the text to the control. Something like this:

void CSomeDialog::SetEditText(char* text)
{
   CString str(text);
   for(int i = 16; i < str.GetLength(); i+=16)
   {
      str.Insert(i, "\r\n");  // Both carriage return and newline are necessary for edit control
      i+=2;
   }

   m_edit.SetWindowText(str);
}



[Insert witty and relevant signature here]
GeneralRe: CEdit Pin
Anonymous26-Aug-05 17:21
Anonymous26-Aug-05 17:21 
GeneralRe: CEdit Pin
Gavin Taylor27-Aug-05 0:08
professionalGavin Taylor27-Aug-05 0:08 
GeneralRe: CEdit Pin
Anonymous26-Aug-05 21:06
Anonymous26-Aug-05 21:06 
GeneralRe: CEdit Pin
Anonymous27-Aug-05 19:17
Anonymous27-Aug-05 19:17 
QuestionCapture text from a window Pin
rivdsl26-Aug-05 14:06
rivdsl26-Aug-05 14:06 
Questiondelay Pin
cell5126-Aug-05 13:21
cell5126-Aug-05 13:21 
AnswerRe: delay Pin
Mr. Accident26-Aug-05 13:39
Mr. Accident26-Aug-05 13:39 
AnswerRe: delay Pin
Ann6626-Aug-05 14:25
sussAnn6626-Aug-05 14:25 
AnswerRe: delay Pin
ThatsAlok28-Aug-05 18:13
ThatsAlok28-Aug-05 18:13 
QuestionConstructor doesn't get called? Pin
hyling26-Aug-05 12:36
hyling26-Aug-05 12:36 
AnswerRe: Constructor doesn't get called? Pin
Joaquín M López Muñoz26-Aug-05 13:57
Joaquín M López Muñoz26-Aug-05 13:57 
GeneralRe: Constructor doesn't get called? Pin
Tim Smith27-Aug-05 10:55
Tim Smith27-Aug-05 10:55 
AnswerRe: Constructor doesn't get called? Pin
Jose Lamas Rios26-Aug-05 16:28
Jose Lamas Rios26-Aug-05 16:28 
QuestionQuestion regarding debug information and &quot;Step-Into&quot; code Pin
Mr. Accident26-Aug-05 12:30
Mr. Accident26-Aug-05 12:30 
AnswerRe: Question regarding debug information and &quot;Step-Into&quot; code Pin
Jose Lamas Rios26-Aug-05 16:49
Jose Lamas Rios26-Aug-05 16:49 
GeneralRe: Question regarding debug information and &quot;Step-Into&quot; code Pin
Mr. Accident26-Aug-05 18:14
Mr. Accident26-Aug-05 18:14 
GeneralRe: Question regarding debug information and &quot;Step-Into&quot; code Pin
Jose Lamas Rios27-Aug-05 18:15
Jose Lamas Rios27-Aug-05 18:15 

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.