Click here to Skip to main content
15,907,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCDataGrid with GetValue Pin
vancouver77711-Nov-03 7:29
vancouver77711-Nov-03 7:29 
GeneralThreas Pin
VietDelphi11-Nov-03 6:19
VietDelphi11-Nov-03 6:19 
GeneralRe: Threads Pin
David Crow11-Nov-03 7:19
David Crow11-Nov-03 7:19 
GeneralRe: Threads Pin
VietDelphi11-Nov-03 7:34
VietDelphi11-Nov-03 7:34 
GeneralRe: Threads Pin
David Crow11-Nov-03 7:38
David Crow11-Nov-03 7:38 
GeneralRe: Threads Pin
VietDelphi11-Nov-03 7:52
VietDelphi11-Nov-03 7:52 
GeneralPalette window Z order Pin
srev11-Nov-03 5:33
srev11-Nov-03 5:33 
GeneralRe: Palette window Z order Pin
Antti Keskinen11-Nov-03 7:01
Antti Keskinen11-Nov-03 7:01 
The extended style WM_EX_TOPMOST (Part of WM_EX_PALETTEWINDOW) causes the palette window to be ALWAYS on top Z order, like stated in the Reference.

To overcome this problem, remove the style flag, and always when you create new dialogs or windows, or a window of your choice has focus, use SetWindowPos to place it's Z-order.

For example, when user opens your application, after the window objects are created but before they are shown, you place them with subsequent calls to SetWindowPos member methods to place their Z-orders in the way you please. Or, when your mainframe gets focus, you place the mainframe window under the palette window. Simple.

Again, when user clicks on the button to create the File Open dialog, then first position the windows, then create the dialog and make it modal to the application. This way it will always be on top of your app.

The key is to reposition the windows always when something, which would change the window display order, happens (Like gaining/losing focus, modal messageboxes/dialogs etc)

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Palette window Z order Pin
srev11-Nov-03 9:12
srev11-Nov-03 9:12 
GeneralRe: Palette window Z order Pin
srev11-Nov-03 11:55
srev11-Nov-03 11:55 
GeneralRe: Palette window Z order Pin
Antti Keskinen11-Nov-03 22:22
Antti Keskinen11-Nov-03 22:22 
GeneralAscending order Pin
iasaber11-Nov-03 4:37
iasaber11-Nov-03 4:37 
GeneralRe: Ascending order Pin
jhwurmbach11-Nov-03 4:49
jhwurmbach11-Nov-03 4:49 
GeneralRe: Ascending order Pin
iasaber11-Nov-03 5:35
iasaber11-Nov-03 5:35 
GeneralRe: Ascending order Pin
jhwurmbach11-Nov-03 5:50
jhwurmbach11-Nov-03 5:50 
GeneralRe: Ascending order Pin
David Crow11-Nov-03 5:55
David Crow11-Nov-03 5:55 
GeneralDialog in Console Application Pin
imranhabib11-Nov-03 4:18
imranhabib11-Nov-03 4:18 
GeneralRe: Dialog in Console Application Pin
Antti Keskinen11-Nov-03 6:53
Antti Keskinen11-Nov-03 6:53 
GeneralRe: Dialog in Console Application Pin
imranhabib11-Nov-03 10:46
imranhabib11-Nov-03 10:46 
GeneralRe: Dialog in Console Application Pin
Antti Keskinen11-Nov-03 22:10
Antti Keskinen11-Nov-03 22:10 
QuestionHow to Change CDialogBar Background Pin
asierra11-Nov-03 4:17
asierra11-Nov-03 4:17 
Generalmouse cursor in console application Pin
imranhabib11-Nov-03 4:16
imranhabib11-Nov-03 4:16 
GeneralRe: mouse cursor in console application Pin
David Crow11-Nov-03 5:58
David Crow11-Nov-03 5:58 
GeneralRe: mouse cursor in console application Pin
Alvaro Mendez11-Nov-03 6:01
Alvaro Mendez11-Nov-03 6:01 
GeneralRe: mouse cursor in console application Pin
imranhabib11-Nov-03 11:09
imranhabib11-Nov-03 11:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.