|
From: andrew7 <bd...@us...> - 2007-01-07 18:53:15
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin/widgets In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv8474/include/smartwin/widgets Modified Files: WidgetDialog.h Log Message: Add exception if CreateDialogParam fails. Index: WidgetDialog.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetDialog.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- WidgetDialog.h 5 May 2006 17:14:42 -0000 1.11 +++ WidgetDialog.h 7 Jan 2007 18:53:12 -0000 1.12 @@ -84,6 +84,12 @@ ( this->Widget::itsParent ? this->Widget::itsParent->handle() : 0 ), ( WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyModalDialogWidget >::mainWndProc_ ), reinterpret_cast< LPARAM >( boost::polymorphic_cast< Widget * >( this ) ) ); + + if ( !this->Widget::itsHandle ) { + xCeption x( _T( "CreateDialogParam failed." ) ); + throw x; + } + Widget::registerWidget(); } |