Creating a window without a nib

macrumors regular

i like breaking all the rules - is there a way to just create a window 'from scratch' with no nib to serve as a template?

CreateWindowFromNib has it's uses in some instances for me - but since this is for a win32 port and there are times where it'd be more convenient to do it 'from scratch'. plus, it would just be nice to know how - especially if such a method were able to be used for other objects like buttons, text boxes, etc..

(note: carbon is my weapon of choice - despite the fine folk that suggested otherwise), so if you've got a related example, that would be nice - but I'll take anything ya got!

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.