I have created an edit box using the following code :
txtrcv = CreateWindow(TEXT("edit"),
TEXT("Messages for you will be displayed here."),
WS_VISIBLE |WS_CHILD,
50,50,400,200,
hwnd, (HMENU) 3,NULL,NULL);
Now I want to disable the edit box and make it immutable. . . .. .
I used ES_READONLY option while creating the window ... and the problem is solved. . .
txtrcv = CreateWindow(TEXT("edit"), TEXT("Messages for you will be displayed here."),
WS_VISIBLE |WS_CHILD | ES_MULTILINE | ES_READONLY,
50,50,400,200,
hwnd, (HMENU) 3,NULL,NULL);