|
Thanks Naveen for taking me into right direction.
I did forget to set count for list with SetItemCountEx()
I did it and now I am able to show 100000+ items in the virtual list of CMultiColumnComboBox.
Thanks a lot for helping me.
One Question..?
I have custom control IDC_CUSTOM1 in dialog resource of my view.
I have subclassed IDC_CUSTOM1 to CMultiColumnComboBox
In my project value for IDC_CUSTOM1 is 1005
In MultiColumnComboBox.h value for IDLISTCTRL is 0x3E8 (i.e. 1000)
View gets LVN_GETDISPINFO message directly from IDLISTCTRL
(i.e. with control-id == IDLISTCTRL)
But I need LVN_GETDISPINFO with id of custom control IDC_CUSTOM1
(i.e. with control-id == IDC_CUSTOM1)
How to modify CMultiColumnComboBox::ParentWndProc or MultiColumnComboBox::ListCtrlWndProc so that I get LVN_GETDISPINFO with ID of parent custom control and not of ListCtrl ?
So I can distinguish LVN_GETDISPINFO message in case of multiple combos. Because I need to use multiple combos IDC_CUSTOM1 , IDC_CUSTOM2, IDC_CUSTOM3 etc. and each of them in virtual mode.
Thank You.
Anand
|
|
|
|
|
i think thats not possible. but there is turn around
I hope u use a listctrl derived class object as virtual list(if not so, derive a class from clistctrl and use bject of that class as virault list )
Add a member variables in that class say m_nParentComboId;
After u create the listctrl for a combo, set the correponding combos id into listctrl member variable(m_nParentComboId).
So when ever u get a LVN_GET... message. check the m_nParentComboId to find which combox is associated with the list ctrl
nave
|
|
|
|
|
Nice idea to add m_nParentComboId for parent combo identification. I may do that.
But One thing...
In CMultiColumnComboBox::OnInit(), after creating list control, with ::SetWindowLong statement... it stores pointer to CMultiColumnComboBox as a long.
::SetWindowLong( m_pListCtrl->m_hWnd, GWL_USERDATA, long(this) );
(Whenever LVN_GETDISPINFO message comes in view from list ctrl)
Can I get that value and use that value to identify control id or parent combo ?
Thanks for all your help. I learnt nice tricks for handling virtual list.
Anand
|
|
|
|
|
That too is a good idea. Later u can use GetWindowLong() to get retrive the pointer...
Where r u from anand?I am from kerala->India
nave
|
|
|
|
|
Naveen, Thanks a lot for helping.
You always answered nicely, regularly and promptly.
Are you working for CodeProject or what ?
I am from Vadodara (Gujarat-India).
Thanks again.
Anand
|
|
|
|
|
no no .. I am working in a company in kerala itself(NeST). Answering in CP is just a hobby...
nave
|
|
|
|
|
Naveen, Thanks a lot for helping.
You always answered nicely, regularly and promptly.
Are you working for CodeProject ?
I am from Vadodara (Gujarat-India)
Thanks again.
Anand
|
|
|
|
|
Hi,
I used the following function to display HtmlHelp files.it is working fine in non-unicode but it is not working in unicode.i don't no why?anybody can help me.
HtmlHelp(m_hWnd,_T("C:\Working\projects\application.chm"),HH_DISPLAY_TOC,NULL);
E-Ramu
|
|
|
|
|
Ramu.e wrote: it is working fine in non-unicode but it is not working in unicode
What is it doing / not doing in the Unicode build?
Ramu.e wrote: C:\Working\projects\application.chm
I assume you typed this from memory? As the directory paths should be seperated with '\\'
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
I guess your _T macro doesnt do the right things in Unicode. Make the path in an own string.
Greetings from Germany
|
|
|
|
|
I have fired a query on to a webservice using the GET method. Now the GET method has some limitations relating to the size of the query and the data that could be passed with it. So I thought about shifting to the use of POST method. But the POST method fails when trying to connect to the webservice returning an error : 500 Internal Server Error. Any ideas how can I resolve the problem of using the POST method with the Kerberos authentication enabled.
PS: I tried googling for a solution and found this link[^] which says to disable the authentication and this is what I don't want to do as this would create a security hole. (I use MSXML2)
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Dear All,
I need to find number of device drives (harddisk partitions) in a host ?
Is there any API to get this information ?
How can i do this ?
Kindly help me.
Thanks.
|
|
|
|
|
Sakthiu wrote: I need to find number of device drives (harddisk partitions) in a host ?
Look up GetLogicalDriveStrings , GetLogicalDrives .
|
|
|
|
|
Sakthiu wrote:
Is there any API to get this information ?
CNMPDriveClass[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
hi
i am facing memory & handle problem when my application invoke IXMLDOMDocument::load(), even i have used IXMLDOMDocument::Release() each time when i load new xml file, but its continuously increasing the memory and handle usage,
your help will be greatly appreciated
Thanks & Regards
neeraj
neeraj
neeraj
|
|
|
|
|
You got to live with "that". Try do create/delete the whole object.
Greetings from Germany
|
|
|
|
|
I have a simple, but yet important question. I'm trying to determine what the coordinate 0,0 would be on a system with three or more monitors.
I know that for dual displays, 0, 0 is still the top left of the primary (ie, the one with the taskbar). I assume it would be this way for three or more as well, but well we all know how assumptions go.
So, can someone with 3 or more monitors tell me if say -100, -100 is considered off screen or on screen? TIA
|
|
|
|
|
|
Well, I assume when it's three or more the resulting functionality would be the same as if it was eight or whatever. I'm not positive if there's no longer a concept of primary and secondary at that point. And seeing that I only have two monitors, kinda hard to test it out.
|
|
|
|
|
Jeremy Falcon wrote: And seeing that I only have two monitors, kinda hard to test it out.
Likewise.
I thought it was a trick question since you could use different coordinate systems.
My assumption is, by default, the upper left corner of the monitor configured as monitor 1 on
windows.
Good ? though
|
|
|
|
|
|
Gracias for the link! Saved that to my favs - i want 3 monitors
|
|
|
|
|
Mark Salsbery wrote: i want 3 monitors
Same here.
|
|
|
|
|
I recently posted an article about using multiple monitors Jeremy. The answer was there for you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I just posted an article about using multiple monitors Jeremy. The answer was there for you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|