Click here to Skip to main content
16,005,552 members
Home / Discussions / C#
   

C#

 
GeneralFormat Time Pin
Nick Parker10-May-02 5:35
protectorNick Parker10-May-02 5:35 
GeneralRe: Format Time Pin
Neil Van Note10-May-02 9:09
Neil Van Note10-May-02 9:09 
GeneralRe: Format Time Pin
Nick Parker10-May-02 18:23
protectorNick Parker10-May-02 18:23 
QuestionMake a control a child of the Desktop? Pin
Rocky Moore9-May-02 22:25
Rocky Moore9-May-02 22:25 
AnswerRe: Make a control a child of the Desktop? Pin
Nish Nishant11-May-02 1:24
sitebuilderNish Nishant11-May-02 1:24 
GeneralRe: Make a control a child of the Desktop? Pin
Daniel Turini11-May-02 1:54
Daniel Turini11-May-02 1:54 
GeneralRe: Make a control a child of the Desktop? Pin
Nish Nishant11-May-02 3:33
sitebuilderNish Nishant11-May-02 3:33 
GeneralRe: Make a control a child of the Desktop? Pin
Neil Van Note11-May-02 8:51
Neil Van Note11-May-02 8:51 
Nish,

There is no reason to slam people for asking a question. Educate me, which functions that return window handles return something other than NULL to indicate a failure.

Like I mentioned above, IsWindow is a much safer check, as the documentation for GetDesktopWindow doesn't indicate it could fail. I wonder what this returns for a process that is running in a state where there is no desktop?

In addition, HWND_DESKTOP, which is defined as ((HWND)0), fails IsWindow(HWND_DESKTOP) under Windows XP Pro. I haven't checked Windows 2000 yet.

Regards

GeneralRe: Make a control a child of the Desktop? Pin
Nish Nishant11-May-02 14:23
sitebuilderNish Nishant11-May-02 14:23 
GeneralRe: Make a control a child of the Desktop? Pin
Neil Van Note11-May-02 8:00
Neil Van Note11-May-02 8:00 
GeneralRe: Make a control a child of the Desktop? Pin
Neil Van Note11-May-02 7:02
Neil Van Note11-May-02 7:02 
GeneralRe: Make a control a child of the Desktop? Pin
Corto Maltese11-May-02 9:43
Corto Maltese11-May-02 9:43 
GeneralRe: Make a control a child of the Desktop? Pin
Nish Nishant11-May-02 14:26
sitebuilderNish Nishant11-May-02 14:26 
GeneralRe: Make a control a child of the Desktop? Pin
Corto Maltese11-May-02 16:54
Corto Maltese11-May-02 16:54 
GeneralRe: Make a control a child of the Desktop? Pin
Rocky Moore11-May-02 9:46
Rocky Moore11-May-02 9:46 
GeneralRe: Make a control a child of the Desktop? Pin
Rama Krishna Vavilala11-May-02 9:49
Rama Krishna Vavilala11-May-02 9:49 
GeneralRe: Make a control a child of the Desktop? Pin
Rocky Moore11-May-02 10:00
Rocky Moore11-May-02 10:00 
GeneralRe: Make a control a child of the Desktop? Pin
Rama Krishna Vavilala11-May-02 9:56
Rama Krishna Vavilala11-May-02 9:56 
GeneralRe: Make a control a child of the Desktop? Pin
Rocky Moore11-May-02 10:14
Rocky Moore11-May-02 10:14 
GeneralRe: Make a control a child of the Desktop? Pin
Neil Van Note11-May-02 11:02
Neil Van Note11-May-02 11:02 
GeneralRe: Make a control a child of the Desktop? Pin
Rama Krishna Vavilala11-May-02 11:14
Rama Krishna Vavilala11-May-02 11:14 
GeneralRe: Make a control a child of the Desktop? Pin
Nish Nishant11-May-02 14:29
sitebuilderNish Nishant11-May-02 14:29 
GeneralRe: Make a control a child of the Desktop? Pin
Rocky Moore11-May-02 14:31
Rocky Moore11-May-02 14:31 
GeneralRe: Make a control a child of the Desktop? Pin
Neil Van Note11-May-02 17:53
Neil Van Note11-May-02 17:53 
GeneralRe: Make a control a child of the Desktop? Pin
Nish Nishant11-May-02 18:14
sitebuilderNish Nishant11-May-02 18:14 

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.