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. Apply DS_SYSMODAL style when creating a dialog at runtime

Apply DS_SYSMODAL style when creating a dialog at runtime

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminhelp
2 Posts 2 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.
  • N Offline
    N Offline
    narayanagvs
    wrote on last edited by
    #1

    Hi, I need to apply DS_SYSMODAL style while creating a modeless dialog at runtime based on a registry key setting.And also undo this style from dialog at runtime. When DS_SYSMODAL is set, Windows is internally setting it to WS_EX_TOPMOST. Now Can anyone tell me how I should do the same. I have used ModifyStyleEx as below but it didnt seem to have any impact. if(blnSysModal) { m_dlg1->ModifyStyleEx(0,WS_EX_TOPMOST); } else { m_dlg1->ModifyStyleEx(WS_EX_TOPMOST,0); } Any help on the same would be appreciated. Thanks Satya

    Today is a gift, that's why it is called the present.

    L 1 Reply Last reply
    0
    • N narayanagvs

      Hi, I need to apply DS_SYSMODAL style while creating a modeless dialog at runtime based on a registry key setting.And also undo this style from dialog at runtime. When DS_SYSMODAL is set, Windows is internally setting it to WS_EX_TOPMOST. Now Can anyone tell me how I should do the same. I have used ModifyStyleEx as below but it didnt seem to have any impact. if(blnSysModal) { m_dlg1->ModifyStyleEx(0,WS_EX_TOPMOST); } else { m_dlg1->ModifyStyleEx(WS_EX_TOPMOST,0); } Any help on the same would be appreciated. Thanks Satya

      Today is a gift, that's why it is called the present.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      DS_SYSMODAL is not used any more, it is no longer possible to have system modal dialogs.

      One of these days I'm going to think of a really clever signature.

      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