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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. help with dialog boxes

help with dialog boxes

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelp
3 Posts 3 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.
  • A Offline
    A Offline
    aarong
    wrote on last edited by
    #1

    i am making a program where i need to constantly check for a change in the state of a socket, and i was wondering if there is any way to draw a dialog box so it allow me to use the OnIdle() function of the main class of my program, or if there is a similar function that is available through the CDialog class. i've tried drawing a modeless dialog, but it won't appear but for a fraction of a second. any help would be greatly appreciated. -Aaron

    L D 2 Replies Last reply
    0
    • A aarong

      i am making a program where i need to constantly check for a change in the state of a socket, and i was wondering if there is any way to draw a dialog box so it allow me to use the OnIdle() function of the main class of my program, or if there is a similar function that is available through the CDialog class. i've tried drawing a modeless dialog, but it won't appear but for a fraction of a second. any help would be greatly appreciated. -Aaron

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I'm not sure if this is what you mean but if you try creating a second thread and attach a modal dialog box you should be able to create a loop that won't interupt your main application.

      1 Reply Last reply
      0
      • A aarong

        i am making a program where i need to constantly check for a change in the state of a socket, and i was wondering if there is any way to draw a dialog box so it allow me to use the OnIdle() function of the main class of my program, or if there is a similar function that is available through the CDialog class. i've tried drawing a modeless dialog, but it won't appear but for a fraction of a second. any help would be greatly appreciated. -Aaron

        D Offline
        D Offline
        Derek Lakin
        wrote on last edited by
        #3

        Another option is to handle the WM_KICKIDLE private MFC message, which is defined in afxpriv.h Your handler for this message would be the equivalent of OnIdle in your main class. Derek Lakin. Salamander Software Ltd.

        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