dialog creation function should be extern C
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -113,11 +113,16 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
|||||||
SetMessageDialogStyle(style);
|
SetMessageDialogStyle(style);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
typedef Widget (*DialogCreateFunction)(Widget, String, ArgList, Cardinal);
|
||||||
|
}
|
||||||
|
|
||||||
int wxMessageDialog::ShowModal()
|
int wxMessageDialog::ShowModal()
|
||||||
{
|
{
|
||||||
Widget (*dialogCreateFunction)(Widget, String, ArgList, Cardinal) = NULL;
|
|
||||||
const long style = GetMessageDialogStyle();
|
const long style = GetMessageDialogStyle();
|
||||||
|
|
||||||
|
DialogCreateFunction dialogCreateFunction;
|
||||||
if ( style & wxYES_NO )
|
if ( style & wxYES_NO )
|
||||||
{
|
{
|
||||||
// if we have [Yes], it must be a question
|
// if we have [Yes], it must be a question
|
||||||
|
Reference in New Issue
Block a user