Author Topic: Part #2 - C programmers.. need assistance.  (Read 9225 times)

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Part #2 - C programmers.. need assistance.
« on: April 06, 2007, 09:53:05 PM »
OK.. I'm now onto part 2 of the project. Part 1 was completed and although I passed, I did not want the grade for which I received, I could have done better!

Now onto part 2.. and then part 3 will be the final part.

so quadz.. here I am again asking for some help :)

Part 2 requires me to take the same program I posted from my original thread and add the following.

Code: [Select]
I am to add a CONTENT VIEWER to the Recycle bin of the application.
It is a preview feature for the messages stored in the recycle bin that are to be restored.
I am to add another frame to display the actual content of a note when the user clicks on the note from the list
of the messages to be restored."

I'm sure I'll be working within the ReycleBin.cpp file, but I'm not all too familiar with content viewers.

Any assistance/help would be appreciated.. as I try and figure it for myself.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #1 on: April 08, 2007, 06:40:51 PM »
quick question.. I'm now using VS 2003, however I still cannot get the program to run. I build it successfully, but how do you actually view the program with whatever changes you have made (i.e. how do u create a .exe of it)?

Anyone know.. quadz?  8)
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #2 on: April 08, 2007, 08:01:47 PM »
Well, typically, after you build it, choose "Start" on the Debug menu.  That will run the .exe under the debugger.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #3 on: April 08, 2007, 08:49:36 PM »
thanx.. now to pull an all nighter "trying" to code..  :erhmmm:
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #4 on: April 08, 2007, 11:51:22 PM »
quadz.. do you know of a special MFC I am suppose to add for the content viewer?
I've looked around with no luck. Right now I'm only working within the DlgRecycleBin.cpp file.

under this.. I assume I am to add another frame to display the actual content of a note that is to be restored.
Code: [Select]
BOOL CDlgRecycleBin::OnInitDialog()
{
CDialog::OnInitDialog();

// Language stuff
((CStatic *) GetDlgItem (IDC_STATIC1))->SetWindowText (CTranslate::ReadString (146, _T("Title")));
((CButton *) GetDlgItem (IDC_DELETE))->SetWindowText (CTranslate::ReadString (147, _T("Delete")));
((CButton *) GetDlgItem (IDC_RESTORE))->SetWindowText (CTranslate::ReadString (148, _T("Restore")));
((CButton *) GetDlgItem (IDOK))->SetWindowText (CTranslate::ReadString (149, _T("Close")));

SetWindowText (CTranslate::ReadString (150, _T("Recycle bin")));

I guess I am to add another function such as "Content" or whatever.. where the note is to be previewed. But I am lost as to this content viewer and if it's actually just an MFC. I am looking through http://www.codersource.net/codersource_mfc_prog.html but there is so much to cover and I have so little time, I was wondering if you knew what MFC I needed.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #5 on: April 09, 2007, 12:37:26 AM »
BTW, "MFC" refers to the whole Microsoft Foundation Class Library.  I think I understand what you mean when you say "do you know of a special MFC I am supposed to add", but it doesn't really make sense to talk about "an MFC."

It sounds like you are hoping to find some specific MFC control called a "content viewer."  I'm not an MFC expert but I know the basics.  I'm not aware of a specific control that's actually called a content viewer.  I would suppose, "I am to add a CONTENT VIEWER to the Recycle bin of the application." means that you are supposed to pick whatever MFC control you think would be most appropriate to display the content in question.

Take a look at the Controls available on this MFC Hierarchy Chart:
http://msdn2.microsoft.com/en-us/library/ws8s10w4(VS.71).aspx

For what you're doing, it sounds like the CListCtrl control might be appropriate:
http://msdn2.microsoft.com/en-us/library/hfshke78(VS.71).aspx


Regards,

quadz
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #6 on: April 09, 2007, 10:29:16 AM »
Alright.. I've been reading through the msdn library trying to understand CListCtrl, but I keep getting more confused as to how I am supposed to display a preview feature of a message that is to be restored.

I was wondering, is there just a way to modify the
Code: [Select]
CDialog::OnInitDialog(); so that when you hover your mouse over a deleted message it will display a popup window showing what the message is that is to be restored?
Any ideas?

I'm also adding a new GetDlgItem for the frame I'm to create, but getting unidentifier errors.. I'll keep working on that part some more.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #7 on: April 09, 2007, 11:35:37 AM »
Hmmm...

Oh, I guess I misunderstood.  I thought you had to do two things: a) show a list of messages in the recycle bin; and b) add a preview frame to show the contents of a message to be deleted.  But I guess a) is already taken care of.

