londonDevil
Programmer
i've been working on a program using API and now am 'TRYING' to develop a feature which would:
clear out TWO windows on selecting 'Stats'.
This is part of the code from the case statement when 'Stats' is selected:
......
case IDM_Stats:
SendMessage(hWndBig, EM_SETSEL,0,MAKELONG(0, -1));
SendMessage(hWndBig, WM_CLEAR, 0, 0L);
SendMessage(hWndSmall, EM_SETSEL,0,MAKELONG(0, -1));
SendMessage(hWndSmall, WM_CLEAR, 0, 0L);
......
Currently this isn't clearing ANY data that I enter in the two windows. I REALLY hope one of you c++ experts can help me out. Thanx!
clear out TWO windows on selecting 'Stats'.
This is part of the code from the case statement when 'Stats' is selected:
......
case IDM_Stats:
SendMessage(hWndBig, EM_SETSEL,0,MAKELONG(0, -1));
SendMessage(hWndBig, WM_CLEAR, 0, 0L);
SendMessage(hWndSmall, EM_SETSEL,0,MAKELONG(0, -1));
SendMessage(hWndSmall, WM_CLEAR, 0, 0L);
......
Currently this isn't clearing ANY data that I enter in the two windows. I REALLY hope one of you c++ experts can help me out. Thanx!