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. Thread and its custom window (!?)

Thread and its custom window (!?)

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • R Offline
    R Offline
    Russell
    wrote on last edited by
    #1

    Hi, I know that to manage the GUI of the application a separate thread have to send/post messages to the main thread to let him do everything. But, please, help me to understand if this is possible: It is possible to create, manage and finally destroy a window (or a dialog) all in a separate thread? I mean a simple dialog like a custom message box dialog, or input dialog. It can be enough for mo to display some graphic into a little DC that I like to manage with a separate thread, like an external object. Thanks...


    Russell

    E C 2 Replies Last reply
    0
    • R Russell

      Hi, I know that to manage the GUI of the application a separate thread have to send/post messages to the main thread to let him do everything. But, please, help me to understand if this is possible: It is possible to create, manage and finally destroy a window (or a dialog) all in a separate thread? I mean a simple dialog like a custom message box dialog, or input dialog. It can be enough for mo to display some graphic into a little DC that I like to manage with a separate thread, like an external object. Thanks...


      Russell

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #2

      I know an application whose views will be drawn by separate event-controlled threads :) I know an application whose worker-threads do show topmost windows with a progress control :) Yes, it is possible.

      virtual void BeHappy() = 0;

      1 Reply Last reply
      0
      • R Russell

        Hi, I know that to manage the GUI of the application a separate thread have to send/post messages to the main thread to let him do everything. But, please, help me to understand if this is possible: It is possible to create, manage and finally destroy a window (or a dialog) all in a separate thread? I mean a simple dialog like a custom message box dialog, or input dialog. It can be enough for mo to display some graphic into a little DC that I like to manage with a separate thread, like an external object. Thanks...


        Russell

        C Offline
        C Offline
        Code o mat
        wrote on last edited by
        #3

        It should be possible.

        > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

        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