Hey all,

I am simply trying to superclass the standard edit box
for use in some dialogs i have, but my WNDCLASSEX
won't register. The code below is the first thing in my
WinMain function:

WNDCLASSEX wc,we;
g_hInstance = hInstance;

// Get all the information about the original window class
GetClassInfoEx(NULL, "EDIT", &we)

// store old proc
oldEditProc = we.lpfnWndProc;

// create new class name
we.lpszClassName = "newEdit";

// set module (hInstance comes from winMain args)
we.hInstance = hInstance;

// set new proc
we.lpfnWndProc = SuperEditProc;

// Register our new window class.
if(!RegisterClassEx(&we)){
MessageBox(NULL,"Cannot register super",NULL,NULL);
}

Now I have checked and the getclassinfo function works,
my app just spits out Cannot register super. Does anyone
with experience with superclassing know what I am missing
or have done wrong? Oh and yes the SuperEditProc does exist.

Any help would be mad, thanks.

Scathen