displays the line numbers

  • Thread starter Thread starter raouia
  • Start date Start date
R

raouia

Guest
Hello
I would like to display a text in a notpad window, I used the SendMessage function and it worked but now I would like to display the line number in front of each line displayed I tried with sendmessage but it did not work any ideas please?


to display the text:

int nCharsR = SendMessage(hWnd2, WM_SETTEXT, 10000, (LPARAM)output); // it's work

to diplay the ligne number:

/*...*/

int ligneOUt = 1

if (c == "\n")
{
ligneOUt = ligneOUt + 1;
int nCharL = SendMessage(hWnd2, WM_SETTEXT, 10, (LPARAM)ligneOUt); // doesn't work always ncharL had a zero


}

Continue reading...
 
Back
Top