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. modal dialog

modal dialog

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • J Offline
    J Offline
    Jiten D Gandhi
    wrote on last edited by
    #1

    when i am trying to resize my applicalion at that time one modal dialog of my application appears on the screen and i am not able to get the focus on my dialog or application and the mouse pointer still shows the "resize" cursor. to activate my dialog or application i have to press (alt + tab). i think it's because there r 2 different thread and my applicacation still calls onsize() and suddenly that dialog appears. can anyone tell me what should i do?

    D M 2 Replies Last reply
    0
    • J Jiten D Gandhi

      when i am trying to resize my applicalion at that time one modal dialog of my application appears on the screen and i am not able to get the focus on my dialog or application and the mouse pointer still shows the "resize" cursor. to activate my dialog or application i have to press (alt + tab). i think it's because there r 2 different thread and my applicacation still calls onsize() and suddenly that dialog appears. can anyone tell me what should i do?

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

      Jiten D. Gandhi wrote: ...one modal dialog of my application appears on the screen and i am not able to get the focus on my ... application This is how modal dialogs behave. You must dismiss them before focus returns to the application. Jiten D. Gandhi wrote: ...my applicacation still calls onsize() and suddenly that dialog appears. can anyone tell me what should i do? Remove the OnSize() handler and see if the problem goes away.


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      1 Reply Last reply
      0
      • J Jiten D Gandhi

        when i am trying to resize my applicalion at that time one modal dialog of my application appears on the screen and i am not able to get the focus on my dialog or application and the mouse pointer still shows the "resize" cursor. to activate my dialog or application i have to press (alt + tab). i think it's because there r 2 different thread and my applicacation still calls onsize() and suddenly that dialog appears. can anyone tell me what should i do?

        M Offline
        M Offline
        Mahendra_786
        wrote on last edited by
        #3

        Why would you need to display a modal dialog in OnSize? Due Regards Mahendra

        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