unsigned int msStyle = MB_OK;
if (m_dialogStyle & wxYES_NO)
{
-#if !defined(__SMARTPHONE__)
+#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
if (m_dialogStyle & wxCANCEL)
msStyle = MB_YESNOCANCEL;
else
-#endif // __SMARTPHONE__
+#endif // !(__SMARTPHONE__ && __WXWINCE__)
msStyle = MB_YESNO;
if (m_dialogStyle & wxNO_DEFAULT)