|
Thanks, I just wasn't sure where to look at first. It is all taken care of now.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
is there a standard way of doing this or does one just scramble the data in the usual ways and store that?
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
No standard that I'm aware of. We use a light encryption here (bit fiddling).
|
|
|
|
|
You gotta do the encrypting part yourself!
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
How do you give each entry into m_list1 a row number so that it'll appear in the list box? The reason for this is that m_list1.DeleteString would use the row number to delete specific entries.
-----------------------------------------------------
void CISGUIDlg::OnButton1()
{
UpdateData(); // Transfer data from controls to variables
m_strFullName = m_edit1 + " " + m_edit2;
m_list1.AddString(m_strFullName); //Add string to list
UpdateData(FALSE); // Transfer data from variables to controls
}
void CISGUIDlg::OnButton2()
{
UpdateData();
m_list1.DeleteString()
UpdateData(FALSE);
}
|
|
|
|
|
int iRow = 0; // global row counter
void CISGUIDlg::OnButton1()
{
UpdateData(); // Transfer data from controls to variables
iRow++;
m_strFullName.Format(%d %s %s",iRow,m_edit1,m_edit2;
m_list1.AddString(m_strFullName); //Add string to list
UpdateData(FALSE); // Transfer data from variables to controls
}
void CISGUIDlg::OnButton2()
{
UpdateData();
// When you delete a string, you must renumber all the rows beyond the deleted entry and decrement iRow.
m_list1.DeleteString()
UpdateData(FALSE);
}
|
|
|
|
|
Hey Guys
Im using a microsoft crypto API func and it has the ability to hand in a callback function to it. What i want to know is if i can get it to use my call back function and then after its run that get my function to go back to the micrsoft function rather then my callback. You see what i want to do is just get a pionter that is handed to the callback function i then want it to get on and do all the work.
Is this possible
Peter
|
|
|
|
|
No.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
In the MSDN Library Help window, there is a results window displayed when the "search" tab is selected which I would like to emulate. The three buttons, "Title, "Location" and "Rank", seem to be part of that window. Does anyone know how this is done? Is it a custom class derived from CListBox? Any insight or a link to some sample code would be appreciated.
Kevin Torvik
|
|
|
|
|
Kevin Torvik wrote:
Is it a custom class derived from CListBox?
It's a listview control in report mode. If you're using MFC, check CListCtrl.
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
I have an MDI MFC application and in some sitations I don't want the user to be able to switch between documents. It sounds easy but I have not not been able figure it out.
Any help will be appreciated
|
|
|
|
|
Perhaps you can save the identity of the current document in some kind of global along with a switch indicating whether the user can switch or not. In the OnActivate for the view, check to see if the document being activated is the right one, if not, re-active the correct one.
You might be able to do something more sophisitcated with PreTranslateMessage to suppress the activation altogether.
|
|
|
|
|
you could look for the document you want on top losing focus (there is an event for this) and force it back to the top of the z-order
just a guess
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
How about just looping through all of the views & hiding the ones that belong to the non-active documents? Worth a try maybe...
--------
You can change the extention so it reads ASP even though it is PHP which is kind of cool. - Martin Marvinski --Shog9 --
|
|
|
|
|
Thanks guys, all nice suggestions
Will try
|
|
|
|
|
why would this dialog never make it threw the if-else. I watch it and it starts from the top each time and will never go away.
void CAMID::OnSetfocusVelocityKt()
{
CNumEntry dlg;
if(dlg.DoModal() == IDOK2)
{
}
else
{
return;
}
}
|
|
|
|
|
jimNLX wrote:
if(dlg.DoModal() == IDOK2)
Maybe it's this ....
are you sure the ok button has the IDOK2 id, or IDOK ???
Max.
|
|
|
|
|
doubled checked it - its IDOK2
|
|
|
|
|
Your OnSetfocus handler is called when window receives focus. Then it shows modal dialog, and after closing this dialog focus returns. Your handler gets called again. Then it shows modal dialog...
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
that makes total sense. lets see if I can remedy it now.
thanks for the help.
|
|
|
|
|
Tomasz has explained why the dialog keeps popping up infinitely. But here is something elsein that code of yours that's a little worrying. But the return value you check for is IDOK2. If you really want the DoModal() to return something out of the normal set, you'd have to call EndDialog explicitly passing the return value you want to return! I thought I'd mention that before you run into some unexpected behaviour!
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Thanks, I will certainly look into this.
Jim
|
|
|
|
|
I started looking into another way to call this dialog, but I can't seem to find one that will
I can use. The OnFocus seemed to be the perfect on, but that caused problems.
How can I get this box to work on a click?
|
|
|
|
|
Hello
Not a long ago I got a task to write a programm, that solve a frequency of sound card. All colculations must do in real-time.
It's a my first project of that type and I not totally undestand how do it. May be it's programm had already done In this case would you be so kind as to write a text of programm or send to my e-mail.
Beforehand thanks for all.
|
|
|
|
|
I'm not clear what you're asking. What do you mean "solve a frequency of sound card"?
|
|
|
|