Component Gallery functionality
Ian Brown -- Ian.Brown@ait.co.uk
Wednesday, August 07, 1996
Environment: VC++4.1 under Win95 and WinNT.
Hi everyone.
I am writing a collection of goodies at the moment to plonk into
Component Gallery (as Dialog classes files and OLE Controls,
exported to OGX files).
My two problems are these, and I have already looked long and hard for
some answers (Books On-Line, MSDN, FAQ, Revolutionary Guides...).
1) Pressing the '?' button on Component Gallery pops up help for the
component selected. How do I achieve this for my components?
I have tried every combination of things I can think of, but to no
avail. Mike B's excellent Revolutionary Guide to MFC does suggest
that the component's own OnHelp function is called, but that would
a) only work for OCX's as Dialog class OGXs are not 'built'
b) doesn't seem to work even for OCXs -unless I missed something.
When you export a component to an OGX, a listbox details the .cpp, .h
and .rc files involved. I can imagine that I need to be able to add a
.hlp file to that list. But how?
2) Some components not only add new .cpp files to a project (eg Splash
Screen), they also insert lines of code into existing files.
How? and how can I do this with my components?
Thanks (in advance) for any help offered.
Ian
Thomas Drolshagen -- drolshagen@deos.ch
Monday, August 12, 1996
Hi Ian
For creating components who insert their code in special files you have
to use the
"Component Builder Toolkit". This toolkit is available from microsoft,
but only for special
companies. You can subscribe for this toolkit by sending mail to:
vcisv@microsoft.com.
(By the way what kind of components do you develop ?)
HTH
Thomas Drolshagen
>----------
>From: Ian Brown[SMTP:Ian.Brown@ait.co.uk]
>Sent: Mittwoch, 7. August 1996 08:44
>To: mfc-l@netcom.com
>Subject: Component Gallery functionality
>
>
>
> Environment: VC++4.1 under Win95 and WinNT.
>
> Hi everyone.
>
> I am writing a collection of goodies at the moment to plonk into
> Component Gallery (as Dialog classes files and OLE Controls,
> exported to OGX files).
>
> My two problems are these, and I have already looked long and hard
>for
> some answers (Books On-Line, MSDN, FAQ, Revolutionary Guides...).
>
>
> 1) Pressing the '?' button on Component Gallery pops up help for
>the
> component selected. How do I achieve this for my components?
>
> I have tried every combination of things I can think of, but to no
> avail. Mike B's excellent Revolutionary Guide to MFC does suggest
> that the component's own OnHelp function is called, but that would
> a) only work for OCX's as Dialog class OGXs are not 'built'
> b) doesn't seem to work even for OCXs -unless I missed
>something.
>
> When you export a component to an OGX, a listbox details the .cpp,
>.h
> and .rc files involved. I can imagine that I need to be able to add
>a
> .hlp file to that list. But how?
>
>
> 2) Some components not only add new .cpp files to a project (eg
>Splash
> Screen), they also insert lines of code into existing files.
>
> How? and how can I do this with my components?
>
>
> Thanks (in advance) for any help offered.
>
> Ian
>
| Вернуться в корень Архива
|