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. How a window can keep focus ?

How a window can keep focus ?

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • C Offline
    C Offline
    CHEICKNA TRAORE
    wrote on last edited by
    #1

    Hi every body, I use this code to stay my window on top : ::SetWindowPos(m_hWnd ,HWND_TOPMOST,294,251,415,240,SWP_SHOWWINDOW); is there any way so that my window keep alwas the focus? Thanks in advance georges

    D 1 Reply Last reply
    0
    • C CHEICKNA TRAORE

      Hi every body, I use this code to stay my window on top : ::SetWindowPos(m_hWnd ,HWND_TOPMOST,294,251,415,240,SWP_SHOWWINDOW); is there any way so that my window keep alwas the focus? Thanks in advance georges

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Why three separate posts with the same question?


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "There is no death, only a change of worlds." - Native American Proverb

      C 1 Reply Last reply
      0
      • D David Crow

        Why three separate posts with the same question?


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "There is no death, only a change of worlds." - Native American Proverb

        C Offline
        C Offline
        CHEICKNA TRAORE
        wrote on last edited by
        #3

        sorry, just an error while i tried to post my message. I received error updating...

        D S 2 Replies Last reply
        0
        • C CHEICKNA TRAORE

          sorry, just an error while i tried to post my message. I received error updating...

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          CHEICKNA TRAORE wrote:

          just an error while i tried to post my message. I received error updating...

          From my experience, 99% of the time this error is received, it is after the post has been made, but before the results are sent back to the client's browser.


          "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

          "There is no death, only a change of worlds." - Native American Proverb

          1 Reply Last reply
          0
          • C CHEICKNA TRAORE

            sorry, just an error while i tried to post my message. I received error updating...

            S Offline
            S Offline
            Stephen Hewitt
            wrote on last edited by
            #5

            Yeah, it's happened to before also. Steve

            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