Z-order of parent
-
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.
-
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.
BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags)
is a methode ofCWnd
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 -
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.
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
-
BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags)
is a methode ofCWnd
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 -
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
;) SkyWalker