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. How do you create a GUI thread?

How do you create a GUI thread?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    Dave 1
    wrote on last edited by
    #1

    I try and create a thread that will loop the GetMessage,TranslateMessage,DispatchMessage commands, but the thread only executes the loop once, and then exits. Someone told me you have to create a "GUI thread" to do that. How to you make a GUI thread then? --Dave

    R 1 Reply Last reply
    0
    • D Dave 1

      I try and create a thread that will loop the GetMessage,TranslateMessage,DispatchMessage commands, but the thread only executes the loop once, and then exits. Someone told me you have to create a "GUI thread" to do that. How to you make a GUI thread then? --Dave

      R Offline
      R Offline
      Ryan Park
      wrote on last edited by
      #2

      As fas as I know, GUI thead is a thread that has a message pump.. No more than that.. So check your callback procedure of the thread... Make sure you do not break the loop of message pump.. It will be broken automatically by WM_QUIT.. After testing this, give me a THREAD to this posting.. Regardz -Ryan

      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