|
Locate the control id using Spy++ then open up resource.h find the corresponding name with that ID
then find all instances of that name this will greatly narrow the search.
does this help
G_S
|
|
|
|
|
Thanks G_S.
I converted the control ID into Decimal ( Spy++ displays the CID in Hex.) and fixed the control..
Thanks a Lot.
|
|
|
|
|
how can i use this to work more faster ? :
int h = 0;
while(!pName->IsEOF())
{
int nItem = m_list2.InsertItem(h, pName->m_name);
m_list2.SetItemText(nItem, 1, pName->m_city);
m_list2.SetItemText(nItem, 2, pName->m_country);
pName->MoveNext();
h++;
}
pName->Close();
}
Bravoone
|
|
|
|
|
What is slow ? The filling of the list ctrl, or the reading of your data in the class pName is pointing at ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
filling of the CListCtrl !
Bravoone
|
|
|
|
|
LVS_OWNERDATA
--
Behold, for I am THE CORRUPTOR!
|
|
|
|
|
please give me an example !!!!!
Bravoone
|
|
|
|
|
search for "virtual list"
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
Try this:
int h = 0;<br />
<br />
m_list2.LockWindowUpdate();<br />
<br />
while(!pName->IsEOF())<br />
<br />
{<br />
<br />
int nItem = m_list2.InsertItem(h, pName->m_name);<br />
m_list2.SetItemText(nItem, 1, pName->m_city);<br />
m_list2.SetItemText(nItem, 2, pName->m_country);<br />
<br />
pName->MoveNext();<br />
<br />
h++;<br />
<br />
}<br />
<br />
m_list2.UnlockWindowUpdate();<br />
m_list2.Invalidate();<br />
m_list2.UpdateWindow();<br />
<br />
pName->Close();
I have found this to speed up performance considerably when you're dealing with large amounts of data. If this doesn't work then definitely take a hard look at the pName->MoveNext() call to see if that's the problem.
|
|
|
|
|
Hi,
Can a namespace extension be installed on a limited user account for Windows XP?
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
Dave Kerr wrote: namespace extension
what are you talking about ?
what has this to do with C++ ?
|
|
|
|
|
toxcct wrote: what are you talking about ?
when you open the windows explorer most of the elements in the folder view is a namespace like my computer, my network connection, etc, you can add you own too and you need to install it to do that.
-Prakash
|
|
|
|
|
I am talking about a Shell Namespace Extension, a COM server written in C++ with MFC (in my case) that presents information in a way that the shell can present in windows explorer. An example is the way windows xp presents zip archives, which behave almost as part of the filesystem.
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
yes, probably each user has to install it. you might have to register the namespace under HKEY_CURRENT_USER
is the namespace being developed by you?
-- modified at 7:15 Friday 18th August, 2006
-Prakash
|
|
|
|
|
As far as I know, the only thing that needs to be done is add some keys to the current user part of the registry. What I wonder is if this part of the registry will be accessible on a limited user account..
Yes the namespace extension is being developed by me.
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
Well, you just have to try it.
-Prakash
|
|
|
|
|
hi,
how to get popupmenu on trayicon,
please anyone help me,
thanks.
kanth
|
|
|
|
|
|
thanks for ur help.
kanth
|
|
|
|
|
hi
i wantt to know the location of tool bar with respect to the the windowrect coordinates.
|
|
|
|
|
cybersadhu wrote: with respect to the the windowrect coordinates
Use GetWindowRect on your toolbar, use it on your window, calculate the difference between the two RECT s.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
|
What happens if you turn the optimizer off?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
How to convert a movie/video like mpeg or avi file into an exe?
|
|
|
|
|
No way. Make it yourself. Write a program that can play such movies and try to embed that movies in the program as resource.
|
|
|
|