Hello,
I want to make a help control in ArchiCAD which displays HTML files. I currently have an app which uses the microsoft web browers object and my goal is to put it onto a modeless palette in ArchiCAD.
I have added an entry into my grc file:
'GDLG' 32422 Palette | TopCaption | NoClose 0 0 140 650 "Help" {
UserControl 0 0 140 650 512
}
In my initialise funciton I register a window class with
memset(&wClass, 0, sizeof(WNDCLASS));
wClass.lpszClassName = "CDEF512"
wClass.hInstance = ACAPI_GetExtensionInstance();
wClass.lpfnWndProc = &HelpFileWindowProc;
RegisterClass(&wClass);
At the moment my HelpFileWindowProc just returns 1. So I don't expect this control to do anything just yet but the palette its on should still load.
My problem is that the dialog never gets initialised.
ie. DGModelessInit returns 0
As soon as I remove the usercontrol from the form it works fine.
Any help would be apreciated.
Thanks,
Adam