You can change properties via SendMessage (as Jim mentioned) or by SendWindowLong. If it's an external window, then using SendMessage would be a better approach. If you're dealing with internal windows, then use SetWindowLong.

Of course, there are some things that you can do with one, but you can't do with the other.