PDA

View Full Version : ISHELL_CreateDialog fail


jmding
04-11-2002, 07:04 PM
I used ISHELL_CreateDialog to create a dialog but failed in the cppapp example. The error value is 1.

chouprog
10-09-2002, 09:55 AM
In YourApp_HandleEvent function, process or at least return TRUE for the following events:


case EVT_DIALOG_START:
return TRUE;
case EVT_DIALOG_INIT:
return TRUE;
case EVT_DIALOG_END:
return TRUE;

Missing this step can cause ISHELL_CreateDialog returns E_FAILED.

meta4m
12-26-2002, 08:42 AM
Glad I looked here! The docs don't mention this, AFAICT.

Thanks!