Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Image sequence display in Dialog Pin
Hamid_RT6-Oct-06 19:00
Hamid_RT6-Oct-06 19:00 
GeneralRe: Image sequence display in Dialog Pin
Bighand20007-Oct-06 4:29
Bighand20007-Oct-06 4:29 
GeneralRe: Image sequence display in Dialog Pin
Hamid_RT7-Oct-06 6:54
Hamid_RT7-Oct-06 6:54 
GeneralRe: Image sequence display in Dialog Pin
Bighand20007-Oct-06 16:52
Bighand20007-Oct-06 16:52 
GeneralRe: Image sequence display in Dialog Pin
Hamid_RT7-Oct-06 19:52
Hamid_RT7-Oct-06 19:52 
GeneralRe: Image sequence display in Dialog Pin
Bighand200010-Oct-06 11:55
Bighand200010-Oct-06 11:55 
GeneralRe: Image sequence display in Dialog Pin
Hamid_RT10-Oct-06 18:43
Hamid_RT10-Oct-06 18:43 
GeneralRe: Image sequence display in Dialog [modified] Pin
Bighand200021-Oct-06 15:37
Bighand200021-Oct-06 15:37 
In the programs mentioned in my previous posts under this topic, I use a CBitmap member variable to contain the images read in or processed. And I use the OnPaint of the display dialog(a separate dialog window) to display it. Every time a new image was read in or processed, the CBitmap variable was updated and Invalidate() and Redrawindow() were called to refresh the display.

Today, I discarded Invalidate() and RedrawWindow(), instead I used CClientDC and DrawImage() directly to the display dialog, and it seems the problem has been solved. But I can not move the display window and it seems the thread was too busy to response.

This is a snippet of the code:

    CClientDC dc(&m_dlgDisplay);  //m_dlgDisplay is the variable for the display dialog
Graphics graphics(dc.m_hDC);

for(int i =0; i<700; i++)
{
    //Form the image name
            strMiddle.Format(_T("%04d"), i);
    fn=strPrefix+strMiddle+_T(".jpg");

    if(m_image)
        delete m_image;
    m_image=Image::FromFile(fn);    //m_image is a Image* member varible
    graphics.DrawImage(m_image, 0, 0);
    //Sleep(30);
}




-- modified at 21:48 Saturday 21st October, 2006
GeneralRe: Image sequence display in Dialog Pin
Hamid_RT22-Oct-06 1:28
Hamid_RT22-Oct-06 1:28 
QuestionElegant solution for alignment Pin
Andre xxxxxxx6-Oct-06 7:10
Andre xxxxxxx6-Oct-06 7:10 
AnswerRe: Elegant solution for alignment Pin
led mike6-Oct-06 8:39
led mike6-Oct-06 8:39 
GeneralRe: Elegant solution for alignment Pin
Andre xxxxxxx6-Oct-06 9:34
Andre xxxxxxx6-Oct-06 9:34 
GeneralRe: Elegant solution for alignment Pin
led mike6-Oct-06 9:37
led mike6-Oct-06 9:37 
GeneralRe: Elegant solution for alignment Pin
Andre xxxxxxx6-Oct-06 9:45
Andre xxxxxxx6-Oct-06 9:45 
GeneralRe: Elegant solution for alignment Pin
led mike6-Oct-06 11:03
led mike6-Oct-06 11:03 
AnswerRe: Elegant solution for alignment Pin
James Brown7-Oct-06 7:04
James Brown7-Oct-06 7:04 
QuestionDebugger - Visualizer (VS2005) [modified] Pin
Abyss6-Oct-06 6:33
Abyss6-Oct-06 6:33 
QuestionChange color of dialog border Pin
vasmvr6-Oct-06 6:13
vasmvr6-Oct-06 6:13 
AnswerRe: Change color of dialog border Pin
Hamid_RT19-Oct-06 8:39
Hamid_RT19-Oct-06 8:39 
QuestionUninstall VS2003 SP1? Pin
Todd Smith6-Oct-06 5:52
Todd Smith6-Oct-06 5:52 
AnswerRe: Uninstall VS2003 SP1? Pin
David Crow6-Oct-06 6:03
David Crow6-Oct-06 6:03 
GeneralRe: Uninstall VS2003 SP1? Pin
Todd Smith6-Oct-06 6:07
Todd Smith6-Oct-06 6:07 
QuestionRuntime change MDI/SDI Pin
Endaroza6-Oct-06 5:28
Endaroza6-Oct-06 5:28 
AnswerRe: Runtime change MDI/SDI Pin
led mike6-Oct-06 5:49
led mike6-Oct-06 5:49 
GeneralRe: Runtime change MDI/SDI Pin
Mark Salsbery6-Oct-06 5:52
Mark Salsbery6-Oct-06 5:52 

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.