Hi all,
I have a problem using Custom control class inside a DLL Extension.
My Custom control use Class property to specify the register class name
for the control.
Both Dialog Class and Custom control class are inside the dll.
When i run the application i can't view the dialog and Vc++ display an
error on ShowWindow procedure.
If I use the class control and dilog outside the dll all go well but NOT
inside the dll.
I think that the problem is on registering control class that register
it on executable proc and not on the dll one.
Any idea?
Here is my resgister control class procedure.
WNDCLASS wndcls;
HINSTANCE hInst = AfxGetInstanceH andle();
if (!(::GetClassIn fo(hInst, BUTTONSBOX_CLAS SNAME, &wndcls)))
{
// otherwise we need to register a new class
wndcls.style = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
wndcls.lpfnWndP roc = ::DefWindowProc ;
wndcls.cbClsExt ra = wndcls.cbWndExt ra = 0;
wndcls.hInstanc e = hInst;
wndcls.hIcon = NULL;
wndcls.hCursor =
AfxGetApp()->LoadStandardCu rsor(IDC_ARROW) ;
wndcls.hbrBackg round = (HBRUSH) (COLOR_3DFACE + 1);
wndcls.lpszMenu Name = NULL;
wndcls.lpszClas sName = BUTTONSBOX_CLAS SNAME;
if (!AfxRegisterCl ass(&wndcls))
{
AfxThrowResourc eException();
return false;
}
}
I hope that someone can help me.
Thanks in advice
--
Caronte
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG