WNDPROC(value) is a C++ replacement: "functional style" for the c-cast (WNDPROC)value. Convenient, but you don't know that it is basically a cast. Nim uses casts explicitly. Not so convenient, but an explicit cast remembers you always that you have to know what you are doing.
By the way, what is the simplest way to import the windows GUI into Nim?