|
Huh interesting so the everyday use stuff. Ok thank you very much... ZoodayZ.
|
|
|
|
|
it gives me a good starting I would like to take a look at each one closely of corse MFC socket is not new but thanks for the names it gives me a head start. ZoodayZ
|
|
|
|
|
What technique would be used to store items in a multi-column CListCtrl?
Would a vector inside a vector work? I need to override the operations of a CListCtrl and store each item added in a seperate array also, instead of just the default builtin storage.
If I have made sense and someone could point me in the right direction I would appreciate it
Thanks
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Why not just an array of structures?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Nope won't work, I mean it would work, but it's not the solution I want.
I want the control generic enough that I can add/remove columns. I don't imagine the control itself uses a fixed structure...otherwise how would you support variable columns?
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Then a vector of a vector.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I was afraid of that
Roger...Roger..
Vector...Victor
Clearance...Clarence
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Why don't you use Chris Maunder's grid control[^]? It looks like his control will be much beter for your application... I use it every where a CListCtrl is needed because it is so flexible and I have packaged it in a dll so it is not that difficult to add to my project...
John
|
|
|
|
|
typedef CMap<unsigend int,="" unsigned="" cstring,="" cstring&=""> XItem;
typedef CArray<xitem, xitem&=""> XList;
How about?
|
|
|
|
|
Is it true that CToolBar button bitmaps can only contain 16 colors?
|
|
|
|
|
|
Hi All,
I'm using createProcess to launch a console application, but I don't know how to capture the output and redirect to a window. Can somebody help me with it? really appreciate it. thanks in advance. -Dave.
|
|
|
|
|
|
thanks, but I didn't find any information related to the problem. Is this the right one? thanks anyway.
|
|
|
|
|
|
This may be overly simple, but the solution has eluded me and research has come up with nothing.
I have a CView derived class. This class's only job is to display nothing. I'd like to insert the text: "There is no data to display in this view" in the view. Centered, at the top.
I know I have to override OnDraw. I know I have to use TextOut. How do I get the text to use the system font, and center it?
Thanks!
Frank
"Keyboard Error - Press F1 to Continue"
|
|
|
|
|
CGdiObject * pOldFont = pDC->SelectStockObject(DEFAULT_GUI_FONT);
CString s;
s.LoadString(IDS_NOPICTURE);
CRect rcClient;
GetClientRect(rcClient);
CPoint center = rcClient.CenterPoint();
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextAlign(TA_CENTER | TA_BASELINE);
pDC->TextOut(center.x, center.y, s);
if (pOldFont) pDC->SelectObject(pOldFont);
|
|
|
|
|
Yes! Thank you very much.
"Keyboard Error - Press F1 to Continue"
|
|
|
|
|
I have a derived CListCtrl in which I handle a double click event, but I need to find out which item was clicked on (if any).
From the function below is there any way I can get mouse coordinates from HMHDR??? I need to pass this info onto HitTest() but it doesn't appear likely I can get mouse coordinates from the parameters below???
CListCtrl::OnDblclk(NMHDR* pNMHDR, LRESULT* pResult)
Should I use PeekMessage and get the coordinates of the mouse when the last message was fired off???
What method should I use?
Thanks
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
If you look closely in the MSDN docs, you'll see that NM_DBLCLK for listviews, actually sends a NMITEMACTIVATE*. NMITEMACTIVATE* info = (NMITEMACTIVATE*)pNMHDR
(There's a NMITEMACTIVATE::iItem that'll interest you, I'm sure... )
--
Summer breeze makes me feel fine. Blowing, through the jasmine in my mind.
|
|
|
|
|
Ok, I am stumped here. I have an ActiveX COM dll written in VB6 that is returning an array of doubles. I am using the Class Wizard to import the typelib. so I can call a series of methods one of which returns array of doubles. The class wizard writes out both the .h and .cpp files for me, however it comments out the one method that is returning the array doubles saying:
I found a kb article telling me to use the ITypeLib viewer so I can manually write the method into the header and cpp files. This is where I am stuck. The ITypeLib viewer shows the method as such:
[id(0x60030004)]<br />
HRESULT GetNum([out, retval] SAFEARRAY(double)* );
Any help for writing the guts to make the InvokeHelper call would be much appreciated.
This is what I was initially trying:
SAFEARRAY* _Moses::GetNum()
{
SAFEARRAY* result;
InvokeHelper(0x60030004, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
return result;
}
TIA.
- Nick Parker My Blog
|
|
|
|
|
just a wild suggestion
try returning SafeArray of VARIANT instead of doubles
Might do something
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Can anyone post an example of the ReadProcessMemory function in action, let's say I want it to read at offset 0x6FB74910
Thanks,
Michael
|
|
|
|
|
How do I size and create two columns in a ListBox?
X str1
X2 str2
.
.
Xx strx
|
|
|
|
|
Use a multi-column listbox...which is very limiting or use a CListCtrl .
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|