Author | Message | Time |
---|---|---|
Yegg | I'd like my dialog to close when it receives WM_CLOSE, so I have the following code: [code]case WM_CLOSE: EndDialog(hwnd, WM_CLOSE);[/code] But I've also noticed that If I were to do: [code]case WM_CLOSE: EndDialog(hwnd, 0);[/code] It seems to work just the same way, that is, it closed out the dialog without an issue. Is there a "right" way to do this or does it not matter? | January 22, 2006, 2:38 AM |
Skywing | The second parameter you pass to EndDialog is the value returned from DialogBox. It has no system-defined meaning. | January 22, 2006, 2:53 AM |
Yegg | Thanks Skywing, that's all I needed to know. | January 22, 2006, 3:02 AM |