|
The arguments were definitely not valid enough to warrant the statement that this is terrible code. But yet again, anybody has the right to make this statement, but others such as myself also have the right to respond in defense of this submission. I just don't want other readers of this submission to think that this submission does not have any value when it clearly does.
|
|
|
|
|
Damn, at least when I argue with Chris we are civil with each other.
Mostly
This is totally out of line.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
who the hell are you calling "civil" ???
i demand an apology.
-c
Smaller Animals Software, Inc.
You're the icing - on the cake - on the table - at my wake. Modest Mouse
|
|
|
|
|
Ok,
I am sorry you were wrong.
(Just kidding)
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Guys
It was an anonymous post.
I doubt whether it was the real Bill Sergio.
Nish
It's seven o'clock
On the dot
I'm in my drop top
Cruisin' the streets - Oh yeah
I got a real pretty, pretty little thing that's waiting for me
|
|
|
|
|
I know. At this point, I am just joking around with Chris.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Nish [BusterBoy] wrote:
On the dot
I'm in my drop top
Cruisin' the streets - Oh yeah
I got a real pretty, pretty little thing that's waiting for me
So who is responisbile for this poetic masterpiece ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
|
|
|
|
|
I personally have used this class within a production application with some changes, but this in my opinion was a good idea/design and the code has very few problems.
I think the Author did an excellent job!
|
|
|
|
|
Bill Leibold wrote:
I personally have used this class within a production application with some changes
IMHO the "some changes" statement is the key here. Almost all the samples found here on CP have to be changed somehow to work in any specific application. Some of the changes will be minor, some will be major, but the idea behind CP (and other sites like it) is to provide sample "how to" code, not to be a repository of ready to use controls and classes that can be dropped into your apps. If you want drop in code, go to a vendor and buy it.
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
It may be that your sole purpose in life is simply to serve as a warning to others.
|
|
|
|
|
Agree 100%!
PJ Arends wrote:
If you want drop in code, go to a vendor and buy it.
Based on experience, I would never buy any production code unless it is part of a frameworks delivered with the development environment I am using such as MSDEV.
Best Regards,
|
|
|
|
|
can anyone help me to dynamically add a tree node on execute time and loading the related dialog page at the same time?
|
|
|
|
|
you'll have to add a function that clears the tree and m_dlgMap, then executes a loop like the one in OnInitDialog (fill the tree and build the map).
-c
Smaller Animals Software, Inc.
You're the icing - on the cake - on the table - at my wake. Modest Mouse
|
|
|
|
|
Use CTreeCtrl::InsertItem
Regards....
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
I tried this... And seems to work
Just modify the AddPage member function :
#if ( !ALLOW_ADDPAGE_AT_RUNTIME )
if (m_hWnd)
{
// can't add once the window has been created
ASSERT(0);
return false;
}
#endif
dlg.m_pMainDlg = this;
pageStruct *pPS = new pageStruct;
pPS->pDlg = &dlg;
pPS->id = dlg.GetID();
pPS->csCaption = pCaption;
pPS->pDlgParent = pDlgParent;
m_pages.Add(pPS);
#if ( ALLOW_ADDPAGE_AT_RUNTIME )
if (m_hWnd)
{
TV_INSERTSTRUCT tvi;
// find this node's parent...
tvi.hParent = FindHTREEItemForDlg(pPS->pDlgParent);
tvi.hInsertAfter = TVI_LAST;
tvi.item.cchTextMax = 0;
tvi.item.pszText = LPSTR_TEXTCALLBACK;
tvi.item.lParam = (long)pPS;
tvi.item.mask = TVIF_PARAM | TVIF_TEXT;
HTREEITEM hTree = m_pageTree.InsertItem(&tvi);
// keep track of the dlg's we've added (for parent selection)
if (hTree)
{
DWORD dwTree = (DWORD)hTree;
m_dlgMap.SetAt(pPS->pDlg, dwTree);
}
m_pageTree.Invalidate();
}
#endif
return true;
|
|
|
|
|
I have de same problem.
With any solution posted here I need access to CSAPreferDialog, and I don't know how.
Can anyone post or send me some code example.
Thanks in advance.
Amauta.
|
|
|
|
|
Hi,
Im new to vc++ but would like to use saprefs in one of my apps.. How do i bring in the microsofts font dialog and add it as a dialog in saprefs ?? can any one please help me out ?
|
|
|
|
|
Is there a problem with using this as a modeless dialog?
I can create a model dialog with pages, which works great.
But if I Create a modeless dialog it does not work i.e.
If I Create only the CSAPrefsDialog without adding a page (AddPage(...), it works, but as soon as I add a page it crashes.
The first call to ShowPage from OnInitDialog() works correctly, but after the first call to PostMessage(WM_CHANGE_PAGE...) from OnSelchangedPageTree, ShowPage crashes due to an invalid m_hWnd.
Any Help?
Thanks
|
|
|
|
|
Sorry... I've never tried this as a modelesss dlg. i suspect there could be problems since each sub-dlg is already a modeless dlg. unfortunately, i'm not familiar enough with the guts of dlg message handling to say anything more.
-c
Smaller Animals Software, Inc.
|
|
|
|
|
Excellent GUI control!
I want to add 20 yes/no questions, one question per page.
It would be wonderful if the nodes in the tree view can display both the page title and the current answer for the page's question, something like:
- 20 Questions
Question 1: /YES/
Question 2: /NO/
Question 3: /YES/
.....
Would you know of any easy way for me to modify the code to accomplish this?
Thanks for all pointers!
Philip Chang
|
|
|
|
|
I've completed this. I would be willing to share the code if interested.
Thanks,
Philip Chang
|
|
|
|
|
Hi,
In one of my apps,the CSAPrefsSubDlg Derived dialog is a tabbed control, containing three more dialogs as child inside it.
Now the values inside this dialog are not retrieved on OnOK.
While debugging I found that the window handle of these dialogs becomes NULL and hence the OnOK or UpdateData is not being called. can you suggest me on how to go about this issue.
Cheers
Kannan
|
|
|
|
|
I had written a dialog based application using this control.It works great.
Now i'm working on an application which is implemented as a Prop. Sheet based Wizard. Is it possible to make this control as one of the pages of the wizard.
Thanks
Cheers
Kannan
|
|
|
|
|
yes, it should be possible. but, you'll have to try it to be sure.
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
I just finished integrating it into my application (and removing the old property sheet and pages). I had no problems at all, and on the whole it took about 5 minutes. Good job making it simple and easy to use!
|
|
|
|
|
nice work man ... looks quite impressive
|
|
|
|