Click here to Skip to main content
15,881,139 members
Home / Discussions / C#
   

C#

 
AnswerRe: thank a lot. a problem about the muti-thread Pin
Christian Graus2-Nov-09 20:21
protectorChristian Graus2-Nov-09 20:21 
GeneralRe: thank a lot. a problem about the muti-thread Pin
scoket2-Nov-09 21:04
scoket2-Nov-09 21:04 
GeneralRe: thank a lot. a problem about the muti-thread Pin
Luc Pattyn3-Nov-09 1:00
sitebuilderLuc Pattyn3-Nov-09 1:00 
Questiontreeview control Pin
Member 5903102-Nov-09 19:31
Member 5903102-Nov-09 19:31 
AnswerRe: treeview control Pin
Christian Graus2-Nov-09 19:37
protectorChristian Graus2-Nov-09 19:37 
Question(ActiveWindow == DesktopWindow) Pin
JokerXtreme2-Nov-09 13:50
JokerXtreme2-Nov-09 13:50 
AnswerMessage Closed Pin
2-Nov-09 21:22
stancrm2-Nov-09 21:22 
QuestionRe: (ActiveWindow == DesktopWindow) Pin
JokerXtreme3-Nov-09 3:01
JokerXtreme3-Nov-09 3:01 
Thanx for the reply! Although I'm having quite some trouble converting it to C#.
This is where I've reached so far. For some reason it doesn't get by while (hWnd != IntPtr.Zero). As I've checked (hWnd == IntPtr.Zero) is always true.

<br />
            public static bool IsFullScreenMode()<br />
            {                <br />
                int w = GetSystemMetrics(SM_CXSCREEN);<br />
                int h = GetSystemMetrics(SM_CYSCREEN);<br />
<br />
                IntPtr hWnd = new IntPtr();<br />
<br />
                hWnd = FindWindowEx(GetDesktopWindow(), hWnd, null, null);<br />
                while (hWnd != IntPtr.Zero)<br />
                {<br />
                    if (GetWindowLong(hWnd, GWL_EXSTYLE) == WS_EX_TOPMOST)<br />
                    {<br />
                        RECT rcWindow;<br />
                        GetWindowRect(hWnd, out rcWindow);<br />
                        if ((w == (rcWindow.right - rcWindow.left)) && (h == (rcWindow.bottom - rcWindow.top)))<br />
                        {<br />
                            return true;<br />
                        }<br />
                    }<br />
                    hWnd = FindWindowEx(GetDesktopWindow(), hWnd, null, null);<br />
                }<br />
                return false;<br />
            }<br />


Would be glad if you could help
QuestionRe: (ActiveWindow == DesktopWindow) Pin
JokerXtreme3-Nov-09 8:16
JokerXtreme3-Nov-09 8:16 
AnswerRe: (ActiveWindow == DesktopWindow) Pin
JokerXtreme3-Nov-09 11:16
JokerXtreme3-Nov-09 11:16 
Question!!! HELP ME !!! Realize a vumeter for file audio Pin
uelfox2-Nov-09 13:13
uelfox2-Nov-09 13:13 
AnswerRe: !!! HELP ME !!! Realize a vumeter for file audio Pin
Christian Graus2-Nov-09 13:45
protectorChristian Graus2-Nov-09 13:45 
AnswerRe: !!! HELP ME !!! Realize a vumeter for file audio Pin
The Man from U.N.C.L.E.2-Nov-09 23:58
The Man from U.N.C.L.E.2-Nov-09 23:58 
Questionms char and contour surface plot Pin
ThorTheBraveGod2-Nov-09 11:25
ThorTheBraveGod2-Nov-09 11:25 
AnswerRe: ms char and contour surface plot Pin
Christian Graus2-Nov-09 11:40
protectorChristian Graus2-Nov-09 11:40 
GeneralRe: ms char and contour surface plot Pin
ThorTheBraveGod3-Nov-09 4:49
ThorTheBraveGod3-Nov-09 4:49 
AnswerRe: ms char and contour surface plot Pin
Super Lloyd2-Nov-09 14:08
Super Lloyd2-Nov-09 14:08 
GeneralRe: ms char and contour surface plot Pin
ThorTheBraveGod3-Nov-09 4:48
ThorTheBraveGod3-Nov-09 4:48 
QuestionProgrammatically launch wifi settings dialogs in Windows 7 Pin
David Knechtges2-Nov-09 10:08
David Knechtges2-Nov-09 10:08 
AnswerRe: Programmatically launch wifi settings dialogs in Windows 7 Pin
Christian Graus2-Nov-09 10:09
protectorChristian Graus2-Nov-09 10:09 
GeneralRe: Programmatically launch wifi settings dialogs in Windows 7 Pin
David Knechtges2-Nov-09 10:31
David Knechtges2-Nov-09 10:31 
Questionencryption Pin
jashimu2-Nov-09 8:31
jashimu2-Nov-09 8:31 
AnswerRe: encryption Pin
Christian Graus2-Nov-09 9:02
protectorChristian Graus2-Nov-09 9:02 
GeneralRe: encryption Pin
jashimu2-Nov-09 9:11
jashimu2-Nov-09 9:11 
GeneralRe: encryption Pin
netJP12L2-Nov-09 10:19
netJP12L2-Nov-09 10:19 

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.