Click here to Skip to main content
16,010,544 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionI want to upload mp3 files using .net Pin
vijayprakash.g14-Oct-06 4:39
vijayprakash.g14-Oct-06 4:39 
AnswerRe: I want to upload mp3 files using .net Pin
Sceptic Mole20-Oct-06 0:41
Sceptic Mole20-Oct-06 0:41 
Questionhow to print the data listview to a bill Pin
ztkx12-Oct-06 19:28
ztkx12-Oct-06 19:28 
QuestionChanging the Classid for every rebuild. Pin
Eytukan12-Oct-06 3:09
Eytukan12-Oct-06 3:09 
AnswerRe: Changing the Classid for every rebuild. Pin
Mike Dimmick12-Oct-06 23:50
Mike Dimmick12-Oct-06 23:50 
GeneralRe: Changing the Classid for every rebuild. Pin
Eytukan12-Oct-06 23:58
Eytukan12-Oct-06 23:58 
QuestionListView problem Pin
invinJerry10-Oct-06 17:59
invinJerry10-Oct-06 17:59 
AnswerRe: ListView problem Pin
Jörgen Sigvardsson18-Oct-06 11:28
Jörgen Sigvardsson18-Oct-06 11:28 
Hmm.. I find this difference in times boggling. The WTL layer on top of the listview is extremely thin. You can easily verify this by looking at the source code for it. As far as I know, there are no "hooks" in WTL that hijacks the common controls code.

Is the listview control the same control (same code which instantiates it, etc) in all environments? If you are hosting a listview control in a WTL container window, it might have REFLECT_NOTIFICATIONS() in its message map. That would probably generate a lot of unnecessary callbacks to the listview control. If you are subclassing the listview, that too will add a small overhead (but nowhere near what you describe - unless the subclassed window's wndproc is fubared).

I have had the misfortune of loading 500+ items in a listview in an MFC project. The loading time is closer to 1 second than 100 seconds (maybe 2-5 if the database is congested). And that is on < 1 Ghz hardware.

May I ask where you get the data from? If it is already residing in memory, I would suggest to use a different strategy for displaying the data by using the LVS_OWNERDATA feature of the listview. It's slightly slower in repaints (not noticeable by the average user, but if you've lived and breathed CListCtrl for half a lifetime you'll notice it Wink | ;) ), but is MUCH faster in initialization and destruction.

--
Verletzen zerfetzen zersetzen zerstören
Doch es darf nicht mir gehören
Ich muss zerstören

QuestionHow can I get selected URL by right-clicked a hyperlink in Pocket IE? [modified] Pin
mobileconst9-Oct-06 23:33
mobileconst9-Oct-06 23:33 
Questionbackground drawing Pin
invinJerry9-Oct-06 19:22
invinJerry9-Oct-06 19:22 
QuestionHICON problem Pin
HakunaMatada9-Oct-06 1:03
HakunaMatada9-Oct-06 1:03 
AnswerRe: HICON problem Pin
Steve Echols9-Oct-06 19:52
Steve Echols9-Oct-06 19:52 
GeneralRe: HICON problem Pin
HakunaMatada9-Oct-06 21:13
HakunaMatada9-Oct-06 21:13 
AnswerRe: HICON problem Pin
invinJerry9-Oct-06 22:42
invinJerry9-Oct-06 22:42 
QuestionATL COM Exe program Pin
Sakthiu8-Oct-06 18:43
Sakthiu8-Oct-06 18:43 
AnswerRe: ATL COM Exe program Pin
FouziaSham15-Oct-06 21:34
FouziaSham15-Oct-06 21:34 
QuestionBug in CComBSTR::ToLower and ::ToUpper ??? Pin
Blake Miller6-Oct-06 8:28
Blake Miller6-Oct-06 8:28 
AnswerRe: Bug in CComBSTR::ToLower and ::ToUpper ??? Pin
prasad_som17-Oct-06 19:10
prasad_som17-Oct-06 19:10 
GeneralRe: Bug in CComBSTR::ToLower and ::ToUpper ??? Pin
Blake Miller18-Oct-06 4:11
Blake Miller18-Oct-06 4:11 
GeneralRe: Bug in CComBSTR::ToLower and ::ToUpper ??? Pin
prasad_som18-Oct-06 4:23
prasad_som18-Oct-06 4:23 
Questionnew to stl..please help Pin
eusto5-Oct-06 23:51
eusto5-Oct-06 23:51 
AnswerRe: new to stl..please help Pin
led mike6-Oct-06 4:51
led mike6-Oct-06 4:51 
AnswerRe: new to stl..please help Pin
Roger Stoltz6-Oct-06 5:02
Roger Stoltz6-Oct-06 5:02 
AnswerRe: new to stl..please help Pin
Rob Caldecott6-Oct-06 5:03
Rob Caldecott6-Oct-06 5:03 
GeneralRe: new to stl..please help Pin
George L. Jackson6-Oct-06 11:26
George L. Jackson6-Oct-06 11:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.