Hi guys,
I'm doing something like this:
WM_CREATE:
if(!initialize()){
// fatal error
// MessageBox(...);
// here I should terminate the program
}
What's the best way to handle something like that ?
Thanks.
Printable View
Hi guys,
I'm doing something like this:
WM_CREATE:
if(!initialize()){
// fatal error
// MessageBox(...);
// here I should terminate the program
}
What's the best way to handle something like that ?
Thanks.
According to MSDN in this case your procedure has to return -1 to destroy the window and case the CreateWindowEx or CreateWindow function returns a NULL handle.