Well, you might possibly be able to finagle CToolTipCtrl to pop up when you hover:
http://msdn2.microsoft.com/en-us/library/6b4cb3a5(VS.71).aspx

It claims it only shows one line, but I don't know if that's strictly true or not.  (Maybe you can make it show multiple lines, I dunno.)

Otherwise I'd prolly just do what your assignment says and create another frame to display the note content.

Regards,

quadz
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #8 on: April 09, 2007, 12:43:43 PM »
OK.. now I have an understanding of what the program is suppose to do.

When you hit the [X] on the program.. it puts the note in the recycle bin. When you open up the recycle bin, the main window displays the messages that are set to be deleted. At this point you can either 'Delete' 'Restore' or 'Close' the message.

What I am to do is.. select a note in the main window. Then there should be another frame which says "Preview". This frame will display what that note is.

I was mistaken.. it is not a tooltip I am to incorporate.

Now I'm trying to create another frame.. but I am getting unidentifier errors.

Here I am editing the DlgRecycleBin.cpp file.. I have posted the original code.. and then my modified code below.

Original
Code: [Select]
BEGIN_MESSAGE_MAP(CDlgRecycleBin, CDialog)
//{{AFX_MSG_MAP(CDlgRecycleBin)
ON_BN_CLICKED(IDC_DELETE, OnDelete)
ON_BN_CLICKED(IDC_RESTORE, OnRestore)
ON_LBN_DBLCLK(IDC_TITLES, OnDblclkTitles)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

Modified code
Code: [Select]
BEGIN_MESSAGE_MAP(CDlgRecycleBin, CDialog)
//{{AFX_MSG_MAP(CDlgRecycleBin)
ON_BN_CLICKED(IDC_DELETE, OnDelete)
ON_BN_CLICKED(IDC_RESTORE, OnRestore)
        ON_BN_CLICKED(IDC_PREVIEW, OnPreview)            /// Added this line for preview
ON_LBN_DBLCLK(IDC_TITLES, OnDblclkTitles)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

Now, I am stuck as how to create a class for the OnPreview like how OnDelete, OnRestore, and OnDblclkTitles have.

I'm lost at this point...

edit:

I looked under RecycleBin.cpp and saw this
Code: [Select]
void CRecycleBin::SaveDeletedNote(void *pNote)
{
// The note will be deleted and therefore the note
// and its data will be saved in the file
// \..\A Note\deleted notes.xml

// Read all the notes that are in the file deleted notes.xml
::CoInitialize(NULL);
HRESULT hr = m_plDomDocument.CreateInstance(::CLSID_DOMDocument);
if (FAILED(hr)) {
CErrorLog::CErrorLog (ERR, "Could not initialize the xml parser");
return;
}
ParseXML ();

// Add the note that wants to be deleted
AddDeletedNote (pNote);

// Find out if we have hit the total limit -> if so delete the first one
if (_ttoi (theApp.m_szRecycleBinNumberOfNotes) != 0 && m_pNote.GetCount () > _ttoi (theApp.m_szRecycleBinNumberOfNotes))
m_pNote.RemoveHead ();

// Save the notes in the file deleted notes.xml
SaveDeletedNotes ();
}

