Click here to Skip to main content
15,910,211 members
Home / Discussions / C#
   

C#

 
GeneralRe: Socket Programming Pin
Rahul Babu29-Mar-07 19:32
Rahul Babu29-Mar-07 19:32 
GeneralRe: Socket Programming Pin
Colin Angus Mackay29-Mar-07 21:06
Colin Angus Mackay29-Mar-07 21:06 
GeneralRe: Socket Programming Pin
Sendilkumar.M30-Mar-07 1:39
Sendilkumar.M30-Mar-07 1:39 
GeneralRe: Socket Programming Pin
Sendilkumar.M30-Mar-07 1:41
Sendilkumar.M30-Mar-07 1:41 
QuestionMerging C++ and C# Pin
vivram29-Mar-07 18:07
vivram29-Mar-07 18:07 
AnswerRe: Merging C++ and C# Pin
N a v a n e e t h29-Mar-07 18:12
N a v a n e e t h29-Mar-07 18:12 
GeneralRe: Merging C++ and C# Pin
vivram29-Mar-07 18:33
vivram29-Mar-07 18:33 
QuestionWindow Z-order Pin
gauntalus29-Mar-07 17:44
gauntalus29-Mar-07 17:44 
Hi,

I'm currently working on a Virtual Desktop Manager for Windows Vista that uses the DWM to allow for real-time previews of each of your desktops (Not the same one as on codeplex).

Anyway, everythings working great, except for window Z-ordering. When I switch to a new desktop, I hide all windows on the current desktop by first setting their opacity to 0 by calling SetLayeredWindowAttributes() via P/Invoke, and then setting the window style to ToolWindow using SetWindowLong() also via P/Invoke. This effectively hides the window from flip3d, alt+tab, and the taskbar.

The problem is this, when I bring the windows back, they are often in a different Z-order than when I hid them. I've tried hiding them in the correct Z-order rather than the order their stored in my container, I've also tried showing them by their Z-order (all Z-orders attained using GetWindow()) but they still seem to end up in random whacky orders.

Is this something that other people have dealt with? And if anyone knows, what actually determines their Z-order when displayed on the screen, does it have anything to do with the order in which I set their opacities back to 255 or the order in which I change them back from ToolWindows to their remembered actual styles?

Thanks in advance, I realize this is sort of a strange topic.

-Mike
QuestionHow can I check if a string is numeric before actually converting it to a number? [modified] Pin
cateyes9929-Mar-07 17:03
cateyes9929-Mar-07 17:03 
AnswerRe: Can I check if a string is numeric before actually converting it? Pin
Christian Graus29-Mar-07 17:13
protectorChristian Graus29-Mar-07 17:13 
GeneralRe: Can I check if a string is numeric before actually converting it? Pin
cateyes9929-Mar-07 17:41
cateyes9929-Mar-07 17:41 
GeneralRe: Can I check if a string is numeric before actually converting it? Pin
mav.northwind29-Mar-07 19:15
mav.northwind29-Mar-07 19:15 
GeneralRe: Can I check if a string is numeric before actually converting it? Pin
cateyes9929-Mar-07 19:41
cateyes9929-Mar-07 19:41 
GeneralRe: Can I check if a string is numeric before actually converting it? Pin
Martin#29-Mar-07 19:46
Martin#29-Mar-07 19:46 
GeneralRe: Can I check if a string is numeric before actually converting it? Pin
cateyes994-Oct-07 16:15
cateyes994-Oct-07 16:15 
QuestionLoading custom controls from dll dynamically at runtime? Pin
irrdev29-Mar-07 16:16
irrdev29-Mar-07 16:16 
AnswerRe: Loading custom controls from dll dynamically at runtime? Pin
Patrick Etc.29-Mar-07 20:48
Patrick Etc.29-Mar-07 20:48 
QuestionGraphics... Pin
max2929729-Mar-07 14:06
max2929729-Mar-07 14:06 
AnswerRe: Graphics... Pin
Vasudevan Deepak Kumar29-Mar-07 14:09
Vasudevan Deepak Kumar29-Mar-07 14:09 
AnswerRe: Graphics... Pin
Christian Graus29-Mar-07 15:30
protectorChristian Graus29-Mar-07 15:30 
QuestionFiles Pin
max2929729-Mar-07 14:03
max2929729-Mar-07 14:03 
AnswerRe: Files Pin
Vasudevan Deepak Kumar29-Mar-07 14:10
Vasudevan Deepak Kumar29-Mar-07 14:10 
AnswerRe: Files Pin
blackjack215029-Mar-07 23:33
blackjack215029-Mar-07 23:33 
QuestionAccessing MDI parent controls through child forms, Pin
Neo_Shehpar29-Mar-07 13:46
Neo_Shehpar29-Mar-07 13:46 
AnswerRe: Accessing MDI parent controls through child forms, [modified] Pin
Tirthadip29-Mar-07 19:29
Tirthadip29-Mar-07 19:29 

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.