git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24971
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Most of these are in MSVC++6.0 <wx\wince\winuser.h>
see also <wx\msw\gnuwin32\winresrc.h>
*/
Most of these are in MSVC++6.0 <wx\wince\winuser.h>
see also <wx\msw\gnuwin32\winresrc.h>
*/
+
+// ----------------------------------------------------------------------------
+// Used in msgdlg.cpp, evtloop.cpp
+// ----------------------------------------------------------------------------
+
+#ifndef MB_TASKMODAL
+#define MB_TASKMODAL 0x2000
+#endif
+
////////////////////////////////////////////////////////
// JACS: I've commented these out in order to start from
////////////////////////////////////////////////////////
// JACS: I've commented these out in order to start from
#endif // !UNICODE
#endif
#endif // !UNICODE
#endif
////////////////////////////////////////////////////////
////////////////////////////////////////////////////////
#include "wx/msw/private.h"
#include "wx/msw/private.h"
+// For MB_TASKMODAL
+#ifdef __WXWINCE__
+#include "wx/msw/wince/missing.h"
+#endif
+
#if wxUSE_THREADS
#include "wx/thread.h"
#if wxUSE_THREADS
#include "wx/thread.h"
#include "wx/msw/private.h"
#include "wx/msw/private.h"
+// For MB_TASKMODAL
+#ifdef __WXWINCE__
+#include "wx/msw/wince/missing.h"
+#endif
+
IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
wxMessageDialog::wxMessageDialog(wxWindow *parent,
IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
wxMessageDialog::wxMessageDialog(wxWindow *parent,
if (hWnd)
msStyle |= MB_APPLMODAL;
if (hWnd)
msStyle |= MB_APPLMODAL;
else
msStyle |= MB_TASKMODAL;
else
msStyle |= MB_TASKMODAL;
// do show the dialog
int msAns = MessageBox(hWnd, m_message.c_str(), m_caption.c_str(), msStyle);
// do show the dialog
int msAns = MessageBox(hWnd, m_message.c_str(), m_caption.c_str(), msStyle);
wstyle |= TVS_CHECKBOXES;
#endif // wxUSE_CHECKBOXES_IN_MULTI_SEL_TREE
wstyle |= TVS_CHECKBOXES;
#endif // wxUSE_CHECKBOXES_IN_MULTI_SEL_TREE
// Need so that TVN_GETINFOTIP messages will be sent
wstyle |= TVS_INFOTIP;
// Need so that TVN_GETINFOTIP messages will be sent
wstyle |= TVS_INFOTIP;
// Create the tree control.
if ( !MSWCreateControl(WC_TREEVIEW, wstyle) )
// Create the tree control.
if ( !MSWCreateControl(WC_TREEVIEW, wstyle) )
// These *must* not be removed or TVN_GETINFOTIP will
// not be processed each time the mouse is moved
// and the tooltip will only ever update once.
// These *must* not be removed or TVN_GETINFOTIP will
// not be processed each time the mouse is moved
// and the tooltip will only ever update once.
case TVN_GETDISPINFO:
eventType = wxEVT_COMMAND_TREE_GET_INFO;
case TVN_GETDISPINFO:
eventType = wxEVT_COMMAND_TREE_GET_INFO;
case TVN_GETINFOTIP:
{
// If the user permitted a tooltip change, change it
case TVN_GETINFOTIP:
{
// If the user permitted a tooltip change, change it
case TVN_SELCHANGING:
case TVN_ITEMEXPANDING:
case TVN_SELCHANGING:
case TVN_ITEMEXPANDING: