mfc >> Adding Property pages from Dll?

by Simon » Tue, 01 Feb 2005 21:00:01 GMT

Hi,

I want to create an app that allows the user to add property pages to my
dialog box.
I will off course have a basic property sheet but how can I add a page
via a dll?

Would COM be what I need? I recall something like that on codeproject
but I cannot find it.

Any hint? Many thanks

Simon.


mfc >> Adding Property pages from Dll?

by David W. Simmonds » Wed, 02 Feb 2005 06:43:53 GMT


I had this same requirement. I have a control panel applet that has a set of
property pages. The applet will also look for components with certain
extensions, LoadLibrary the module, and make a call into that dll via
GetProcAddress mechanisms. One of the things returned is a pointer to a
CPropertySheet based object. I then add this to the CPropertySheet object
within the control panel applet. The only way I could properly get this to
work was to make the components an MFC Extension dll.








mfc >> Adding Property pages from Dll?

by Mercury » Wed, 02 Feb 2005 17:49:42 GMT

I haven't done that yet but plan to. My approach was going to be for a dll
to expose a set of predefined API's starting with EG
GetExportedDialogsCount() int;
then have a factory function in the dll that will make a modeless child
dialog on a property page with the appropriate WS styles.
API's would be needed to get the default page captions etc.







Similar Threads

1. How to create a property page from a property page

Hello,

I am trying to create a property page using ATL. I understand that the
dialog created by the ATL property page will have "OK", "Cancel" and
"Apply" button automatically. In my design, in this dialog, after
click a certain button, another property page will popup. My question
is, how to add the other property page into the first property page in
my project. In VC 7.0, when I couldn't add a class to my existing
project by selecting ATL property page.

Your help are appreciated!
Chen

2. error after adding a property page

3. adding propery pages to property sheet of app

Hi,

I have a mfc application. I also have some ATL com component( in proc
server) as the applications plugins. My application need to show
properties of the plugins. I'm thinking of having the main application
construct property sheet and let plugin contruct its page and add to
the property sheet, then the application can display it. Can anyone
tell me how to do this? Or am I on the right track? Any idea is
welcome. Thanks.

Sue

4. How to add property page?

5. Adding Help to ATL dialogs or property pages

Hi, there.  The only documentation I found on adding help to ATL is the one
where your have to add some starter files copied from an MFC project.  Is
that really the only way?

Also, it seems like with ATL, you can only use WinHelp and not HTML Help.
Has anyone successfully incorporated the latter into their ATL project?  Not
that I prefer HTML Help.  I'm actually still weighing the two.  If you also
have opinions on which one I should use, please throw them in as well.

I would really appreciate all inputs.
Ever


6. Adding property pages programatically?

7. Adding pages to property sheet in an activex

Hi,
i'm developing an activex control with some custom properties.I would like 
to add some pages to the IDD_PROPPAGE_CONTROLNAME form from which i can set 
the values,instead of enlarging the existing one.How can i do that? 


8. Adding a page to Mouse Property in Control Panel