Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.
Moderator: Moderators
-
andlommy
- Posts: 1
- Joined: 2003-07-12 09:01
- Location: Riga, Latvia, Middle Of Nowhere
Post
by andlommy » 2003-07-12 09:05
i've downloaded DC, compiled it (that was another story about how i did that), and now i want to add another page to the settings menu.
I've created form....now the question is, what should i do to make this page appear on the settings menu as a separate tab.
10x in advanca

-
sarf
- Posts: 382
- Joined: 2003-01-24 10:43
- Location: Sweden
Post
by sarf » 2003-07-12 12:22
First of all, add a pair of files like AdvancedPage.h and AdvancedPage.cpp (copy them) then replace the IDD_ADVANCEDPAGE with whatever your form is called, and change it to fit that form.
Add your NewPropertiesPage (or whatever) to PropertiesDlg.h (by increasing numPages) and then add it to PropertiesDlg.cpp (pages[x] = new NewPropertiesPage(s) et cetera).
Good luck!
For further reference, download the latest DC++k source code from my homepage and check out how I added DCPPkDetectorPage.h and other pages.
Sarf
---
It's an IBM, it's got an excuse.
Users browsing this forum: Google [Bot] and 0 guests