Click here to Skip to main content
16,017,069 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VSS has me concerned.... Pin
charlieg23-Aug-05 10:42
charlieg23-Aug-05 10:42 
GeneralRe: VSS has me concerned.... Pin
Taka Muraoka23-Aug-05 16:00
Taka Muraoka23-Aug-05 16:00 
GeneralRe: VSS has me concerned.... Pin
Peter Weyzen23-Aug-05 11:15
Peter Weyzen23-Aug-05 11:15 
GeneralRe: VSS has me concerned.... Pin
Graham Bradshaw23-Aug-05 13:12
Graham Bradshaw23-Aug-05 13:12 
GeneralRe: VSS has me concerned.... Pin
charlieg23-Aug-05 14:13
charlieg23-Aug-05 14:13 
GeneralRe: VSS has me concerned.... Pin
charlieg23-Aug-05 16:34
charlieg23-Aug-05 16:34 
Generaldisplay images Pin
Aditya Rao23-Aug-05 7:41
Aditya Rao23-Aug-05 7:41 
QuestionHow to write Z-Order manager? Pin
dy1323-Aug-05 6:47
dy1323-Aug-05 6:47 
Hi, I am writing a program where I need to keep a dozen modeless dialogs in a specific z-order (Dlg1 is always behind Dlg2, which is always behind 3, etc..) This concept is similar to layers in powerpoint or photoshop except I want to do it with dialog windows.

First I set up an int array which indexed the order I wanted (so 3,2,4,1 would be Dlg3 behind Dlg2...) Then I set up on all the dialogs:
SetWindowPos(prevWnd, x,y,0,0 SWP_NOSIZE|SWP_NOACTIVATE);
where prevWnd is found by looking up the id in the array.

However, this does not work as when I click on a dialog, it always activates the dialog I clicked on and move its z-order in unexpected ways. (So I don't even know what SWP_NOACTIVATE does exactly.)

I tried using the SWP_NOZORDER style within the Dialog class but then the dialog is always brought to the foreground if I click on it.

How would I write a z-order manager that will always "lock" my dialog windows in a specific z-order?

Also a very simple question, what does the pWndInsertAfter in the SetWindowPos mean exactly? Is the pwia in FRONT or in BACK of the target window? because it always seem to change in my program. Thanks!
AnswerRe: How to write Z-Order manager? Pin
Alexander M.,23-Aug-05 15:07
Alexander M.,23-Aug-05 15:07 
GeneralSending keys to another program / SendInput() Pin
al_in_the_city23-Aug-05 6:38
al_in_the_city23-Aug-05 6:38 
GeneralRe: Sending keys to another program / SendInput() Pin
David Crow23-Aug-05 6:55
David Crow23-Aug-05 6:55 
GeneralRe: Sending keys to another program / SendInput() Pin
al_in_the_city23-Aug-05 8:59
al_in_the_city23-Aug-05 8:59 
GeneralRe: Sending keys to another program / SendInput() Pin
David Crow23-Aug-05 10:30
David Crow23-Aug-05 10:30 
GeneralRe: Sending keys to another program / SendInput() Pin
Alexander M.,23-Aug-05 15:10
Alexander M.,23-Aug-05 15:10 
GeneralRe: Sending keys to another program / SendInput() Pin
Axter23-Aug-05 23:08
professionalAxter23-Aug-05 23:08 
GeneralPreviewing Pin
mikobi23-Aug-05 6:29
mikobi23-Aug-05 6:29 
GeneralPrinting to Outlook Pin
mikobi23-Aug-05 6:14
mikobi23-Aug-05 6:14 
GeneralRe: Printing to Outlook Pin
David Crow23-Aug-05 6:56
David Crow23-Aug-05 6:56 
GeneralPrinting to Outlook Pin
mikobi23-Aug-05 6:12
mikobi23-Aug-05 6:12 
GeneralRe: Printing to Outlook Pin
Alexander M.,23-Aug-05 15:11
Alexander M.,23-Aug-05 15:11 
GeneralPrinting Pin
mikobi23-Aug-05 6:07
mikobi23-Aug-05 6:07 
GeneralRe: Printing Pin
David Crow23-Aug-05 6:57
David Crow23-Aug-05 6:57 
GeneralRe: Printing Pin
mikobi24-Aug-05 2:21
mikobi24-Aug-05 2:21 
GeneralRe: Printing Pin
David Crow24-Aug-05 2:46
David Crow24-Aug-05 2:46 
GeneralRe: Printing Pin
mikobi24-Aug-05 3:23
mikobi24-Aug-05 3:23 

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.