Click here to Skip to main content
15,861,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCListCtrl : How to un-select item in the list programmatically ? Pin
xanagan6665-Dec-07 19:51
xanagan6665-Dec-07 19:51 
AnswerRe: CListCtrl : How to un-select item in the list programmatically ? Pin
Naveen5-Dec-07 20:50
Naveen5-Dec-07 20:50 
QuestionHow do I detect the audio/video capabilities on machine Pin
jit_knit5-Dec-07 18:45
jit_knit5-Dec-07 18:45 
GeneralSaving PowerpointSlide as Bitmap From a Win32 Api based Application Pin
niloy5-Dec-07 18:20
niloy5-Dec-07 18:20 
Questionabout pdf library. Pin
keyto5-Dec-07 18:12
keyto5-Dec-07 18:12 
GeneralRe: about pdf library. Pin
Hamid_RT5-Dec-07 18:29
Hamid_RT5-Dec-07 18:29 
QuestionRe: about pdf library. Pin
keyto5-Dec-07 19:05
keyto5-Dec-07 19:05 
GeneralFill CListCtrl with Images, about 20 images, performance problem Pin
followait5-Dec-07 17:09
followait5-Dec-07 17:09 
Not too many images to add, about 20, I'm not sure if a thread is necesaay. Here is the piece of code, the performace is not good enough.
My CPU is P4 1.8G.

LPCITEMIDLIST pidl=SHBrowseForFolder(&bi);
if(::SHGetPathFromIDList(pidl,FindPath)) {
    _tcscat(FindPath,TEXT("\\*.jpg"));
    CFileFind ff;
    BOOL b=ff.FindFile(FindPath);
    while (b) {
        b=ff.FindNextFile();
        CString FilePath=ff.GetFilePath();
        WCHAR *w=FilePath.AllocSysString();
        Bitmap bm(w);
        ::SysFreeString(w);
        HBITMAP hBmp;
        bm.GetHBITMAP(Color::Black,&hBmp);
        Bitmap *pThumb=(Bitmap*)bm.GetThumbnailImage(60,45);
        pThumb->GetHBITMAP(Color::Black,&hBmp);
        CBitmap *pBmp=new CBitmap;
        pBmp->Attach(hBmp);
        int i=m_wndToolDlgBar.m_ImgList.Add(pBmp,RGB(0,0,0));
        m_wndToolDlgBar.m_piclist.InsertItem(0,ff.GetFileTitle(),i);
        delete pThumb;
        delete pBmp;
    }
}

GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
Hamid_RT5-Dec-07 18:28
Hamid_RT5-Dec-07 18:28 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
followait5-Dec-07 19:16
followait5-Dec-07 19:16 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
Hamid_RT6-Dec-07 0:18
Hamid_RT6-Dec-07 0:18 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
Naveen5-Dec-07 18:50
Naveen5-Dec-07 18:50 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
followait5-Dec-07 19:15
followait5-Dec-07 19:15 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
Hamid_RT6-Dec-07 0:18
Hamid_RT6-Dec-07 0:18 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
ThatsAlok5-Dec-07 19:43
ThatsAlok5-Dec-07 19:43 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
followait5-Dec-07 21:36
followait5-Dec-07 21:36 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
David Crow6-Dec-07 4:44
David Crow6-Dec-07 4:44 
GeneralRe: Fill CListCtrl with Images, about 20 images, performance problem Pin
followait7-Dec-07 4:32
followait7-Dec-07 4:32 
Generali have some question about api MOUSE event. Pin
Jung Seng Won5-Dec-07 16:11
Jung Seng Won5-Dec-07 16:11 
GeneralRe: i have some question about api MOUSE event. Pin
followait5-Dec-07 17:20
followait5-Dec-07 17:20 
GeneralRe: i have some question about api MOUSE event. Pin
Vince Rojas5-Dec-07 18:16
Vince Rojas5-Dec-07 18:16 
GeneralRe: i have some question about api MOUSE event. Pin
Jung Seng Won5-Dec-07 18:57
Jung Seng Won5-Dec-07 18:57 
Generalusing C++ to parse HTML Pin
Tom Paronis5-Dec-07 13:43
Tom Paronis5-Dec-07 13:43 
GeneralRe: using C++ to parse HTML Pin
Hamid_RT5-Dec-07 18:34
Hamid_RT5-Dec-07 18:34 
GeneralRe: using C++ to parse HTML Pin
Tom Paronis6-Dec-07 3:11
Tom Paronis6-Dec-07 3:11 

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.