wxWidget 2.8.4 on Vista
Julian Smart
julian at anthemion.co.uk
Sun Oct 7 08:12:39 PDT 2007
Xu, Ming (NIH/NLM/NCBI) [F] wrote:
> Exe was built on MS VC7.1 at Win XP.
>
Thanks. I've no idea what the problem is, but can you confirm that the
workaround is to always supply an icon to wxMessageBox?
For example, adding a final 'else' in src/msw/msgdlg.cpp:
if (wxStyle & wxICON_EXCLAMATION)
msStyle |= MB_ICONEXCLAMATION;
else if (wxStyle & wxICON_HAND)
msStyle |= MB_ICONHAND;
else if (wxStyle & wxICON_INFORMATION)
msStyle |= MB_ICONINFORMATION;
else if (wxStyle & wxICON_QUESTION)
msStyle |= MB_ICONQUESTION;
else
{
int majorVersion, minorVersion;
wxGetOsVersion(& majorVersion, & minorVersion);
if ( majorVersion >= 6 ) // Vista apparently requires an icon style
msStyle |= MB_ICONINFORMATION;
}
?
Thanks,
Julian
More information about the wx-users
mailing list