Apparently this is where the file thats in the recycle bin is stored.. I am to retrieve this file into a Preview window within the recycle bin, but I have no clue on how to call this and display contents.
« Last Edit: April 09, 2007, 12:50:57 PM by [N]auTiCa^K][L^ »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #9 on: April 09, 2007, 02:19:05 PM »
Hmm... I'm busy today, trying to think of what I could suggest that would be useful...

Have you already used the dialog editor to add the new frame (visually) ?

One thing you can do is just see if you can get ANYTHING to display in the new preview frame.  Then worry about displaying an actual note there later.

Then you'll want to look at how it currently displays notes on the screen, and figure out from that how to display that same formatted data in your preview frame.

As far as the RecycleBin code there... Hmm.. I think you'd be better off if you can find the code where it "lists" all the notes in the recycle bin.  (It's weird to me that it's treating a note as a (void *), that seems a little sloppy unless there was a damn good reason for it.  It makes it hard to tell what a "note" really is without more context.)


Regards,

quadz
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #10 on: April 09, 2007, 08:32:15 PM »
quadz.. sorry to have picked a day when your busy, hopefully your no longer busy :)

I'm having trouble adding another frame. I have edited the following code...

Code: [Select]
BEGIN_MESSAGE_MAP(CDlgRecycleBin, CDialog)
//{{AFX_MSG_MAP(CDlgRecycleBin)
ON_BN_CLICKED(IDC_DELETE, OnDelete)
ON_BN_CLICKED(IDC_RESTORE, OnRestore)
ON_BN_CLICKED(IDC_PREVIEW, OnPreview)  /// added this
ON_LBN_DBLCLK(IDC_TITLES, OnDblclkTitles)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

I added an OnPreview.. assuming this will add another button to the RecyleBin window.

then further down in RecycleBin.cpp I edited this..

Code: [Select]
BOOL CDlgRecycleBin::OnInitDialog()
{
CDialog::OnInitDialog();

// Language stuff
((CStatic *) GetDlgItem (IDC_STATIC1))->SetWindowText (CTranslate::ReadString (146, _T("Title")));
((CButton *) GetDlgItem (IDC_DELETE))->SetWindowText (CTranslate::ReadString (147, _T("Delete")));
((CButton *) GetDlgItem (IDC_RESTORE))->SetWindowText (CTranslate::ReadString (148, _T("Restore")));
((CButton *) GetDlgItem (IDC_PREVIEW))->SetWindowText (CTranslate::ReadString (145, _T("Preview")));  /// added this
((CButton *) GetDlgItem (IDOK))->SetWindowText (CTranslate::ReadString (149, _T("Close")));

SetWindowText (CTranslate::ReadString (149, _T("Recycle bin")));

I'm assuming as long as I added this there will be another button, but I'm getting nothing.. the 'Restore' is getting replaced by 'Preview'

Any hints as to what I am doing wrong.. although I know I'm probably way off on what I'm doing?
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #11 on: April 09, 2007, 08:45:55 PM »
What you've got there looks pretty reasonable.

But, where did IDC_PREVIEW get defined?

How did you add the button?

Normally you click on the Resources...  well in the hopes that a picture will save 1000 words... :)

Normally you use the resource editor as shown below, to add buttons and other controls to dialogs.

In the Properties pane, you would set the ID of the new button to IDC_PREVIEW.

Have you already done all of that?

Regards,

quadz
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #12 on: April 09, 2007, 08:57:11 PM »
I didn't even know there was a resource window where you can edit a bitmap.. in this case the dialog box. Thanks for pointing it out to me! :)

Now I've added the button and everything.. my main concern now is adding a function to preview the notes. I am thinking that if I take the OnRestore function and edit it, I can have the Preview window display the message. Like how the OnRestore puts the message back in the little textarea box of the program, there has to be a way to redirect the message to appear in the new frame window (preview window).

Any ideas there?

lol... you better have a paypal account for all this help  :P
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

