Hi all. I'm trying to use SetWindowText to output text onto a read only edit box. I've gotten it to work except for it won't display (or change) it on the screen until the user clicks on the box. In a Win32 help file I have it says SetWindowText cause a WM_SETTEXT message to be sent. My main question is what code should I have under the WM_SETTEXT case?

Code:
             if (codition1 > codition2)
                SetWindowText(hwndResult, TEXT("TEXT1"));
             if ( codition2 > codition1)
                SetWindowText(hwndResult, TEXT("TEXT2"));
             if (codition1== codition2)
                SetWindowText(hwndResult, TEXT("TEXT3"));
Thanks