Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Property page trouble

Property page trouble

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pranavamhari
    wrote on last edited by
    #1

    hi, I perform a lengthy operation in a property page when users clicks a button. For example, like this ////////////// m_bUserAbort = FALSE; while(1) { MSG msg; while (::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) AfxGetThread()->PumpMessage(); if(m_bUserAbort) break; } /////////// However, the dialog is not responding to user's cancel button click, which sets m_bUserAbort to true. what is wrong ? the page is not even responding to move operation by mouse. regards hari Hari Krishnan

    W 1 Reply Last reply
    0
    • P pranavamhari

      hi, I perform a lengthy operation in a property page when users clicks a button. For example, like this ////////////// m_bUserAbort = FALSE; while(1) { MSG msg; while (::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) AfxGetThread()->PumpMessage(); if(m_bUserAbort) break; } /////////// However, the dialog is not responding to user's cancel button click, which sets m_bUserAbort to true. what is wrong ? the page is not even responding to move operation by mouse. regards hari Hari Krishnan

      W Offline
      W Offline
      WoutL
      wrote on last edited by
      #2

      Hi Hari, Try: while(1) {    MSG msg;    while(::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))    {       if(!**AfxGetApp()**->PumpMessage())       {          ::PostQuitMessage(0);          break;       }    }    **// Simulate the framework's idle processing mechanism.    LONG lIdle = 0;    while (AfxGetApp ()->OnIdle (lIdle++));**    if(m_bUserAbort)       break; } Wout Louwers

      P 1 Reply Last reply
      0
      • W WoutL

        Hi Hari, Try: while(1) {    MSG msg;    while(::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))    {       if(!**AfxGetApp()**->PumpMessage())       {          ::PostQuitMessage(0);          break;       }    }    **// Simulate the framework's idle processing mechanism.    LONG lIdle = 0;    while (AfxGetApp ()->OnIdle (lIdle++));**    if(m_bUserAbort)       break; } Wout Louwers

        P Offline
        P Offline
        pranavamhari
        wrote on last edited by
        #3

        thanks Hari Krishnan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups