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. Windows API
  4. Dialog Problems in Vista

Dialog Problems in Vista

Scheduled Pinned Locked Moved Windows API
helpc++wpf
3 Posts 2 Posters 5 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
    NiceNaidu fo
    wrote on last edited by
    #1

    Hi friends, I have two dialogs . dialog1 has the following styles DS_MODALFRAME | WS_POPUP |WS_CAPTION |WS_BORDER dialog2 has the following styles DS_MODALFRAME | WS_POPUP. Dialog 1 is placed exactly on the top of Dialog 2. These two dialogs are aligned in a way that they appear as a single dialog. Things are working fine in all the windows operating systems(except Vista) But in Vista, The alignment is lost. The top dialog(dialog1) appears little bigger than the dialog2. Can somebody help me out solving this problem. Code is written using pure SDK.(no MFC). Thanks in advance.

    Appu.. "My blood group is not B+.But I have it my blood"

    N 1 Reply Last reply
    0
    • N NiceNaidu fo

      Hi friends, I have two dialogs . dialog1 has the following styles DS_MODALFRAME | WS_POPUP |WS_CAPTION |WS_BORDER dialog2 has the following styles DS_MODALFRAME | WS_POPUP. Dialog 1 is placed exactly on the top of Dialog 2. These two dialogs are aligned in a way that they appear as a single dialog. Things are working fine in all the windows operating systems(except Vista) But in Vista, The alignment is lost. The top dialog(dialog1) appears little bigger than the dialog2. Can somebody help me out solving this problem. Code is written using pure SDK.(no MFC). Thanks in advance.

      Appu.. "My blood group is not B+.But I have it my blood"

      N Offline
      N Offline
      NiceNaidu fo
      wrote on last edited by
      #2

      Friends... Atlast i fixed the problem. This is due to the code GetSystemMetrics(SM_CXFRAME) in Vista is returning 8,where as in the older version, It is returning 4. I am sharing this info for all those who come across this kind of problems.

      Appu.. "My blood group is not B+.But I have it my blood"

      P 1 Reply Last reply
      0
      • N NiceNaidu fo

        Friends... Atlast i fixed the problem. This is due to the code GetSystemMetrics(SM_CXFRAME) in Vista is returning 8,where as in the older version, It is returning 4. I am sharing this info for all those who come across this kind of problems.

        Appu.. "My blood group is not B+.But I have it my blood"

        P Offline
        P Offline
        prasad_som
        wrote on last edited by
        #3

        You can probaly repost it in subtle bugs[^] section.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        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