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. Z-order of parent

Z-order of parent

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • A Offline
    A Offline
    Ashman
    wrote on last edited by
    #1

    Hi, I am busting my brain trying to get my parent dialog to have topmost priority over a child dialog. I have a fullscreen child dialog that I want to sit behind the parent dlg but the parent is continuously behind it. I have used MSDN and tried SetWindowPos.... however, in MSDN library there are 7 parameters for this function.... When I use SetWindowPos, I only have 6? My SetWindowPos(); BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); MSDN SetWindowPos(); BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); Its starting to really confuse me.... if anyone can help, it would be greatly appreciated. Thanks Ashman I'm normally not a praying man, but if you're up there, please save me Superman.

    Mircea PuiuM T 2 Replies Last reply
    0
    • A Ashman

      Hi, I am busting my brain trying to get my parent dialog to have topmost priority over a child dialog. I have a fullscreen child dialog that I want to sit behind the parent dlg but the parent is continuously behind it. I have used MSDN and tried SetWindowPos.... however, in MSDN library there are 7 parameters for this function.... When I use SetWindowPos, I only have 6? My SetWindowPos(); BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); MSDN SetWindowPos(); BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); Its starting to really confuse me.... if anyone can help, it would be greatly appreciated. Thanks Ashman I'm normally not a praying man, but if you're up there, please save me Superman.

      Mircea PuiuM Offline
      Mircea PuiuM Offline
      Mircea Puiu
      wrote on last edited by
      #2

      BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) is a methode of CWnd class, so when calling it, it positions the object that is an instance of that class. ::SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) needs a parameter to identify the window to be positioned (hWnd) SkyWalker

      T 1 Reply Last reply
      0
      • A Ashman

        Hi, I am busting my brain trying to get my parent dialog to have topmost priority over a child dialog. I have a fullscreen child dialog that I want to sit behind the parent dlg but the parent is continuously behind it. I have used MSDN and tried SetWindowPos.... however, in MSDN library there are 7 parameters for this function.... When I use SetWindowPos, I only have 6? My SetWindowPos(); BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); MSDN SetWindowPos(); BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); Its starting to really confuse me.... if anyone can help, it would be greatly appreciated. Thanks Ashman I'm normally not a praying man, but if you're up there, please save me Superman.

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

        Ashman wrote: BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); this MFC based version of SetWindowPos.. here the Detail of current Window Handle is hidden from user ... oops concept :).. Ashman wrote: BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); this api version of SetWindowPos function.. now to access this function in mfc based application you have to use '::' scope resolution operator...

        "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

        1 Reply Last reply
        0
        • Mircea PuiuM Mircea Puiu

          BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) is a methode of CWnd class, so when calling it, it positions the object that is an instance of that class. ::SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) needs a parameter to identify the window to be positioned (hWnd) SkyWalker

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

          Mircea Puiu wrote: SkyWalker SkyWalker getting very Fast :)....

          "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

          Mircea PuiuM 1 Reply Last reply
          0
          • T ThatsAlok

            Mircea Puiu wrote: SkyWalker SkyWalker getting very Fast :)....

            "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

            Mircea PuiuM Offline
            Mircea PuiuM Offline
            Mircea Puiu
            wrote on last edited by
            #5

            ;) SkyWalker

            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