Offline console

  • Brobdingnagian Member
  • ***
  • Posts: 4518
  • "Man, this is the way to travel," said my attorney
    • View Profile
    • tastyspleen.net
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #13 on: April 09, 2007, 09:07:43 PM »
Take a look at:

void CDlgRecycleBin::CreateImportXml(CString szFile)

It looks at which items are selected in the Recycle Bin, and runs through a corresponding linked list (m_pNote) to look up the tagNote data structure describing the note.

You could do something similar, and once you find the tagNote in the list with an index corresponding to the selected item in the m_pTitle ListBox, you have access to the text of the note, etc.

Regards,

quadz
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline [N]auTiCa

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Extreme Online Gaming
  • Rated:
Re: Part #2 - C programmers.. need assistance.
« Reply #14 on: April 09, 2007, 09:11:25 PM »
Sounds good.. give me about an hour now to see if I can work something out and I'll post my progress.

edit:

I'm having some problems with this Preview button showing up once I compile and run the program.. gonna post some screen shots in a few.

Ok.. here is an image of how I created and added the Preview button. When I compile and run, the RecycleBin doesn't show this button, as if it's not there. I defined it in resource.h and still nothing.
« Last Edit: April 09, 2007, 09:30:34 PM by [N]auTiCa^K][L^ »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Clan ^K][L^  co-leader! www.clankil.com
dC member! www.monsterkill.org

 

El Box de Shoutamente

Last 10 Shouts:

 

RyU

September 03, 2024, 05:15:49 PM
And wow Derrick is still playing lol
 

RyU

September 03, 2024, 05:15:15 PM
Just know yesterday is gone and soon tomorrow will be gone too  :)
 

Lejionator

August 08, 2024, 07:28:01 PM
It's tiem to QuakeCon!!!  ;)

https://www.youtube.com/watch?v=ThQd_UJaTys
 

ImperiusDamian

July 26, 2024, 09:34:53 PM
In nomine Quake II et Id Software et Spiritus John Carmack, Amen.
 

QuakeDuke

July 26, 2024, 05:10:30 PM
Hey, shout, summertime blues
Jump up and down in you blue suede shoes
Hey, did you rock and roll? Rock on!!  ...QD
 

Yotematoi

July 24, 2024, 01:31:20 PM
Ayer me mato 5 veces para robarme en la vida real hará lo mismo? [img]<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid0wXU2VgS7atesBcSoMz5BWMJCJajeZFVT6GzSU6TtpJGddN9kLTvWNgcZaskkbKFQl&amp;show_text=true&amp;width=500
https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid0wXU2VgS7atesBcSoMz5BWMJCJajeZFVT6GzSU6TtpJGddN9kLTvWNgcZaskkbKFQl&show_text=true&width=500" width="500"
 

Yotematoi

July 24, 2024, 01:25:59 PM
hi ya está la basura de Martin, se cambió el nombre es un ladron estupido, asi llegó a 10000[img]<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid03hZrkDUBJPZKCuFgy5hRUy831ekKJYVRzC7ajXaKQbJ6xcPgKftLukUDfovFyEq3l&amp;show_text
https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid03hZrkDUBJPZKCuFgy5hRUy831ekKJYVRzC7ajXaKQbJ6xcPgKftLukUDfovFyEq3l&show_text
 

Yotematoi

July 24, 2024, 01:25:59 PM
hi ya está la basura de Martin, se cambió el nombre es un ladron estupido, asi llegó a 10000[img]<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid03hZrkDUBJPZKCuFgy5hRUy831ekKJYVRzC7ajXaKQbJ6xcPgKftLukUDfovFyEq3l&amp;show_text
https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fzoloyoze.torito%2Fposts%2Fpfbid03hZrkDUBJPZKCuFgy5hRUy831ekKJYVRzC7ajXaKQbJ6xcPgKftLukUDfovFyEq3l&show_text
 

-Unh0ly-

July 05, 2024, 05:20:36 AM

Show 50 latest
Welcome, Guest. Please login or register.
September 20, 2024, 10:55:30 PM

Login with username, password and session length