Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: arraylist Pin
N a v a n e e t h9-Aug-07 2:16
N a v a n e e t h9-Aug-07 2:16 
QuestionGDI Drawing over controls Pin
aparsons_cp9-Aug-07 2:00
aparsons_cp9-Aug-07 2:00 
AnswerRe: GDI Drawing over controls Pin
Luc Pattyn9-Aug-07 2:17
sitebuilderLuc Pattyn9-Aug-07 2:17 
GeneralRe: GDI Drawing over controls Pin
Martin#9-Aug-07 2:21
Martin#9-Aug-07 2:21 
GeneralRe: GDI Drawing over controls Pin
Luc Pattyn9-Aug-07 2:32
sitebuilderLuc Pattyn9-Aug-07 2:32 
GeneralRe: GDI Drawing over controls Pin
Martin#9-Aug-07 2:41
Martin#9-Aug-07 2:41 
GeneralRe: GDI Drawing over controls Pin
aparsons_cp14-Aug-07 2:30
aparsons_cp14-Aug-07 2:30 
GeneralRe: GDI Drawing over controls Pin
aparsons_cp15-Aug-07 23:21
aparsons_cp15-Aug-07 23:21 
It would be helpful if I could find the part of the form/window that is actually visible at anytime and not partly obscured by other windows. DrawReversibleLine as it uses screen coordinates doesn't seems to draw right over them. Normally this would not happen but my application responds to a timer tick so paining and graphic update activity takes place when the window does not have the focus.

I have scoured the forums and sites for anything I can find on the subject but it seems that the only way to get the shape of the visible part of the window or indeed to find out if it has been partly obscured is to go through the list of all the windows on the desktop and check their details. It seems that the actual window/form itself does not know when it has been obscured.
Have found a couple of people who have had exactly the same query over the years but the thread just stopped. So perhaps they found the answer and did not log it, or realised it was insoluble (not really just complex and laborious) and did it another way.

I'm going probably going to draw on a transparent panel or directly over the form which works and politely observes the boundaries of other windows. It just involves more painting and work for the operating system whereas DrawReversibleLine just draws and undraws over the screen.

Thanks for the replies and the additional info, I feel like Edison I now know tons of ways that will not work and like Sherlock Holmes what is left is what I must use.

The couple of questions that remain are:
1) How does one get the visible region of a partly obscured window?
2) Can a window detect when it is being obscured?

Kind Regards,
Andrew Parsons (UK)

GeneralRe: GDI Drawing over controls Pin
Luc Pattyn16-Aug-07 1:26
sitebuilderLuc Pattyn16-Aug-07 1:26 
GeneralRe: GDI Drawing over controls Pin
JVilmaire19-Aug-07 15:13
JVilmaire19-Aug-07 15:13 
GeneralRe: GDI Drawing over controls Pin
Luc Pattyn19-Aug-07 22:31
sitebuilderLuc Pattyn19-Aug-07 22:31 
QuestionHelp regarding timer control Pin
anu819-Aug-07 1:42
anu819-Aug-07 1:42 
AnswerRe: Help regarding timer control Pin
kubben9-Aug-07 1:48
kubben9-Aug-07 1:48 
GeneralRe: Help regarding timer control Pin
anu819-Aug-07 2:43
anu819-Aug-07 2:43 
GeneralRe: Help regarding timer control Pin
kubben9-Aug-07 6:04
kubben9-Aug-07 6:04 
AnswerRe: Help regarding timer control Pin
Martin#9-Aug-07 2:53
Martin#9-Aug-07 2:53 
GeneralRe: Help regarding timer control Pin
anu819-Aug-07 3:27
anu819-Aug-07 3:27 
GeneralRe: Help regarding timer control Pin
Martin#9-Aug-07 3:35
Martin#9-Aug-07 3:35 
AnswerRe: Help regarding timer control Pin
kubben9-Aug-07 6:06
kubben9-Aug-07 6:06 
QuestionCOM in C# Pin
Stevo Z9-Aug-07 1:30
Stevo Z9-Aug-07 1:30 
Questioncomparing image Pin
Xmen Real 9-Aug-07 1:26
professional Xmen Real 9-Aug-07 1:26 
AnswerRe: comparing image Pin
kubben9-Aug-07 1:50
kubben9-Aug-07 1:50 
QuestionSSL in Pop3 connection Pin
DKalepu9-Aug-07 1:16
DKalepu9-Aug-07 1:16 
AnswerRe: SSL in Pop3 connection Pin
m@u9-Aug-07 10:16
m@u9-Aug-07 10:16 
GeneralRe: SSL in Pop3 connection Pin
DKalepu9-Aug-07 19:24
DKalepu9-Aug-07 19:24 

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.