|
I'm afraid it's not possible using just CListCtrl . You need something more customizable. Check out the classes available here[^] on CP.
Regards,
Alvaro
Can I ask you a question?
|
|
|
|
|
I read through the article that does this at:
http://www.codeproject.com/listctrl/listeditor.asp
which led me to read an article on CodeGuru.com relating to the same thing.
http://www.codeguru.com/listview/edit_subitems.shtml
I have a bit of a problem. I have a class (CElementListCtrl, derived from CListCtrl) which contains all of the functions found in the above link. In my CTraceElementDialog class I have a member variable of type CElementListCtrl:
CElementListCtrl m_elementList;
The list gets created as it should, but none of the code in the functions contained within CElementListCtrl ever get executed. In the article I used as a reference, it mentioned using the WM_LBUTTONDOWN message, but I can't seem to be able to use that message for my list. The only message available that is close to being the same (I think?) is the NM_CLICK message. I have tried to use a message map for this, but it still doesn't work at all. I have no clue what I'm doing wrong.
|
|
|
|
|
|
Thanks. I think I found what I'm looking for now...
|
|
|
|
|
use CListCtrl::SetExtendedStyle(LVS_EX_LABELTIP ),
LVS_EX_LABELTIP
Version 5.80. If a partially hidden label in any list-view mode lacks ToolTip text, the list-view control will unfold the label. If this style is not set, the list-view control will unfold partly hidden labels only for the large icon mode.
|
|
|
|
|
Does anyone have a nice class or function to
handle the singular value decomposition of a
square (nxn) matrix?
John Theal
Physicist/Mathematical Programmer
Digital Immersion Software Corporation
Got CAD?
http://www.presenter3d.com[^]
http://www.merlin3d.com[^]
|
|
|
|
|
I'd check out "Numerical Recipies in C++" by Press
He's got some simple but reasonably good numerical routines like that.
-Kevin
==============
If we knew what it is that we were doing, it would not be called research, would it?
-Einstein
|
|
|
|
|
Hello, everyone!
I want to learn general debug technology and some debug tricks of VC 6.0. For example, how to use debug menu of VC 6.0.
Where can I find some on line tutorials about this topic?
Thanks in advance,
George
|
|
|
|
|
Check out MSDN.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vcoriDebuggingTechniquesForVisualC.asp
Kuphryn
|
|
|
|
|
Thanks, kuphryn buddy!
George
|
|
|
|
|
hi..i have a menu in my Dlg....
an i want to diable it from my Data class...
so i add a member variable for the menu
void CGoServerDlg::OnUpdateListenListenforclients(CCmdU
I* pCmdUI)
{
}
in the dlg.....
now i want to disable it from the data class...
i have a member var in my data class pointing to the Dlg m_pSvrData
can any one pls help???
tks
in my data class if i do this....
m_pSvrData->OnUpdataListenListenforclients(???????)
tks
With Regards
Joseph R. Thomas
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
|
|
|
|
|
There are severa solutions. One solution is to call a member function of the dialog window. Have it disable the item. Another solution is messages.
Kuphryn
|
|
|
|
|
One solution is to call a member function of the dialog window
wont that involve lotsa passing the control around and making some flags.. and taking care of the flags everytime anything ahppens to the menu....
i am willing to do that...but is it correct to do that way??is there a straight forward answre??
tks
With Regards
Joseph R. Thomas
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
|
|
|
|
|
Hi,
Can anyone tell me what is this exception?
Unhandled exception in mytest.exe(mfc42.dll):0xc00000096 privileged Instruction.
Regards
Neaha
|
|
|
|
|
I believe it usually happens when you are passing invalid parameters to the base classes or you are trying to access data when it hasn't been created yet (invalid data).
|
|
|
|
|
But it is happening at
m_str=new double[256*256];
where m_str is double *
|
|
|
|
|
That line of code looks fine. without looking at the rest of the code around it I don't know for sure.
|
|
|
|
|
By the way, if the array is always made up of 65536 doubles, then why not,
double m_str[65536];
It's much faster and you don't have to worry about freeing it later.
Regards,
Alvaro
Can I ask you a question?
|
|
|
|
|
Yum. A 512Kb allocation. Hope that sucker isn't on the stack....
Steve S
|
|
|
|
|
Are you using SSE or SSE2 by any chance? If you are, I might answer your question.
|
|
|
|
|
When we capture an image, it goes to clipboard. I heard that clipboard accepts DIB and TIFF format(but I'm not sure). If I send JPEG image to clipboard, does clipboard transform JPEG image to DIB or TIFF?
|
|
|
|
|
CF_BITMAP , CF_DIB , and CF_TIFF are three of the standard formats. To register others such as JPEG, you'll need to call RegisterClipboardFormat() .
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
I have an array:int amounts[]
How do I define size of arrays as an enumeration literal
Num in an anonymous enumeration?
|
|
|
|
|
Typically when I need to do this I have:
enum Test
{
Item 1
Item 2
.
.
.
Item N
TestEnd
}
then I just use (TestEnd - Item 1) for the size on the array. Just make sure that if you add to the enumeration that TestEnd or whatever you call it is always the last item. This will create a proper sized array.
|
|
|
|
|
Here is my code:
Can you help me?
#include <iostream>
using namespace std;
const NUM = 2;
int volumes[NUM], volume;
int count=0;
int amounts[NUM],amount;
const double price=0.05;
const double fee=12.0;
int main()
{
do
{
cout<<"Please enter the volume of water used by a customer ";
cout<< "during a month (in gallons).(Zero to end):";
cin>>volume;
if (volume==0.0)
break;
if (count==NUM)
break;
volumes[count++]=volume;
amount=(volume*price)+fee;
amounts[count++]=amount;
}
while(true);
return 0;
}
|
|
|
|