git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28827
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void SetHACCEL(WXHACCEL hAccel);
WXHACCEL GetHACCEL() const;
void SetHACCEL(WXHACCEL hAccel);
WXHACCEL GetHACCEL() const;
- // translate the accelerator, return TRUE if done
+ // translate the accelerator, return true if done
bool Translate(wxWindow *window, WXMSG *msg) const;
private:
bool Translate(wxWindow *window, WXMSG *msg) const;
private:
virtual bool Initialize(int& argc, wxChar **argv);
virtual void CleanUp();
virtual bool Initialize(int& argc, wxChar **argv);
virtual void CleanUp();
- virtual bool Yield(bool onlyIfNeeded = FALSE);
+ virtual bool Yield(bool onlyIfNeeded = false);
virtual void WakeUpIdle();
virtual void SetPrintMode(int mode) { m_printMode = mode; }
virtual void WakeUpIdle();
virtual void SetPrintMode(int mode) { m_printMode = mode; }
static bool UnregisterWindowClasses();
#if wxUSE_RICHEDIT
static bool UnregisterWindowClasses();
#if wxUSE_RICHEDIT
- // initialize the richedit DLL of (at least) given version, return TRUE if
+ // initialize the richedit DLL of (at least) given version, return true if
// ok (Win95 has version 1, Win98/NT4 has 1 and 2, W2K has 3)
static bool InitRichEdit(int version = 2);
#endif // wxUSE_RICHEDIT
// ok (Win95 has version 1, Win98/NT4 has 1 and 2, W2K has 3)
static bool InitRichEdit(int version = 2);
#endif // wxUSE_RICHEDIT
wxAcceleratorRefData::wxAcceleratorRefData()
{
wxAcceleratorRefData::wxAcceleratorRefData()
{
}
#endif // wxUSE_UNICODE && !wxUSE_UNICODE_MSLU
}
#endif // wxUSE_UNICODE && !wxUSE_UNICODE_MSLU
wxWinHandleHash = new wxWinHashTable(wxKEY_INTEGER, 100);
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
wxWinHandleHash = new wxWinHashTable(wxKEY_INTEGER, 100);
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
- wxSetKeyboardHook(TRUE);
+ wxSetKeyboardHook(true);
#endif
callBaseCleanup.Dismiss();
#endif
callBaseCleanup.Dismiss();
wxLogLastError(wxT("RegisterClass(no redraw MDI child)"));
}
wxLogLastError(wxT("RegisterClass(no redraw MDI child)"));
}
}
// ---------------------------------------------------------------------------
}
// ---------------------------------------------------------------------------
bool wxApp::UnregisterWindowClasses()
{
bool wxApp::UnregisterWindowClasses()
{
#ifndef __WXMICROWIN__
// MDI frame window class.
#ifndef __WXMICROWIN__
// MDI frame window class.
{
wxLogLastError(wxT("UnregisterClass(MDI parent)"));
{
wxLogLastError(wxT("UnregisterClass(MDI parent)"));
}
// "no redraw" MDI frame
}
// "no redraw" MDI frame
{
wxLogLastError(wxT("UnregisterClass(no redraw MDI parent frame)"));
{
wxLogLastError(wxT("UnregisterClass(no redraw MDI parent frame)"));
}
// MDI child frame window class.
}
// MDI child frame window class.
{
wxLogLastError(wxT("UnregisterClass(MDI child)"));
{
wxLogLastError(wxT("UnregisterClass(MDI child)"));
}
// "no redraw" MDI child frame
}
// "no redraw" MDI child frame
{
wxLogLastError(wxT("UnregisterClass(no redraw MDI child)"));
{
wxLogLastError(wxT("UnregisterClass(no redraw MDI child)"));
{
wxLogLastError(wxT("UnregisterClass(canvas)"));
{
wxLogLastError(wxT("UnregisterClass(canvas)"));
}
if ( !::UnregisterClass(wxCanvasClassNameNR, wxhInstance) )
{
wxLogLastError(wxT("UnregisterClass(no redraw canvas)"));
}
if ( !::UnregisterClass(wxCanvasClassNameNR, wxhInstance) )
{
wxLogLastError(wxT("UnregisterClass(no redraw canvas)"));
}
#endif // __WXMICROWIN__
}
#endif // __WXMICROWIN__
wxAppBase::CleanUp();
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
wxAppBase::CleanUp();
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
- wxSetKeyboardHook(FALSE);
+ wxSetKeyboardHook(false);
#endif
#if wxUSE_PENWINDOWS
#endif
#if wxUSE_PENWINDOWS
void wxApp::OnEndSession(wxCloseEvent& WXUNUSED(event))
{
if (GetTopWindow())
void wxApp::OnEndSession(wxCloseEvent& WXUNUSED(event))
{
if (GetTopWindow())
- GetTopWindow()->Close(TRUE);
+ GetTopWindow()->Close(true);
}
// Default behaviour: close the application with prompts. The
}
// Default behaviour: close the application with prompts. The
if (GetTopWindow())
{
if (!GetTopWindow()->Close(!event.CanVeto()))
if (GetTopWindow())
{
if (!GetTopWindow()->Close(!event.CanVeto()))
bool wxApp::Yield(bool onlyIfNeeded)
{
// MT-FIXME
bool wxApp::Yield(bool onlyIfNeeded)
{
// MT-FIXME
- static bool s_inYield = FALSE;
+ static bool s_inYield = false;
#if wxUSE_LOG
// disable log flushing from here because a call to wxYield() shouldn't
#if wxUSE_LOG
// disable log flushing from here because a call to wxYield() shouldn't
wxFAIL_MSG( wxT("wxYield called recursively" ) );
}
wxFAIL_MSG( wxT("wxYield called recursively" ) );
}
// we don't want to process WM_QUIT from here - it should be processed in
// the main event loop in order to stop it
// we don't want to process WM_QUIT from here - it should be processed in
// the main event loop in order to stop it
wxLog::Resume();
#endif // wxUSE_LOG
wxLog::Resume();
#endif // wxUSE_LOG