How to create objects using APIs?

BlitzPlus Forums/BlitzPlus Programming/How to create objects using APIs?

The Code Archives are where you get the commands from, but I'm asking for help on using them, which those pages don't have. Tried the MSDN and it wasn't exactly helpful... When I try to use CreateWindowEx to create the gadgets, it doesn't work.
Maybe if you could give me some code that would create a working gadget with an API command, I could probably go from there.