#include <wx/textfile.h>
#include <wx/config.h>
#include <wx/fileconf.h>
+#include <stdlib.h>
#include <ctype.h> // for isalnum()
return (unsigned char)buf;
}
+// Must be at global scope for VC++ 5
+extern "C" double ConvertFromIeeeExtended(const unsigned char *bytes);
+
double wxDataStream::ReadDouble()
{
- extern "C" double ConvertFromIeeeExtended(const unsigned char *bytes);
-
#if USE_APPLE_IEEE
char buf[10];
m_ostream->write((const char *) tmp_string, tmp_string.Length());
}
+// Must be at global scope for VC++ 5
+extern "C" void ConvertToIeeeExtended(double num, unsigned char *bytes);
+
void wxDataStream::WriteDouble(double d)
{
- extern "C" void ConvertToIeeeExtended(double num, unsigned char *bytes)
char buf[10];
if (!m_ostream)
// menu callbacks
void OnClose(wxCommandEvent& event);
+ void OnCloseWindow(wxCloseEvent& event);
void OnSave (wxCommandEvent& event);
void OnClear(wxCommandEvent& event);
EVT_MENU(Menu_Save, wxLogFrame::OnSave)
EVT_MENU(Menu_Clear, wxLogFrame::OnClear)
- EVT_CLOSE(wxLogFrame::OnClose)
+ EVT_CLOSE(wxLogFrame::OnCloseWindow)
END_EVENT_TABLE()
wxLogFrame::wxLogFrame(const char *szTitle)
Show(FALSE);
}
+void wxLogFrame::OnCloseWindow(wxCloseEvent& event)
+{
+ // just hide the window
+ Show(FALSE);
+}
+
void wxLogFrame::OnSave(wxCommandEvent& event)
{
// get the file name
#endif
}
+#if !( defined (_MSC_VER) && (_MSC_VER <= 800) )
void * operator new[] (size_t size, char * fileName, int lineNum)
{
#ifdef NO_DEBUG_ALLOCATION
return wxDebugAlloc(size, fileName, lineNum, FALSE, TRUE);
#endif
}
+#endif
void operator delete (void * buf)
{
#endif
}
+#if !( defined (_MSC_VER) && (_MSC_VER <= 800) )
void operator delete[] (void * buf)
{
#ifdef NO_DEBUG_ALLOCATION
wxDebugFree(buf, TRUE);
#endif
}
+#endif
#endif
{
wxPaintDC paintDC(this);
wxMemoryDC dc(& paintDC);
- dc.SelectObject(m_doubleBufferingBitmap);
+ dc.SelectObject(* m_doubleBufferingBitmap);
PaintGrid(dc);
$(MSWDIR)\font.obj \
$(MSWDIR)\fontdlg.obj \
$(MSWDIR)\frame.obj \
- $(MSWDIR)\gauge.obj \
$(MSWDIR)\gauge95.obj \
$(MSWDIR)\gaugemsw.obj \
$(MSWDIR)\gdiobj.obj \
$(MSWDIR)\listctrl.obj \
$(MSWDIR)\main.obj \
$(MSWDIR)\mdi.obj \
- $(MSWDIR)\menu.obj \
+ $(MSWDIR)\menu.obj\
$(MSWDIR)\menuitem.obj \
$(MSWDIR)\metafile.obj \
$(MSWDIR)\minifram.obj \
$(MSWDIR)\timer.obj \
$(MSWDIR)\treectrl.obj \
$(MSWDIR)\utils.obj \
+ $(MSWDIR)\utilsexc.obj \
$(MSWDIR)\wave.obj \
$(MSWDIR)\window.obj \
$(OLEDIR)\droptgt.obj \
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
+$(MSWDIR)/utilsexc.obj: $*.$(SRCSUFF)
+ cl @<<
+$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
+<<
+
$(MSWDIR)/wave.obj: $*.$(SRCSUFF)
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
$(COMMDIR)/extended.obj: $*.c
cl @<<
-$(CPPFLAGS) /Fo$@ /c /Tp $*.c
+$(CPPFLAGS2) /Fo$@ /c /Tp $*.c
<<
$(COMMDIR)/y_tab.obj: $*.c $(COMMDIR)/lex_yy.c
$(COMMDIR)/extended.obj: $*.c
cl @<<
-$(CPPFLAGS) /c /Tp $*.c /Fo$@
+$(CPPFLAGS2) /c /Tp $*.c /Fo$@
<<
$(COMMDIR)/y_tab.obj: $*.c $(COMMDIR)/lex_yy.c
#pragma hdrstop
#endif
+#include <wx/defs.h>
+
+#ifdef __WIN32__
+
#include <wx/log.h>
#include <wx/msw/ole/oleutils.h>
#include <wx/msw/ole/dataobj.h>
return s_szBuf;
}
}
+
+#endif
+
if ( IsCheckable() && !m_bmpChecked.Ok() ) {
if ( st & wxODChecked ) {
// using native APIs for performance and simplicity
- #ifdef O_DRAW_NATIVE_API
+#ifdef O_DRAW_NATIVE_API
// what goes on: DrawFrameControl creates a b/w mask,
// then we copy it to screen to have right colors
BitBlt(hdc, rc.x, rc.y, GetMarginWidth(), m_nHeight,
hdcMem, 0, 0, SRCCOPY);
DeleteDC(hdcMem);
- #else
+#else
// #### to do: perhaps using Marlett font (create equiv. font under X)
- wxFAIL("not implemented");
- #endif //O_DRAW_NATIVE_API
+// wxFAIL("not implemented");
+#endif //O_DRAW_NATIVE_API
}
}
else {
::SetScrollPos(scroll_bar, SB_CTL, 0, FALSE);
ShowWindow(scroll_bar, SW_SHOW);
- SetFont(parent->GetFont());
+ SetFont(* parent->GetFont());
m_hWnd = (WXHWND)scroll_bar;
#endif
#include <stdarg.h>
+IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent, wxEvent)
+IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
+
+
#define wxEXECUTE_WIN_MESSAGE 10000
struct wxExecuteData {
char state;
};
+
+#ifdef __WIN32__
static DWORD wxExecuteThread(wxExecuteData *data)
{
WaitForSingleObject(data->process, INFINITE);
return 0;
}
+#endif
+
LRESULT APIENTRY _EXPORT wxExecuteWindowCbk(HWND hWnd, UINT message,
WPARAM wParam, LPARAM lParam)