Free Plugin & Code for handling windows in C4D

On 06/10/2013 at 16:27, xxxxxxxx wrote:

Hi C++ developers.
A very common question we get here is "How do I close a window in C4D".
And we've been told that the SDK can't do that. And that it has to done through the OS.
So I took a little trip into Windows OS programming this past week. And I've figured out how to close, min., move, and scale specific windows inside of C4D with it.

This was my first attempt at Windows OS programming. So it took me a good amount of searching to figure this all out.
So I'm posting this plugin example with the source code to help other C4D developers learn it a bit easier and faster than the way I did it.

The plugin is for Windows users only.
Please, please, please read the manual before using it. It's only two pages long with large type.
And please do not share this with non-developers. Since this is basically a complete hack job to force the windows to do your bidding in C4D. And not something that MAXON supports.
It's only meant to be used as a learning example for developers to play around with and learn from.
It's probably not a good idea to do this type of thing your commercial projects.

The plugin is called "Window Manipulator".
And it can be downloaded from here: