adding a Settingspage

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
JCvK
Posts: 2
Joined: 2004-01-19 13:53

adding a Settingspage

Post by JCvK » 2004-01-19 14:10

HI,
I want to add a page in the settings menu. I did following:
-Added MySettingPage.cpp/.h which looks like the AdvancedPage.cpp/.h
-Added pages[7] = new MySettingPage(s); in PropertiesDlg.cpp and
included MySettingPage.h
- numpages in PropertiesDlg.h increased.

It compiles and builds fine, but no new Item appears on the Settings Page?

What i have forgotten?

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2004-01-19 14:12

This is just a wild guess but can the resourcefiles for the DCPlusPlus project have anything to do with it?

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2004-01-19 14:18

Looks like DCPlusPlus-rc has something to do with it. In resorce view, expand DCPlusPlus -> DCPlusPlus.rc -> Dialog ( Or double click on DCPlusPlus.rc in solution view and then expand Dialog )

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2004-01-19 15:04

But don't seems to help, must be some code somewhere else hich displays it and I've no idea about which :?

JCvK
Posts: 2
Joined: 2004-01-19 13:53

Post by JCvK » 2004-01-19 15:30

It was the DCplusplus.rc
There were no entry of my new dialog.
I added it by hand.
Now it works.

thanks for help.

Locked