Source cleaning: -1/wxID_ANY/wxNOT_FOUND, ::, TRUE/true, FALSE/false, whitespaces, tabs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -124,7 +124,7 @@ public:
|
|||||||
bool InsertPage(size_t nPage,
|
bool InsertPage(size_t nPage,
|
||||||
wxNotebookPage *pPage,
|
wxNotebookPage *pPage,
|
||||||
const wxString& strText,
|
const wxString& strText,
|
||||||
bool bSelect = FALSE,
|
bool bSelect = false,
|
||||||
int imageId = -1);
|
int imageId = -1);
|
||||||
|
|
||||||
void AddPageInfo( wxNotebookPageInfo* info ) { AddPage( info->GetPage() , info->GetText() , info->GetSelected() , info->GetImageId() ) ; }
|
void AddPageInfo( wxNotebookPageInfo* info ) { AddPage( info->GetPage() , info->GetText() , info->GetSelected() , info->GetImageId() ) ; }
|
||||||
@@ -158,7 +158,7 @@ public:
|
|||||||
virtual bool MSWTranslateMessage(WXMSG *wxmsg);
|
virtual bool MSWTranslateMessage(WXMSG *wxmsg);
|
||||||
|
|
||||||
#if wxUSE_CONSTRAINTS
|
#if wxUSE_CONSTRAINTS
|
||||||
virtual void SetConstraintSizes(bool recurse = TRUE);
|
virtual void SetConstraintSizes(bool recurse = true);
|
||||||
virtual bool DoPhase(int nPhase);
|
virtual bool DoPhase(int nPhase);
|
||||||
#endif // wxUSE_CONSTRAINTS
|
#endif // wxUSE_CONSTRAINTS
|
||||||
|
|
||||||
|
@@ -52,7 +52,7 @@ public:
|
|||||||
inline bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
|
inline bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
|
||||||
inline bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
|
inline bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }
|
||||||
|
|
||||||
virtual bool FreeResource(bool force = FALSE);
|
virtual bool FreeResource(bool force = false);
|
||||||
|
|
||||||
inline WXHPALETTE GetHPALETTE(void) const { return (M_PALETTEDATA ? M_PALETTEDATA->m_hPalette : 0); }
|
inline WXHPALETTE GetHPALETTE(void) const { return (M_PALETTEDATA ? M_PALETTEDATA->m_hPalette : 0); }
|
||||||
void SetHPALETTE(WXHPALETTE pal);
|
void SetHPALETTE(WXHPALETTE pal);
|
||||||
|
@@ -132,7 +132,7 @@ public:
|
|||||||
|
|
||||||
// Internal
|
// Internal
|
||||||
bool RealizeResource();
|
bool RealizeResource();
|
||||||
bool FreeResource(bool force = FALSE);
|
bool FreeResource(bool force = false);
|
||||||
WXHANDLE GetResourceHandle() const;
|
WXHANDLE GetResourceHandle() const;
|
||||||
bool IsFree() const;
|
bool IsFree() const;
|
||||||
void Unshare();
|
void Unshare();
|
||||||
|
@@ -30,7 +30,7 @@ public:
|
|||||||
|
|
||||||
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
||||||
|
|
||||||
virtual bool Show(bool show = TRUE);
|
virtual bool Show(bool show = true);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// popups handle the position like wxTopLevelWindow, not wxWindow
|
// popups handle the position like wxTopLevelWindow, not wxWindow
|
||||||
|
@@ -32,7 +32,7 @@ public:
|
|||||||
|
|
||||||
virtual bool Print(wxWindow *parent,
|
virtual bool Print(wxWindow *parent,
|
||||||
wxPrintout *printout,
|
wxPrintout *printout,
|
||||||
bool prompt = TRUE);
|
bool prompt = true);
|
||||||
virtual wxDC* PrintDialog(wxWindow *parent);
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
||||||
virtual bool Setup(wxWindow *parent);
|
virtual bool Setup(wxWindow *parent);
|
||||||
|
|
||||||
|
@@ -61,7 +61,7 @@ bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID& id)
|
|||||||
(DLGPROC) wxDlgProc);
|
(DLGPROC) wxDlgProc);
|
||||||
|
|
||||||
if ( !m_hWnd )
|
if ( !m_hWnd )
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
SubclassWin(GetHWND());
|
SubclassWin(GetHWND());
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID& id)
|
|||||||
CreateWindowFromHWND(this, (WXHWND) hWndNext);
|
CreateWindowFromHWND(this, (WXHWND) hWndNext);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWindow::LoadNativeDialog(wxWindow* parent, const wxString& name)
|
bool wxWindow::LoadNativeDialog(wxWindow* parent, const wxString& name)
|
||||||
@@ -98,7 +98,7 @@ bool wxWindow::LoadNativeDialog(wxWindow* parent, const wxString& name)
|
|||||||
(DLGPROC)wxDlgProc);
|
(DLGPROC)wxDlgProc);
|
||||||
|
|
||||||
if ( !m_hWnd )
|
if ( !m_hWnd )
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
SubclassWin(GetHWND());
|
SubclassWin(GetHWND());
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ bool wxWindow::LoadNativeDialog(wxWindow* parent, const wxString& name)
|
|||||||
CreateWindowFromHWND(this, (WXHWND) hWndNext);
|
CreateWindowFromHWND(this, (WXHWND) hWndNext);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
@@ -323,7 +323,7 @@ int wxNotebook::GetRowCount() const
|
|||||||
|
|
||||||
int wxNotebook::SetSelection(size_t nPage)
|
int wxNotebook::SetSelection(size_t nPage)
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( IS_VALID_PAGE(nPage), -1, wxT("notebook page out of range") );
|
wxCHECK_MSG( IS_VALID_PAGE(nPage), wxNOT_FOUND, wxT("notebook page out of range") );
|
||||||
|
|
||||||
if ( int(nPage) != m_nSelection )
|
if ( int(nPage) != m_nSelection )
|
||||||
{
|
{
|
||||||
|
@@ -121,7 +121,7 @@ wxOwnerDrawn::wxOwnerDrawn(const wxString& str,
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_bCheckable = bCheckable;
|
m_bCheckable = bCheckable;
|
||||||
m_bOwnerDrawn = FALSE;
|
m_bOwnerDrawn = false;
|
||||||
m_nHeight = 0;
|
m_nHeight = 0;
|
||||||
m_nMarginWidth = ms_nLastMarginWidth;
|
m_nMarginWidth = ms_nLastMarginWidth;
|
||||||
m_nMinHeight = wxMSWSystemMenuFontModule::ms_systemMenuHeight;
|
m_nMinHeight = wxMSWSystemMenuFontModule::ms_systemMenuHeight;
|
||||||
@@ -192,7 +192,7 @@ bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight)
|
|||||||
// remember height for use in OnDrawItem
|
// remember height for use in OnDrawItem
|
||||||
m_nHeight = *pheight;
|
m_nHeight = *pheight;
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw the item
|
// draw the item
|
||||||
@@ -203,7 +203,7 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
|
|||||||
{
|
{
|
||||||
// we do nothing on focus change
|
// we do nothing on focus change
|
||||||
if ( act == wxODFocusChanged )
|
if ( act == wxODFocusChanged )
|
||||||
return TRUE;
|
return true;
|
||||||
|
|
||||||
|
|
||||||
// this flag determines whether or not an edge will
|
// this flag determines whether or not an edge will
|
||||||
@@ -386,7 +386,7 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
|
|||||||
dc.Blit(rc.x + (margin - nBmpWidth) / 2,
|
dc.Blit(rc.x + (margin - nBmpWidth) / 2,
|
||||||
rc.y + heightDiff / 2,
|
rc.y + heightDiff / 2,
|
||||||
nBmpWidth, nBmpHeight,
|
nBmpWidth, nBmpHeight,
|
||||||
&dcMem, 0, 0, wxCOPY, TRUE /* use mask */);
|
&dcMem, 0, 0, wxCOPY, true /* use mask */);
|
||||||
|
|
||||||
if ( st & wxODSelected && draw_bitmap_edge ) {
|
if ( st & wxODSelected && draw_bitmap_edge ) {
|
||||||
RECT rectBmp = { rc.GetLeft(), rc.GetTop(),
|
RECT rectBmp = { rc.GetLeft(), rc.GetTop(),
|
||||||
@@ -402,7 +402,7 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
|
|||||||
::SetTextColor(hdc, colOldText);
|
::SetTextColor(hdc, colOldText);
|
||||||
::SetBkColor(hdc, colOldBack);
|
::SetBkColor(hdc, colOldBack);
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -57,7 +57,7 @@ wxPalette::wxPalette(int n, const unsigned char *red, const unsigned char *green
|
|||||||
|
|
||||||
wxPalette::~wxPalette(void)
|
wxPalette::~wxPalette(void)
|
||||||
{
|
{
|
||||||
// FreeResource(TRUE);
|
// FreeResource(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxPalette::FreeResource(bool WXUNUSED(force))
|
bool wxPalette::FreeResource(bool WXUNUSED(force))
|
||||||
@@ -66,7 +66,7 @@ bool wxPalette::FreeResource(bool WXUNUSED(force))
|
|||||||
{
|
{
|
||||||
DeleteObject((HPALETTE)M_PALETTEDATA->m_hPalette);
|
DeleteObject((HPALETTE)M_PALETTEDATA->m_hPalette);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
|
bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
|
||||||
@@ -75,7 +75,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
|
|||||||
|
|
||||||
#if defined(__WXMICROWIN__)
|
#if defined(__WXMICROWIN__)
|
||||||
|
|
||||||
return (FALSE);
|
return false;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
|
|||||||
NPLOGPALETTE npPal = (NPLOGPALETTE)LocalAlloc(LMEM_FIXED, sizeof(LOGPALETTE) +
|
NPLOGPALETTE npPal = (NPLOGPALETTE)LocalAlloc(LMEM_FIXED, sizeof(LOGPALETTE) +
|
||||||
(WORD)n * sizeof(PALETTEENTRY));
|
(WORD)n * sizeof(PALETTEENTRY));
|
||||||
if (!npPal)
|
if (!npPal)
|
||||||
return(FALSE);
|
return false;
|
||||||
|
|
||||||
npPal->palVersion = 0x300;
|
npPal->palVersion = 0x300;
|
||||||
npPal->palNumEntries = n;
|
npPal->palNumEntries = n;
|
||||||
@@ -99,7 +99,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
|
|||||||
}
|
}
|
||||||
M_PALETTEDATA->m_hPalette = (WXHPALETTE) CreatePalette((LPLOGPALETTE)npPal);
|
M_PALETTEDATA->m_hPalette = (WXHPALETTE) CreatePalette((LPLOGPALETTE)npPal);
|
||||||
LocalFree((HANDLE)npPal);
|
LocalFree((HANDLE)npPal);
|
||||||
return TRUE;
|
return true;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -107,10 +107,10 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
|
|||||||
int wxPalette::GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue) const
|
int wxPalette::GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue) const
|
||||||
{
|
{
|
||||||
#ifdef __WXMICROWIN__
|
#ifdef __WXMICROWIN__
|
||||||
return FALSE;
|
return 0;
|
||||||
#else
|
#else
|
||||||
if ( !m_refData )
|
if ( !m_refData )
|
||||||
return FALSE;
|
return 0;
|
||||||
|
|
||||||
return ::GetNearestPaletteIndex((HPALETTE) M_PALETTEDATA->m_hPalette, PALETTERGB(red, green, blue));
|
return ::GetNearestPaletteIndex((HPALETTE) M_PALETTEDATA->m_hPalette, PALETTERGB(red, green, blue));
|
||||||
#endif
|
#endif
|
||||||
@@ -119,13 +119,13 @@ int wxPalette::GetPixel(const unsigned char red, const unsigned char green, cons
|
|||||||
bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsigned char *blue) const
|
bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsigned char *blue) const
|
||||||
{
|
{
|
||||||
#ifdef __WXMICROWIN__
|
#ifdef __WXMICROWIN__
|
||||||
return FALSE;
|
return false;
|
||||||
#else
|
#else
|
||||||
if ( !m_refData )
|
if ( !m_refData )
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
if (index < 0 || index > 255)
|
if (index < 0 || index > 255)
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
PALETTEENTRY entry;
|
PALETTEENTRY entry;
|
||||||
if (::GetPaletteEntries((HPALETTE) M_PALETTEDATA->m_hPalette, index, 1, &entry))
|
if (::GetPaletteEntries((HPALETTE) M_PALETTEDATA->m_hPalette, index, 1, &entry))
|
||||||
@@ -133,9 +133,9 @@ bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsi
|
|||||||
*red = entry.peRed;
|
*red = entry.peRed;
|
||||||
*green = entry.peGreen;
|
*green = entry.peGreen;
|
||||||
*blue = entry.peBlue;
|
*blue = entry.peBlue;
|
||||||
return TRUE;
|
return true;
|
||||||
} else
|
} else
|
||||||
return FALSE;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -141,7 +141,7 @@ bool wxPen::RealizeResource()
|
|||||||
if (M_PENDATA->m_style==wxTRANSPARENT)
|
if (M_PENDATA->m_style==wxTRANSPARENT)
|
||||||
{
|
{
|
||||||
M_PENDATA->m_hPen = (WXHPEN) ::GetStockObject(NULL_PEN);
|
M_PENDATA->m_hPen = (WXHPEN) ::GetStockObject(NULL_PEN);
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
COLORREF ms_colour = M_PENDATA->m_colour.GetPixel();
|
COLORREF ms_colour = M_PENDATA->m_colour.GetPixel();
|
||||||
@@ -274,9 +274,9 @@ bool wxPen::RealizeResource()
|
|||||||
if (M_PENDATA->m_hPen==0)
|
if (M_PENDATA->m_hPen==0)
|
||||||
wxError("Cannot create pen","Internal error") ;
|
wxError("Cannot create pen","Internal error") ;
|
||||||
#endif
|
#endif
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
WXHANDLE wxPen::GetResourceHandle() const
|
WXHANDLE wxPen::GetResourceHandle() const
|
||||||
@@ -293,9 +293,9 @@ bool wxPen::FreeResource(bool WXUNUSED(force))
|
|||||||
{
|
{
|
||||||
DeleteObject((HPEN) M_PENDATA->m_hPen);
|
DeleteObject((HPEN) M_PENDATA->m_hPen);
|
||||||
M_PENDATA->m_hPen = 0;
|
M_PENDATA->m_hPen = 0;
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
else return FALSE;
|
else return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxPen::IsFree() const
|
bool wxPen::IsFree() const
|
||||||
|
@@ -50,7 +50,7 @@ bool wxPopupWindow::Create(wxWindow *parent, int flags)
|
|||||||
Hide();
|
Hide();
|
||||||
|
|
||||||
return wxPopupWindowBase::Create(parent) &&
|
return wxPopupWindowBase::Create(parent) &&
|
||||||
wxWindow::Create(parent, -1,
|
wxWindow::Create(parent, wxID_ANY,
|
||||||
wxDefaultPosition, wxDefaultSize,
|
wxDefaultPosition, wxDefaultSize,
|
||||||
flags | wxPOPUP_WINDOW);
|
flags | wxPOPUP_WINDOW);
|
||||||
}
|
}
|
||||||
@@ -100,7 +100,7 @@ WXHWND wxPopupWindow::MSWGetParent() const
|
|||||||
bool wxPopupWindow::Show(bool show)
|
bool wxPopupWindow::Show(bool show)
|
||||||
{
|
{
|
||||||
if ( !wxWindowMSW::Show(show) )
|
if ( !wxWindowMSW::Show(show) )
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
if ( show )
|
if ( show )
|
||||||
{
|
{
|
||||||
@@ -111,7 +111,7 @@ bool wxPopupWindow::Show(bool show)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // #if wxUSE_POPUPWIN
|
#endif // #if wxUSE_POPUPWIN
|
||||||
|
@@ -68,7 +68,7 @@ wxPrintDialog::wxPrintDialog()
|
|||||||
{
|
{
|
||||||
m_dialogParent = NULL;
|
m_dialogParent = NULL;
|
||||||
m_printerDC = NULL;
|
m_printerDC = NULL;
|
||||||
m_destroyDC = TRUE;
|
m_destroyDC = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxPrintDialog::wxPrintDialog(wxWindow *p, wxPrintDialogData* data)
|
wxPrintDialog::wxPrintDialog(wxWindow *p, wxPrintDialogData* data)
|
||||||
@@ -89,14 +89,14 @@ bool wxPrintDialog::Create(wxWindow *p, wxPrintDialogData* data)
|
|||||||
{
|
{
|
||||||
m_dialogParent = p;
|
m_dialogParent = p;
|
||||||
m_printerDC = NULL;
|
m_printerDC = NULL;
|
||||||
m_destroyDC = TRUE;
|
m_destroyDC = true;
|
||||||
|
|
||||||
if ( data )
|
if ( data )
|
||||||
m_printDialogData = *data;
|
m_printDialogData = *data;
|
||||||
|
|
||||||
m_printDialogData.SetOwnerWindow(p);
|
m_printDialogData.SetOwnerWindow(p);
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxPrintDialog::~wxPrintDialog()
|
wxPrintDialog::~wxPrintDialog()
|
||||||
@@ -121,7 +121,7 @@ int wxPrintDialog::ShowModal()
|
|||||||
|
|
||||||
p->hwndOwner = 0;
|
p->hwndOwner = 0;
|
||||||
|
|
||||||
if ( ret != FALSE && ((PRINTDLG *)m_printDialogData.GetNativeData())->hDC)
|
if ( ret != false && ((PRINTDLG *)m_printDialogData.GetNativeData())->hDC)
|
||||||
{
|
{
|
||||||
wxPrinterDC *pdc = new wxPrinterDC((WXHDC) ((PRINTDLG *)m_printDialogData.GetNativeData())->hDC);
|
wxPrinterDC *pdc = new wxPrinterDC((WXHDC) ((PRINTDLG *)m_printDialogData.GetNativeData())->hDC);
|
||||||
m_printerDC = pdc;
|
m_printerDC = pdc;
|
||||||
@@ -138,7 +138,7 @@ wxDC *wxPrintDialog::GetPrintDC()
|
|||||||
{
|
{
|
||||||
if (m_printerDC)
|
if (m_printerDC)
|
||||||
{
|
{
|
||||||
m_destroyDC = FALSE;
|
m_destroyDC = false;
|
||||||
return m_printerDC;
|
return m_printerDC;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -169,7 +169,7 @@ bool wxPageSetupDialog::Create(wxWindow *p, wxPageSetupData *data)
|
|||||||
#if defined(__WIN95__)
|
#if defined(__WIN95__)
|
||||||
m_pageSetupData.SetOwnerWindow(p);
|
m_pageSetupData.SetOwnerWindow(p);
|
||||||
#endif
|
#endif
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxPageSetupDialog::~wxPageSetupDialog()
|
wxPageSetupDialog::~wxPageSetupDialog()
|
||||||
@@ -200,7 +200,7 @@ int wxPageSetupDialog::ShowModal()
|
|||||||
wxGenericPageSetupDialog *genericPageSetupDialog = new wxGenericPageSetupDialog(GetParent(), & m_pageSetupData);
|
wxGenericPageSetupDialog *genericPageSetupDialog = new wxGenericPageSetupDialog(GetParent(), & m_pageSetupData);
|
||||||
int ret = genericPageSetupDialog->ShowModal();
|
int ret = genericPageSetupDialog->ShowModal();
|
||||||
m_pageSetupData = genericPageSetupDialog->GetPageSetupData();
|
m_pageSetupData = genericPageSetupDialog->GetPageSetupData();
|
||||||
genericPageSetupDialog->Close(TRUE);
|
genericPageSetupDialog->Close(true);
|
||||||
return ret;
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -417,7 +417,7 @@ LONG APIENTRY _EXPORT wxAbortProc(HDC WXUNUSED(hPr), int WXUNUSED(Code))
|
|||||||
|
|
||||||
/* Process messages intended for the abort dialog box */
|
/* Process messages intended for the abort dialog box */
|
||||||
|
|
||||||
while (!wxPrinterBase::sm_abortIt && PeekMessage(&msg, 0, 0, 0, TRUE))
|
while (!wxPrinterBase::sm_abortIt && ::PeekMessage(&msg, 0, 0, 0, TRUE))
|
||||||
if (!IsDialogMessage((HWND) wxPrinterBase::sm_abortWindow->GetHWND(), &msg)) {
|
if (!IsDialogMessage((HWND) wxPrinterBase::sm_abortWindow->GetHWND(), &msg)) {
|
||||||
TranslateMessage(&msg);
|
TranslateMessage(&msg);
|
||||||
DispatchMessage(&msg);
|
DispatchMessage(&msg);
|
||||||
|
Reference in New Issue
Block a user