|
If I need to display thumbnails of images, can the ListView/ImageList controls handle 1000's or even 10,000's of images? Is there a preferred way to do this with these controls, or am I better off writing my own custom control for this?
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
|
|
|
|
|
Yeah, it can do that, but the listview/ctrl isn't eaxctly a speed demon when you get much higher than 20 or 30 items.
There may even be a class here on CP that is already extend to allow more functionality than the stock MFC control.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
While it can do it, you will probably end up using the list control in 'virtual' mode. I've got a debugging tool I'm working on right at the moment that I've switched the list control to virtual. Once the control gets past a few thousand items, adding/removing items starts consuming a lot of CPU.
Software Zen: delete this;
|
|
|
|
|
Definitely use it in virtual mode. And, if you can, use a trick I learned. Use a 1-image imagelist. When the control asks for the text of the sub-item that has the image, overwrite the image in the imagelist. I even stored the images compressed and uncompress them individually when the control asked for them. Works like a charm.
|
|
|
|
|
Hi,
I have a question about net share permission of remote PC in LAN.
We all know that when we add a network share in Win2K, the default share
permission is 'Full Control for Everyone'. But it is well known that these
net share are so dangerous for LAN virus attack.
I want to check if the share permission of some net share folder includes
'Full Control for Everyone' in my app?
All OS in our LAN includes Win2K and Win NT, without Win9x.
I tried NetShareEnum() and SHARE_INFO_502,but it seems that I could not get
the share permission property.
Any helps?
Thank you in advance.
|
|
|
|
|
Try to find a place to download the WFC library (by Sam Blackburn). There's a class in that lib that I think does exeactly what you need. The lib itself contains a lot of useful NT (and therefore XP) system stuff in it.
If you can't find it, let me know and I'll setup a place for you to download the copy I have.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: Try to find a place to download the WFC library (by Sam Blackburn).
http://www.samblackburn.com/wfc/index.html[^]
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Use NetShareEnum to enumerate the network shares on your server. Level 2 will give you the local path for each shared folder.
It sounds like you really want to know the permissions granted to the 'Everyone' group for each shared folder. For this, you will need to examine the access control list (ACL) for the shared folder. Use GetFileSecurity or GetNamedSecurityInfo to retrieve the discretionary access control list (DACL) for the folder. If you look in the MSDN here[^] you can find information on security, ACL's, etc.
Software Zen: delete this;
|
|
|
|
|
|
Sir
i want to know how to increment a int value when i press and hold a button , if i release the button increment must
stop. please help me to solve this problem.
thank u
Satishvarma
|
|
|
|
|
Try GetAsyncKeyState function!!!
|
|
|
|
|
|
E.Satish wrote: i want to know how to increment a int value when i press and hold a button , if i release the button increment must
stop
I don't want to blow my own horn, but here is my solution to this from years ago:
Simple Auto-Repeat (Fire Control) Button Control: http://www.codeproject.com/buttonctrl/repeatbutton.asp[^]
I haven't had occasion to use this since VC6 but it shouldn't be difficult to adapt to your needs.
|
|
|
|
|
how to transfer control to child thread repetedly.
please give me sollution ASAP
Bankey Khandelwal
Mobile : 98504-32990
Office : 020 25521888
Solversa Technologies
15, Yeshwant Ghadge Nagar,
Range Hill Road,
Pune - 03,Maharashtra,India.
|
|
|
|
|
Hello,
How do you mean "transfer control to child thread"? Why do you want to do this? The OS does this for you repeatedly...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bankey Khandelwal wrote: how to transfer control to child thread repetedly.
please give me sollution ASAP
Create a Thread with higher priority.
Bankey Khandelwal wrote: Bankey Khandelwal
Mobile : 98504-32990
Office : 020 25521888
Solversa Technologies
15, Yeshwant Ghadge Nagar,
Range Hill Road,
Pune - 03,Maharashtra,India.
You love spamers a lot i guess.
-Prakash
|
|
|
|
|
Mr.Prakash wrote: You love spamers a lot i guess.
Seems so
"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
|
|
|
|
|
Bankey Khandelwal wrote: how to transfer control to child thread repetedly.
Which type of control are you talking about activex control or Child controlling the main application... please clarify
"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
|
|
|
|
|
void add_new_item(grahpic_card* gc_add);
grahpic_card gc[10];//declaring the object
add_new_item(&gc);//call the function while passing the object gc address
my class is the graphic card and my object is the gc is there any way i can pass the address of a class to my function? while my class is local class??
if there is please explain and sohw me thx u^^
|
|
|
|
|
neodeaths wrote: can pass the address of a class to my function
Huh? Maybe you meant passing the address of the current instance of your class to a function? Use the "this" keyword.
class A
{
void Method()
{
Test(this);
}
void Test(A *a)
{
}
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
i mean passing the address of a whole class to the function
so that i can use this in my function:
cout<<gc_add[i]->model<
|
|
|
|
|
neodeaths wrote: void add_new_item(grahpic_card* gc_add);
Your function expects a pointer to a graphic_card .
neodeaths wrote: grahpic_card gc[10];
You declare an array of graphic_card s.
neodeaths wrote: add_new_item(&gc);
Your passing the address of an array, not a graphic_card .
Try this:
add_new_item( &( g[ 0 ] ) );
Now, this is passing the address of a single graphic_card .
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
How to load bitmap from Hard disk instead of bitmap from resource file?
-- modified at 2:18 Saturday 7th January, 2006
|
|
|
|
|
|
HANDLE hBMP = ::LoadImage(NULL, "filename.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|