Check out the following link:
theForger's Win32 API Tutorial

As for disabling the Editbox, look at the documentation for EnableWindow (can be used to enable disable windows).