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. Increase the window message priority

Increase the window message priority

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
5 Posts 4 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.
  • H Offline
    H Offline
    helpcode
    wrote on last edited by
    #1

    I have an application which calls the functions of a DLL. If control goes to that DLL i can not maximize my application. it simply hangs. then i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me JITEEN

    F T M 3 Replies Last reply
    0
    • H helpcode

      I have an application which calls the functions of a DLL. If control goes to that DLL i can not maximize my application. it simply hangs. then i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me JITEEN

      F Offline
      F Offline
      Frank K
      wrote on last edited by
      #2

      Hi, I think you don't need an increased priority, you only need a DLL without a deadlock! Or if you havn't a deadlock, you need multithreading. Your problem is, that your application-main-thread can't process the message-loop, if he is running (and blocking) at the DLL. HTH Frank

      H 1 Reply Last reply
      0
      • H helpcode

        I have an application which calls the functions of a DLL. If control goes to that DLL i can not maximize my application. it simply hangs. then i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me JITEEN

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        helpcode wrote:

        en i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me

        .. actually your main thread is calling the Function Thread, which seems to performing long function.. thats why it making the main thread hung!.. so better you try MultiThreading program! forĀ  that you have to implement some callback mechanism for same!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

        1 Reply Last reply
        0
        • H helpcode

          I have an application which calls the functions of a DLL. If control goes to that DLL i can not maximize my application. it simply hangs. then i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me JITEEN

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          The UI looks hung because messages have to actually be processed by the UI thread. While the thread is running code in the DLL, it's not processing messages in the queue. Changing to a multi-threaded design is often the best way to solve this problem.

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

          1 Reply Last reply
          0
          • F Frank K

            Hi, I think you don't need an increased priority, you only need a DLL without a deadlock! Or if you havn't a deadlock, you need multithreading. Your problem is, that your application-main-thread can't process the message-loop, if he is running (and blocking) at the DLL. HTH Frank

            H Offline
            H Offline
            helpcode
            wrote on last edited by
            #5

            So here, i need to UI thread. Or the DLL's function which i m calling needs to be in thread? i mean what i should do exactly. Jiteen

            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