Dialog on top of another application [modified]
-
we have developed an application say "A"(form view) where in it hides the entire desktop area(restricting windows access). Title bar has been hidden. Now we are invoking another dialog based application say "B"using shellexecute through the above mentioned application. As I can see a little gap on left and bottom of the application "A" which can't be covered, and if I perform mouse click over there the invoked application "B" goes back(as per our requirement which shouldn't go back). Please suggest me how can I handle such situation
modified on Monday, January 12, 2009 1:25 AM
-
we have developed an application say "A"(form view) where in it hides the entire desktop area(restricting windows access). Title bar has been hidden. Now we are invoking another dialog based application say "B"using shellexecute through the above mentioned application. As I can see a little gap on left and bottom of the application "A" which can't be covered, and if I perform mouse click over there the invoked application "B" goes back(as per our requirement which shouldn't go back). Please suggest me how can I handle such situation
modified on Monday, January 12, 2009 1:25 AM
You can use of this code
SetWindowPos(&hwndTopmost, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOZORDER);
but for more info see Makes any windows "Always On Top"[^] Keep your Window Always On Top[^].Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
we have developed an application say "A"(form view) where in it hides the entire desktop area(restricting windows access). Title bar has been hidden. Now we are invoking another dialog based application say "B"using shellexecute through the above mentioned application. As I can see a little gap on left and bottom of the application "A" which can't be covered, and if I perform mouse click over there the invoked application "B" goes back(as per our requirement which shouldn't go back). Please suggest me how can I handle such situation
modified on Monday, January 12, 2009 1:25 AM
Hamid has a good idea. Another alternative is to make B.exe create a full screen, but transparent window - then have CBDlg be a child of that. Lastly - assuming you're creating both of these applications, you could called B.exe with a parent that can be decoded into a window handle which you then use as the parent window for B.exe. This is how screen savers work - no parameter means full screen saving. Control panel calls them with various parameters for preview, draw in little window or configuration dialog box - all with a window handle passed as a parameter. Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
-
Hamid has a good idea. Another alternative is to make B.exe create a full screen, but transparent window - then have CBDlg be a child of that. Lastly - assuming you're creating both of these applications, you could called B.exe with a parent that can be decoded into a window handle which you then use as the parent window for B.exe. This is how screen savers work - no parameter means full screen saving. Control panel calls them with various parameters for preview, draw in little window or configuration dialog box - all with a window handle passed as a parameter. Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
Thank you