I don't know the mean of -1
In the function  'EndDialog'  ,the second parameter should be >0
why there is -1?
Posted on 2007-03-10 02:48:01 by hero liu
From MSDN

BOOL EndDialog(          HWND hDlg,
    INT_PTR nResult
);
Parameters

hDlg
Handle to the dialog box to be destroyed.
nResult
Specifies the value to be returned to the application from the function that created the dialog box.
Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.


Remember that -1 = 0FFFFFFFFh

Regards

Biterider
Posted on 2007-03-10 03:41:01 by Biterider
:) Thanks a lot
Posted on 2007-03-11 23:59:31 by hero liu