Do any one know how to delete or replace text that is in a Static Box.

I tried to use SetWindowText but it only add the text to the beginning of the old text....The Old Text is Still There.

Any ideas

Thanks
Posted on 2002-01-28 19:34:43 by cmax
Try:
SendMessage(
(HWND) hWnd, // handle to destination window
WM_SETTEXT, // message to send
(WPARAM) wParam, // not used; must be zero
(LPARAM) lParam // window-text string (LPCTSTR)
);

I believe ?
B
Posted on 2002-01-28 20:15:18 by BradB



invoke SendMessage, hwndEdit, EM_GETMODIFY, NULL, NULL

Posted on 2002-01-28 20:18:53 by CodeLover
So it's can take an lot of Edit Type Commands....I think i get the picture Now...
Posted on 2002-01-28 20:29:50 by cmax