Pelles C forum

C language => Windows questions => Topic started by: czerny on September 09, 2014, 05:01:07 PM

Title: DLGINIT
Post by: czerny on September 09, 2014, 05:01:07 PM
PORC seems not to know the resource typ DLGINIT.
Can someone say anything about this resource typ?
How can it be simulated with user defined resource?
Title: Re: DLGINIT
Post by: frankie on September 09, 2014, 05:59:46 PM
DLGINIT is a pseudoresource used for initialization of ActiveX controls with MFC and ATL in C++ (or other object oriented languages).
It is handled dynamically in the MFC high level dialog classes. For a description see here (http://support.microsoft.com/kb/231591/en-us).
A definition of the DLGINIT structure can be found in 'atlhost.h' (http://math.nemcc.edu/courses/cp2/cpp/include/atl/atlhost.h).
I don't understood which use you want do in C, but it should be possible to create a fake DLGINIT using a custom resource and the layout and values showed in atlhost.h