Sounds like an interesting project. I'm not sure if you are aware of (you probably are), but you can have a look at the way WTL is structured. It is a very lightweight wrapper for some windows. Of course it's only part of the story though.
But I don't see why "pWindow = new window("EDIT")" is not C++ or not OO ?
I mean that window is actually a class that you define along the lines of :
Code:class window
{
public:
window()
{
// Default constructor doesn't subclass
}
window(char *pSuperClass)
{
// Create the window using the the specified window superclass
}
char *m_pSuperClassWindow;
};
