*** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -216,6 +216,8 @@ protected:
|
|||||||
WXHBRUSH m_oldBrush;
|
WXHBRUSH m_oldBrush;
|
||||||
WXHFONT m_oldFont;
|
WXHFONT m_oldFont;
|
||||||
WXHPALETTE m_oldPalette;
|
WXHPALETTE m_oldPalette;
|
||||||
|
|
||||||
|
float m_scaleFactor; // wxPSDC wants to have this. Will disappear.
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
// _WX_DC_H_
|
// _WX_DC_H_
|
||||||
|
@@ -65,6 +65,7 @@ public:
|
|||||||
virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
|
virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
|
||||||
virtual bool OnDrop(wxCoord x, wxCoord y);
|
virtual bool OnDrop(wxCoord x, wxCoord y);
|
||||||
virtual bool OnData(wxCoord x, wxCoord y);
|
virtual bool OnData(wxCoord x, wxCoord y);
|
||||||
|
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult vResult);
|
||||||
virtual bool GetData();
|
virtual bool GetData();
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
@@ -94,6 +95,7 @@ public:
|
|||||||
virtual bool OnData( wxCoord x
|
virtual bool OnData( wxCoord x
|
||||||
,wxCoord y
|
,wxCoord y
|
||||||
);
|
);
|
||||||
|
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult vResult);
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -115,6 +117,7 @@ public:
|
|||||||
virtual bool OnData( wxCoord x
|
virtual bool OnData( wxCoord x
|
||||||
,wxCoord y
|
,wxCoord y
|
||||||
);
|
);
|
||||||
|
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult vResult);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //__OS2DNDH__
|
#endif //__OS2DNDH__
|
||||||
|
@@ -24,8 +24,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxStatusLineNameStr;
|
|||||||
class WXDLLEXPORT wxMenuBar;
|
class WXDLLEXPORT wxMenuBar;
|
||||||
class WXDLLEXPORT wxStatusBar;
|
class WXDLLEXPORT wxStatusBar;
|
||||||
|
|
||||||
class WXDLLEXPORT wxFrame: public wxWindow {
|
class WXDLLEXPORT wxFrame: public wxWindow
|
||||||
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxFrame)
|
DECLARE_DYNAMIC_CLASS(wxFrame)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
// General features
|
// General features
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#define wxUSE_NET_API 1 // Utilize OS/2's UPM netapi's
|
#define wxUSE_NET_API 0 // Utilize OS/2's UPM netapi's
|
||||||
|
|
||||||
#define wxUSE_CONFIG 1
|
#define wxUSE_CONFIG 1
|
||||||
// Use wxConfig, with CreateConfig in wxApp
|
// Use wxConfig, with CreateConfig in wxApp
|
||||||
@@ -70,8 +70,6 @@
|
|||||||
#define wxUSE_DRAG_AND_DROP 1
|
#define wxUSE_DRAG_AND_DROP 1
|
||||||
// 0 for no drag and drop
|
// 0 for no drag and drop
|
||||||
|
|
||||||
#define wxUSE_TOOLBAR 1
|
|
||||||
// Define 1 to use toolbar classes
|
|
||||||
#define wxUSE_BUTTONBAR 1
|
#define wxUSE_BUTTONBAR 1
|
||||||
// Define 1 to use buttonbar classes (enhanced toolbar
|
// Define 1 to use buttonbar classes (enhanced toolbar
|
||||||
// for MS Windows)
|
// for MS Windows)
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
// General features
|
// General features
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#define wxUSE_NET_API 1 // Utilize OS/2's UPM netapi's
|
#define wxUSE_NET_API 0 // Utilize OS/2's UPM netapi's
|
||||||
|
|
||||||
#define wxUSE_CONFIG 1
|
#define wxUSE_CONFIG 1
|
||||||
// Use wxConfig, with CreateConfig in wxApp
|
// Use wxConfig, with CreateConfig in wxApp
|
||||||
|
@@ -7,9 +7,5 @@
|
|||||||
#include "wx/motif/tbar95.h"
|
#include "wx/motif/tbar95.h"
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
#include "wx/gtk/tbar95.h"
|
#include "wx/gtk/tbar95.h"
|
||||||
#elif defined(__WXPM__)
|
|
||||||
#include "wx/os2/tbar95.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_TBAR95_H_BASE_
|
// _WX_TBAR95_H_BASE_
|
||||||
|
@@ -29,6 +29,10 @@
|
|||||||
#include <osfcn.h>
|
#include <osfcn.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __VISAGECPP__
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
static int yyinput()
|
static int yyinput()
|
||||||
#else
|
#else
|
||||||
@@ -131,6 +135,7 @@ int read();
|
|||||||
* done when it reached the ';' after the YY_FATAL_ERROR() call.
|
* done when it reached the ';' after the YY_FATAL_ERROR() call.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__VISAGECPP__)
|
||||||
#define YY_FATAL_ERROR(msg) \
|
#define YY_FATAL_ERROR(msg) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
@@ -139,6 +144,18 @@ int read();
|
|||||||
exit( 1 ); \
|
exit( 1 ); \
|
||||||
} \
|
} \
|
||||||
while ( 0 )
|
while ( 0 )
|
||||||
|
#else
|
||||||
|
// suppress expression always false warning
|
||||||
|
int os2var = 0;
|
||||||
|
#define YY_FATAL_ERROR(msg) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
(void) fputs( msg, stderr ); \
|
||||||
|
(void) putc( '\n', stderr ); \
|
||||||
|
exit( 1 ); \
|
||||||
|
} \
|
||||||
|
while ( os2var == 0 )
|
||||||
|
#endif
|
||||||
|
|
||||||
/* default yywrap function - always treat EOF as an EOF */
|
/* default yywrap function - always treat EOF as an EOF */
|
||||||
int yywrap(void) { return 1; }
|
int yywrap(void) { return 1; }
|
||||||
@@ -154,6 +171,7 @@ int yywrap(void) { return 1; }
|
|||||||
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
|
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
|
||||||
|
|
||||||
/* special action meaning "start processing a new file" */
|
/* special action meaning "start processing a new file" */
|
||||||
|
#if !defined(__VISAGECPP__)
|
||||||
#define YY_NEW_FILE \
|
#define YY_NEW_FILE \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
@@ -161,6 +179,15 @@ int yywrap(void) { return 1; }
|
|||||||
yy_load_buffer_state(); \
|
yy_load_buffer_state(); \
|
||||||
} \
|
} \
|
||||||
while ( 0 )
|
while ( 0 )
|
||||||
|
#else
|
||||||
|
#define YY_NEW_FILE \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
yy_init_buffer( yy_current_buffer, yyin ); \
|
||||||
|
yy_load_buffer_state(); \
|
||||||
|
} \
|
||||||
|
while ( os2var == 0 )
|
||||||
|
#endif
|
||||||
|
|
||||||
/* default declaration of generated scanner - a define so the user can
|
/* default declaration of generated scanner - a define so the user can
|
||||||
* easily add parameters
|
* easily add parameters
|
||||||
@@ -246,6 +273,7 @@ static int my_unput(char);
|
|||||||
#define EOB_ACT_LAST_MATCH 2
|
#define EOB_ACT_LAST_MATCH 2
|
||||||
|
|
||||||
/* return all but the first 'n' matched characters back to the input stream */
|
/* return all but the first 'n' matched characters back to the input stream */
|
||||||
|
#if !defined(__VISAGECPP__)
|
||||||
#define yyless(n) \
|
#define yyless(n) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
@@ -255,6 +283,17 @@ static int my_unput(char);
|
|||||||
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
|
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
|
||||||
} \
|
} \
|
||||||
while ( 0 )
|
while ( 0 )
|
||||||
|
#else
|
||||||
|
#define yyless(n) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
/* undo effects of setting up yytext */ \
|
||||||
|
*yy_cp = yy_hold_char; \
|
||||||
|
yy_c_buf_p = yy_cp = yy_bp + n; \
|
||||||
|
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
|
||||||
|
} \
|
||||||
|
while ( os2var == 0 )
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef unput
|
#undef unput
|
||||||
#define unput(c) yyunput( c, yytext )
|
#define unput(c) yyunput( c, yytext )
|
||||||
@@ -477,7 +516,13 @@ YY_DECL
|
|||||||
yy_init = 0;
|
yy_init = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(__VISAGECPP__)
|
||||||
while ( 1 ) /* loops until end-of-file is reached */
|
while ( 1 ) /* loops until end-of-file is reached */
|
||||||
|
#else
|
||||||
|
os2var = 1;
|
||||||
|
if (os2var == 0) return 0;
|
||||||
|
while ( os2var == 1 ) /* loops until end-of-file is reached */
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
yy_cp = yy_c_buf_p;
|
yy_cp = yy_c_buf_p;
|
||||||
|
|
||||||
@@ -729,6 +774,10 @@ case YY_STATE_EOF(INITIAL):
|
|||||||
"fatal flex scanner internal error--no action found" );
|
"fatal flex scanner internal error--no action found" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if defined(__VISAGECPP__)
|
||||||
|
// VA complains about proc maybe not returning a value so return one
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ static char yysccsid[] = "@(#)yaccpar 1.7 (Berkeley) 09/09/90";
|
|||||||
#define YYBYACC 1
|
#define YYBYACC 1
|
||||||
#line 2 "parser.y"
|
#line 2 "parser.y"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) || defined(__VISAGECPP__)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#endif
|
#endif
|
||||||
#include "wx/expr.h"
|
#include "wx/expr.h"
|
||||||
@@ -262,7 +262,8 @@ yyparse()
|
|||||||
register char *yys;
|
register char *yys;
|
||||||
extern char *getenv();
|
extern char *getenv();
|
||||||
|
|
||||||
if (yys = getenv("YYDEBUG"))
|
yys = getenv("YYDEBUG");
|
||||||
|
if (yys)
|
||||||
{
|
{
|
||||||
yyn = *yys;
|
yyn = *yys;
|
||||||
if (yyn >= '0' && yyn <= '9')
|
if (yyn >= '0' && yyn <= '9')
|
||||||
@@ -279,7 +280,8 @@ yyparse()
|
|||||||
*yyssp = yystate = 0;
|
*yyssp = yystate = 0;
|
||||||
|
|
||||||
yyloop:
|
yyloop:
|
||||||
if (yyn = yydefred[yystate]) goto yyreduce;
|
yyn = yydefred[yystate];
|
||||||
|
if (yyn != 0) goto yyreduce;
|
||||||
if (yychar < 0)
|
if (yychar < 0)
|
||||||
{
|
{
|
||||||
if ((yychar = yylex()) < 0) yychar = 0;
|
if ((yychar = yylex()) < 0) yychar = 0;
|
||||||
|
@@ -1692,6 +1692,341 @@ wxImage::wxImage( const wxBitmap &bitmap )
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXPM__
|
||||||
|
// OS/2 Presentation manager conversion routings
|
||||||
|
|
||||||
|
wxBitmap wxImage::ConvertToBitmap() const
|
||||||
|
{
|
||||||
|
if ( !Ok() )
|
||||||
|
return wxNullBitmap;
|
||||||
|
wxBitmap bitmap; // remove
|
||||||
|
// TODO:
|
||||||
|
/*
|
||||||
|
int sizeLimit = 1024*768*3;
|
||||||
|
|
||||||
|
// width and height of the device-dependent bitmap
|
||||||
|
int width = GetWidth();
|
||||||
|
int bmpHeight = GetHeight();
|
||||||
|
|
||||||
|
// calc the number of bytes per scanline and padding
|
||||||
|
int bytePerLine = width*3;
|
||||||
|
int sizeDWORD = sizeof( DWORD );
|
||||||
|
int lineBoundary = bytePerLine % sizeDWORD;
|
||||||
|
int padding = 0;
|
||||||
|
if( lineBoundary > 0 )
|
||||||
|
{
|
||||||
|
padding = sizeDWORD - lineBoundary;
|
||||||
|
bytePerLine += padding;
|
||||||
|
}
|
||||||
|
// calc the number of DIBs and heights of DIBs
|
||||||
|
int numDIB = 1;
|
||||||
|
int hRemain = 0;
|
||||||
|
int height = sizeLimit/bytePerLine;
|
||||||
|
if( height >= bmpHeight )
|
||||||
|
height = bmpHeight;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
numDIB = bmpHeight / height;
|
||||||
|
hRemain = bmpHeight % height;
|
||||||
|
if( hRemain >0 ) numDIB++;
|
||||||
|
}
|
||||||
|
|
||||||
|
// set bitmap parameters
|
||||||
|
wxBitmap bitmap;
|
||||||
|
wxCHECK_MSG( Ok(), bitmap, wxT("invalid image") );
|
||||||
|
bitmap.SetWidth( width );
|
||||||
|
bitmap.SetHeight( bmpHeight );
|
||||||
|
bitmap.SetDepth( wxDisplayDepth() );
|
||||||
|
|
||||||
|
// create a DIB header
|
||||||
|
int headersize = sizeof(BITMAPINFOHEADER);
|
||||||
|
LPBITMAPINFO lpDIBh = (BITMAPINFO *) malloc( headersize );
|
||||||
|
wxCHECK_MSG( lpDIBh, bitmap, wxT("could not allocate memory for DIB header") );
|
||||||
|
// Fill in the DIB header
|
||||||
|
lpDIBh->bmiHeader.biSize = headersize;
|
||||||
|
lpDIBh->bmiHeader.biWidth = (DWORD)width;
|
||||||
|
lpDIBh->bmiHeader.biHeight = (DWORD)(-height);
|
||||||
|
lpDIBh->bmiHeader.biSizeImage = bytePerLine*height;
|
||||||
|
// the general formula for biSizeImage:
|
||||||
|
// ( ( ( ((DWORD)width*24) +31 ) & ~31 ) >> 3 ) * height;
|
||||||
|
lpDIBh->bmiHeader.biPlanes = 1;
|
||||||
|
lpDIBh->bmiHeader.biBitCount = 24;
|
||||||
|
lpDIBh->bmiHeader.biCompression = BI_RGB;
|
||||||
|
lpDIBh->bmiHeader.biClrUsed = 0;
|
||||||
|
// These seem not really needed for our purpose here.
|
||||||
|
lpDIBh->bmiHeader.biClrImportant = 0;
|
||||||
|
lpDIBh->bmiHeader.biXPelsPerMeter = 0;
|
||||||
|
lpDIBh->bmiHeader.biYPelsPerMeter = 0;
|
||||||
|
// memory for DIB data
|
||||||
|
unsigned char *lpBits;
|
||||||
|
lpBits = (unsigned char *)malloc( lpDIBh->bmiHeader.biSizeImage );
|
||||||
|
if( !lpBits )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("could not allocate memory for DIB") );
|
||||||
|
free( lpDIBh );
|
||||||
|
return bitmap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// create and set the device-dependent bitmap
|
||||||
|
HDC hdc = ::GetDC(NULL);
|
||||||
|
HDC memdc = ::CreateCompatibleDC( hdc );
|
||||||
|
HBITMAP hbitmap;
|
||||||
|
hbitmap = ::CreateCompatibleBitmap( hdc, width, bmpHeight );
|
||||||
|
::SelectObject( memdc, hbitmap);
|
||||||
|
|
||||||
|
// copy image data into DIB data and then into DDB (in a loop)
|
||||||
|
unsigned char *data = GetData();
|
||||||
|
int i, j, n;
|
||||||
|
int origin = 0;
|
||||||
|
unsigned char *ptdata = data;
|
||||||
|
unsigned char *ptbits;
|
||||||
|
|
||||||
|
for( n=0; n<numDIB; n++ )
|
||||||
|
{
|
||||||
|
if( numDIB > 1 && n == numDIB-1 && hRemain > 0 )
|
||||||
|
{
|
||||||
|
// redefine height and size of the (possibly) last smaller DIB
|
||||||
|
// memory is not reallocated
|
||||||
|
height = hRemain;
|
||||||
|
lpDIBh->bmiHeader.biHeight = (DWORD)(-height);
|
||||||
|
lpDIBh->bmiHeader.biSizeImage = bytePerLine*height;
|
||||||
|
}
|
||||||
|
ptbits = lpBits;
|
||||||
|
|
||||||
|
for( j=0; j<height; j++ )
|
||||||
|
{
|
||||||
|
for( i=0; i<width; i++ )
|
||||||
|
{
|
||||||
|
*(ptbits++) = *(ptdata+2);
|
||||||
|
*(ptbits++) = *(ptdata+1);
|
||||||
|
*(ptbits++) = *(ptdata );
|
||||||
|
ptdata += 3;
|
||||||
|
}
|
||||||
|
for( i=0; i< padding; i++ ) *(ptbits++) = 0;
|
||||||
|
}
|
||||||
|
::StretchDIBits( memdc, 0, origin, width, height,\
|
||||||
|
0, 0, width, height, lpBits, lpDIBh, DIB_RGB_COLORS, SRCCOPY);
|
||||||
|
origin += height;
|
||||||
|
// if numDIB = 1, lines below can also be used
|
||||||
|
// hbitmap = CreateDIBitmap( hdc, &(lpDIBh->bmiHeader), CBM_INIT, lpBits, lpDIBh, DIB_RGB_COLORS );
|
||||||
|
// The above line is equivalent to the following two lines.
|
||||||
|
// hbitmap = ::CreateCompatibleBitmap( hdc, width, height );
|
||||||
|
// ::SetDIBits( hdc, hbitmap, 0, height, lpBits, lpDIBh, DIB_RGB_COLORS);
|
||||||
|
// or the following lines
|
||||||
|
// hbitmap = ::CreateCompatibleBitmap( hdc, width, height );
|
||||||
|
// HDC memdc = ::CreateCompatibleDC( hdc );
|
||||||
|
// ::SelectObject( memdc, hbitmap);
|
||||||
|
// ::SetDIBitsToDevice( memdc, 0, 0, width, height,
|
||||||
|
// 0, 0, 0, height, (void *)lpBits, lpDIBh, DIB_RGB_COLORS);
|
||||||
|
// ::SelectObject( memdc, 0 );
|
||||||
|
// ::DeleteDC( memdc );
|
||||||
|
}
|
||||||
|
bitmap.SetHBITMAP( (WXHBITMAP) hbitmap );
|
||||||
|
|
||||||
|
// similarly, created an mono-bitmap for the possible mask
|
||||||
|
if( HasMask() )
|
||||||
|
{
|
||||||
|
hbitmap = ::CreateBitmap( (WORD)width, (WORD)bmpHeight, 1, 1, NULL );
|
||||||
|
::SelectObject( memdc, hbitmap);
|
||||||
|
if( numDIB == 1 ) height = bmpHeight;
|
||||||
|
else height = sizeLimit/bytePerLine;
|
||||||
|
lpDIBh->bmiHeader.biHeight = (DWORD)(-height);
|
||||||
|
lpDIBh->bmiHeader.biSizeImage = bytePerLine*height;
|
||||||
|
origin = 0;
|
||||||
|
unsigned char r = GetMaskRed();
|
||||||
|
unsigned char g = GetMaskGreen();
|
||||||
|
unsigned char b = GetMaskBlue();
|
||||||
|
unsigned char zero = 0, one = 255;
|
||||||
|
ptdata = data;
|
||||||
|
for( n=0; n<numDIB; n++ )
|
||||||
|
{
|
||||||
|
if( numDIB > 1 && n == numDIB - 1 && hRemain > 0 )
|
||||||
|
{
|
||||||
|
// redefine height and size of the (possibly) last smaller DIB
|
||||||
|
// memory is not reallocated
|
||||||
|
height = hRemain;
|
||||||
|
lpDIBh->bmiHeader.biHeight = (DWORD)(-height);
|
||||||
|
lpDIBh->bmiHeader.biSizeImage = bytePerLine*height;
|
||||||
|
}
|
||||||
|
ptbits = lpBits;
|
||||||
|
for( int j=0; j<height; j++ )
|
||||||
|
{
|
||||||
|
for(i=0; i<width; i++ )
|
||||||
|
{
|
||||||
|
if( (*(ptdata++)!=r) | (*(ptdata++)!=g) | (*(ptdata++)!=b) )
|
||||||
|
{
|
||||||
|
*(ptbits++) = one;
|
||||||
|
*(ptbits++) = one;
|
||||||
|
*(ptbits++) = one;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*(ptbits++) = zero;
|
||||||
|
*(ptbits++) = zero;
|
||||||
|
*(ptbits++) = zero;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for( i=0; i< padding; i++ ) *(ptbits++) = zero;
|
||||||
|
}
|
||||||
|
::StretchDIBits( memdc, 0, origin, width, height,\
|
||||||
|
0, 0, width, height, lpBits, lpDIBh, DIB_RGB_COLORS, SRCCOPY);
|
||||||
|
origin += height;
|
||||||
|
}
|
||||||
|
// create a wxMask object
|
||||||
|
wxMask *mask = new wxMask();
|
||||||
|
mask->SetMaskBitmap( (WXHBITMAP) hbitmap );
|
||||||
|
bitmap.SetMask( mask );
|
||||||
|
}
|
||||||
|
|
||||||
|
// free allocated resources
|
||||||
|
::SelectObject( memdc, 0 );
|
||||||
|
::DeleteDC( memdc );
|
||||||
|
::ReleaseDC(NULL, hdc);
|
||||||
|
free(lpDIBh);
|
||||||
|
free(lpBits);
|
||||||
|
|
||||||
|
// check the wxBitmap object
|
||||||
|
if( bitmap.GetHBITMAP() )
|
||||||
|
bitmap.SetOk( TRUE );
|
||||||
|
else
|
||||||
|
bitmap.SetOk( FALSE );
|
||||||
|
*/
|
||||||
|
return bitmap;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxImage::wxImage( const wxBitmap &bitmap )
|
||||||
|
{
|
||||||
|
// check the bitmap
|
||||||
|
if( !bitmap.Ok() )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("invalid bitmap") );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// create an wxImage object
|
||||||
|
int width = bitmap.GetWidth();
|
||||||
|
int height = bitmap.GetHeight();
|
||||||
|
Create( width, height );
|
||||||
|
unsigned char *data = GetData();
|
||||||
|
if( !data )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("could not allocate data for image") );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// calc the number of bytes per scanline and padding in the DIB
|
||||||
|
int bytePerLine = width*3;
|
||||||
|
int sizeDWORD = sizeof( DWORD );
|
||||||
|
int lineBoundary = bytePerLine % sizeDWORD;
|
||||||
|
int padding = 0;
|
||||||
|
if( lineBoundary > 0 )
|
||||||
|
{
|
||||||
|
padding = sizeDWORD - lineBoundary;
|
||||||
|
bytePerLine += padding;
|
||||||
|
}
|
||||||
|
// TODO:
|
||||||
|
/*
|
||||||
|
// create a DIB header
|
||||||
|
int headersize = sizeof(BITMAPINFOHEADER);
|
||||||
|
LPBITMAPINFO lpDIBh = (BITMAPINFO *) malloc( headersize );
|
||||||
|
if( !lpDIBh )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("could not allocate data for DIB header") );
|
||||||
|
free( data );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// Fill in the DIB header
|
||||||
|
lpDIBh->bmiHeader.biSize = headersize;
|
||||||
|
lpDIBh->bmiHeader.biWidth = width;
|
||||||
|
lpDIBh->bmiHeader.biHeight = -height;
|
||||||
|
lpDIBh->bmiHeader.biSizeImage = bytePerLine * height;
|
||||||
|
lpDIBh->bmiHeader.biPlanes = 1;
|
||||||
|
lpDIBh->bmiHeader.biBitCount = 24;
|
||||||
|
lpDIBh->bmiHeader.biCompression = BI_RGB;
|
||||||
|
lpDIBh->bmiHeader.biClrUsed = 0;
|
||||||
|
// These seem not really needed for our purpose here.
|
||||||
|
lpDIBh->bmiHeader.biClrImportant = 0;
|
||||||
|
lpDIBh->bmiHeader.biXPelsPerMeter = 0;
|
||||||
|
lpDIBh->bmiHeader.biYPelsPerMeter = 0;
|
||||||
|
// memory for DIB data
|
||||||
|
unsigned char *lpBits;
|
||||||
|
lpBits = (unsigned char *) malloc( lpDIBh->bmiHeader.biSizeImage );
|
||||||
|
if( !lpBits )
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("could not allocate data for DIB") );
|
||||||
|
free( data );
|
||||||
|
free( lpDIBh );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// copy data from the device-dependent bitmap to the DIB
|
||||||
|
HDC hdc = ::GetDC(NULL);
|
||||||
|
HBITMAP hbitmap;
|
||||||
|
hbitmap = (HBITMAP) bitmap.GetHBITMAP();
|
||||||
|
::GetDIBits( hdc, hbitmap, 0, height, lpBits, lpDIBh, DIB_RGB_COLORS );
|
||||||
|
|
||||||
|
// copy DIB data into the wxImage object
|
||||||
|
int i, j;
|
||||||
|
unsigned char *ptdata = data;
|
||||||
|
unsigned char *ptbits = lpBits;
|
||||||
|
for( i=0; i<height; i++ )
|
||||||
|
{
|
||||||
|
for( j=0; j<width; j++ )
|
||||||
|
{
|
||||||
|
*(ptdata++) = *(ptbits+2);
|
||||||
|
*(ptdata++) = *(ptbits+1);
|
||||||
|
*(ptdata++) = *(ptbits );
|
||||||
|
ptbits += 3;
|
||||||
|
}
|
||||||
|
ptbits += padding;
|
||||||
|
}
|
||||||
|
|
||||||
|
// similarly, set data according to the possible mask bitmap
|
||||||
|
if( bitmap.GetMask() && bitmap.GetMask()->GetMaskBitmap() )
|
||||||
|
{
|
||||||
|
hbitmap = (HBITMAP) bitmap.GetMask()->GetMaskBitmap();
|
||||||
|
// memory DC created, color set, data copied, and memory DC deleted
|
||||||
|
HDC memdc = ::CreateCompatibleDC( hdc );
|
||||||
|
::SetTextColor( memdc, RGB( 0, 0, 0 ) );
|
||||||
|
::SetBkColor( memdc, RGB( 255, 255, 255 ) );
|
||||||
|
::GetDIBits( memdc, hbitmap, 0, height, lpBits, lpDIBh, DIB_RGB_COLORS );
|
||||||
|
::DeleteDC( memdc );
|
||||||
|
// background color set to RGB(16,16,16) in consistent with wxGTK
|
||||||
|
unsigned char r=16, g=16, b=16;
|
||||||
|
ptdata = data;
|
||||||
|
ptbits = lpBits;
|
||||||
|
for( i=0; i<height; i++ )
|
||||||
|
{
|
||||||
|
for( j=0; j<width; j++ )
|
||||||
|
{
|
||||||
|
if( *ptbits != 0 )
|
||||||
|
ptdata += 3;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*(ptdata++) = r;
|
||||||
|
*(ptdata++) = g;
|
||||||
|
*(ptdata++) = b;
|
||||||
|
}
|
||||||
|
ptbits += 3;
|
||||||
|
}
|
||||||
|
ptbits += padding;
|
||||||
|
}
|
||||||
|
SetMaskColour( r, g, b );
|
||||||
|
SetMask( TRUE );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetMask( FALSE );
|
||||||
|
}
|
||||||
|
// free allocated resources
|
||||||
|
::ReleaseDC(NULL, hdc);
|
||||||
|
free(lpDIBh);
|
||||||
|
free(lpBits);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
// A module to allow wxImage initialization/cleanup
|
// A module to allow wxImage initialization/cleanup
|
||||||
// without calling these functions from app.cpp or from
|
// without calling these functions from app.cpp or from
|
||||||
// the user's application.
|
// the user's application.
|
||||||
|
@@ -123,7 +123,7 @@ static int lex_input() {
|
|||||||
# define input() my_input()
|
# define input() my_input()
|
||||||
static int my_unput(char c)
|
static int my_unput(char c)
|
||||||
{
|
{
|
||||||
if (lex_read_from_string) {
|
if (lex_read_from_string != 0) {
|
||||||
/* Make sure we have something */
|
/* Make sure we have something */
|
||||||
if (lex_string_ptr) {
|
if (lex_string_ptr) {
|
||||||
if (c == '\n') yylineno--;
|
if (c == '\n') yylineno--;
|
||||||
|
@@ -1329,8 +1329,8 @@ void wxPostScriptDC::SetAxisOrientation( bool xLeftRight, bool yBottomUp )
|
|||||||
m_signX = (xLeftRight ? 1 : -1);
|
m_signX = (xLeftRight ? 1 : -1);
|
||||||
m_signY = (yBottomUp ? 1 : -1);
|
m_signY = (yBottomUp ? 1 : -1);
|
||||||
|
|
||||||
// FIXME there is no such function in MSW
|
// FIXME there is no such function in MSW nor in OS2/PM
|
||||||
#ifndef __WXMSW__
|
#if !defined(__WXMSW__) && !defined(__WXPM__)
|
||||||
ComputeScaleAndOrigin();
|
ComputeScaleAndOrigin();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifndef __WINDOWS__
|
#if !defined(__WINDOWS__) && !defined(__OS2__)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ wxExtHelpController::DisplayHelp(wxString const &relativeURL)
|
|||||||
wxBusyCursor b; // display a busy cursor
|
wxBusyCursor b; // display a busy cursor
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#if defined(__WXMSW__)
|
||||||
wxString url;
|
wxString url;
|
||||||
url << m_MapFile << '\\' << relativeURL.BeforeFirst('#');
|
url << m_MapFile << '\\' << relativeURL.BeforeFirst('#');
|
||||||
bool bOk = (int)ShellExecute(NULL, "open", url,
|
bool bOk = (int)ShellExecute(NULL, "open", url,
|
||||||
@@ -94,6 +94,19 @@ wxExtHelpController::DisplayHelp(wxString const &relativeURL)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
|
#elif defined(__WXPM__)
|
||||||
|
wxString url;
|
||||||
|
url << m_MapFile << '\\' << relativeURL.BeforeFirst('#');
|
||||||
|
// will have to fix for OS/2, later.....DW
|
||||||
|
// bool bOk = (int)ShellExecute(NULL, "open", url,
|
||||||
|
// NULL, NULL, SW_SHOWNORMAL ) > 32;
|
||||||
|
// if ( !bOk )
|
||||||
|
// {
|
||||||
|
// wxLogSysError(_("Cannot open URL '%s'"), relativeURL.c_str());
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
// assume UNIX
|
// assume UNIX
|
||||||
wxString command;
|
wxString command;
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __WINDOWS__
|
#if !defined(__WINDOWS__) && !defined(__OS2__)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __WINDOWS__
|
#if !defined(__WINDOWS__) && !defined(__OS2__)
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -2414,7 +2414,7 @@ void wxListMainWindow::InsertColumn( long col, wxListItem &item )
|
|||||||
wxListCtrlCompare list_ctrl_compare_func_2;
|
wxListCtrlCompare list_ctrl_compare_func_2;
|
||||||
long list_ctrl_compare_data;
|
long list_ctrl_compare_data;
|
||||||
|
|
||||||
int list_ctrl_compare_func_1( const void *arg1, const void *arg2 )
|
int LINKAGEMODE list_ctrl_compare_func_1( const void *arg1, const void *arg2 )
|
||||||
{
|
{
|
||||||
wxListLineData *line1 = *((wxListLineData**)arg1);
|
wxListLineData *line1 = *((wxListLineData**)arg1);
|
||||||
wxListLineData *line2 = *((wxListLineData**)arg2);
|
wxListLineData *line2 = *((wxListLineData**)arg2);
|
||||||
|
@@ -1285,7 +1285,7 @@ void wxTreeCtrl::ScrollTo(const wxTreeItemId &item)
|
|||||||
// FIXME: tree sorting functions are not reentrant and not MT-safe!
|
// FIXME: tree sorting functions are not reentrant and not MT-safe!
|
||||||
static wxTreeCtrl *s_treeBeingSorted = NULL;
|
static wxTreeCtrl *s_treeBeingSorted = NULL;
|
||||||
|
|
||||||
static int tree_ctrl_compare_func(wxGenericTreeItem **item1,
|
static int LINKAGEMODE tree_ctrl_compare_func(wxGenericTreeItem **item1,
|
||||||
wxGenericTreeItem **item2)
|
wxGenericTreeItem **item2)
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( s_treeBeingSorted, 0, wxT("bug in wxTreeCtrl::SortChildren()") );
|
wxCHECK_MSG( s_treeBeingSorted, 0, wxT("bug in wxTreeCtrl::SortChildren()") );
|
||||||
|
@@ -436,8 +436,6 @@ bool wxGetClipboardFormatName(wxDataFormat dataFormat,
|
|||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
|
IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
|
||||||
|
|
||||||
wxClipboard* wxTheClipboard = (wxClipboard *)NULL;
|
|
||||||
|
|
||||||
wxClipboard::wxClipboard()
|
wxClipboard::wxClipboard()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -81,6 +81,16 @@ bool wxDropTarget::OnData(
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wxDragResult wxDropTarget::OnData(
|
||||||
|
wxCoord x
|
||||||
|
, wxCoord y
|
||||||
|
, wxDragResult vResult
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//TODO:
|
||||||
|
return (wxDragResult)0;
|
||||||
|
};
|
||||||
|
|
||||||
bool wxDropTarget::GetData()
|
bool wxDropTarget::GetData()
|
||||||
{
|
{
|
||||||
//TODO:
|
//TODO:
|
||||||
@@ -99,11 +109,6 @@ bool wxDropTarget::IsAcceptable(
|
|||||||
// wxTextDropTarget
|
// wxTextDropTarget
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
wxTextDropTarget::wxTextDropTarget()
|
|
||||||
{
|
|
||||||
// TODO:
|
|
||||||
}
|
|
||||||
|
|
||||||
wxTextDropTarget::~wxTextDropTarget()
|
wxTextDropTarget::~wxTextDropTarget()
|
||||||
{
|
{
|
||||||
// TODO:
|
// TODO:
|
||||||
@@ -122,11 +127,6 @@ bool wxTextDropTarget::OnData(
|
|||||||
// wxFileDropTarget
|
// wxFileDropTarget
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
wxFileDropTarget::wxFileDropTarget()
|
|
||||||
{
|
|
||||||
// TODO:
|
|
||||||
}
|
|
||||||
|
|
||||||
wxFileDropTarget::~wxFileDropTarget()
|
wxFileDropTarget::~wxFileDropTarget()
|
||||||
{
|
{
|
||||||
// TODO:
|
// TODO:
|
||||||
|
@@ -51,7 +51,9 @@ bool wxFrame::m_useNativeStatusBar = FALSE;
|
|||||||
|
|
||||||
wxFrame::wxFrame()
|
wxFrame::wxFrame()
|
||||||
{
|
{
|
||||||
|
#if wxUSE_TOOLBAR
|
||||||
m_frameToolBar = NULL ;
|
m_frameToolBar = NULL ;
|
||||||
|
#endif
|
||||||
m_frameMenuBar = NULL;
|
m_frameMenuBar = NULL;
|
||||||
m_frameStatusBar = NULL;
|
m_frameStatusBar = NULL;
|
||||||
|
|
||||||
@@ -74,7 +76,9 @@ bool wxFrame::Create( wxWindow *parent
|
|||||||
SetName(name);
|
SetName(name);
|
||||||
m_windowStyle = style;
|
m_windowStyle = style;
|
||||||
m_frameMenuBar = NULL;
|
m_frameMenuBar = NULL;
|
||||||
|
#if wxUSE_TOOLBAR
|
||||||
m_frameToolBar = NULL ;
|
m_frameToolBar = NULL ;
|
||||||
|
#endif
|
||||||
m_frameStatusBar = NULL;
|
m_frameStatusBar = NULL;
|
||||||
|
|
||||||
SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_APPWORKSPACE));
|
SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_APPWORKSPACE));
|
||||||
@@ -666,6 +670,7 @@ bool wxFrame::ProcessCommand(int id)
|
|||||||
wxPoint wxFrame::GetClientAreaOrigin() const
|
wxPoint wxFrame::GetClientAreaOrigin() const
|
||||||
{
|
{
|
||||||
wxPoint pt(0, 0);
|
wxPoint pt(0, 0);
|
||||||
|
#if wxUSE_TOOLBAR
|
||||||
if (GetToolBar())
|
if (GetToolBar())
|
||||||
{
|
{
|
||||||
int w, h;
|
int w, h;
|
||||||
@@ -680,6 +685,7 @@ wxPoint wxFrame::GetClientAreaOrigin() const
|
|||||||
pt.y += h;
|
pt.y += h;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return pt;
|
return pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -905,7 +911,9 @@ bool wxFrame::HandleSize(int x, int y, WXUINT id)
|
|||||||
if ( !m_iconized )
|
if ( !m_iconized )
|
||||||
{
|
{
|
||||||
PositionStatusBar();
|
PositionStatusBar();
|
||||||
|
#if wxUSE_TOOLBAR
|
||||||
PositionToolBar();
|
PositionToolBar();
|
||||||
|
#endif
|
||||||
|
|
||||||
wxSizeEvent event(wxSize(x, y), m_windowId);
|
wxSizeEvent event(wxSize(x, y), m_windowId);
|
||||||
event.SetEventObject( this );
|
event.SetEventObject( this );
|
||||||
|
@@ -88,7 +88,6 @@ GENERICOBJS= \
|
|||||||
..\generic\$D\colrdlgg.obj \
|
..\generic\$D\colrdlgg.obj \
|
||||||
..\generic\$D\dcpsg.obj \
|
..\generic\$D\dcpsg.obj \
|
||||||
..\generic\$D\grid.obj \
|
..\generic\$D\grid.obj \
|
||||||
..\generic\$D\gridg.obj \
|
|
||||||
..\generic\$D\helpext.obj \
|
..\generic\$D\helpext.obj \
|
||||||
..\generic\$D\helphtml.obj \
|
..\generic\$D\helphtml.obj \
|
||||||
..\generic\$D\helpwxht.obj \
|
..\generic\$D\helpwxht.obj \
|
||||||
@@ -114,6 +113,7 @@ GENERICOBJS= \
|
|||||||
..\generic\$D\treectrl.obj \
|
..\generic\$D\treectrl.obj \
|
||||||
..\generic\$D\tipdlg.obj
|
..\generic\$D\tipdlg.obj
|
||||||
|
|
||||||
|
# ..\generic\$D\gridg.obj \
|
||||||
# ..\generic\$D\notebook.obj \
|
# ..\generic\$D\notebook.obj \
|
||||||
|
|
||||||
GENLIBOBJS= \
|
GENLIBOBJS= \
|
||||||
@@ -123,7 +123,6 @@ GENLIBOBJS= \
|
|||||||
colrdlgg.obj \
|
colrdlgg.obj \
|
||||||
dcpsg.obj \
|
dcpsg.obj \
|
||||||
grid.obj \
|
grid.obj \
|
||||||
gridg.obj \
|
|
||||||
helpext.obj \
|
helpext.obj \
|
||||||
helphtml.obj \
|
helphtml.obj \
|
||||||
helpwxht.obj \
|
helpwxht.obj \
|
||||||
@@ -462,22 +461,20 @@ OS2LIBOBJS1 = \
|
|||||||
gsocket.obj \
|
gsocket.obj \
|
||||||
helpwin.obj \
|
helpwin.obj \
|
||||||
icon.obj \
|
icon.obj \
|
||||||
imaglist.obj \
|
|
||||||
iniconf.obj \
|
iniconf.obj \
|
||||||
joystick.obj \
|
joystick.obj \
|
||||||
listbox.obj \
|
listbox.obj \
|
||||||
listctrl.obj \
|
|
||||||
main.obj \
|
main.obj \
|
||||||
mdi.obj \
|
mdi.obj \
|
||||||
menu.obj \
|
menu.obj \
|
||||||
menuitem.obj \
|
menuitem.obj \
|
||||||
metafile.obj \
|
metafile.obj \
|
||||||
minifram.obj \
|
minifram.obj \
|
||||||
msgdlg.obj
|
msgdlg.obj \
|
||||||
|
nativdlg.obj \
|
||||||
|
notebook.obj
|
||||||
|
|
||||||
OS2LIBOBJS2 = \
|
OS2LIBOBJS2 = \
|
||||||
nativdlg.obj \
|
|
||||||
notebook.obj \
|
|
||||||
ownerdrw.obj \
|
ownerdrw.obj \
|
||||||
palette.obj \
|
palette.obj \
|
||||||
pen.obj \
|
pen.obj \
|
||||||
@@ -495,15 +492,13 @@ OS2LIBOBJS2 = \
|
|||||||
statbox.obj \
|
statbox.obj \
|
||||||
stattext.obj \
|
stattext.obj \
|
||||||
statline.obj \
|
statline.obj \
|
||||||
statbrpm.obj \
|
|
||||||
tabctrl.obj \
|
tabctrl.obj \
|
||||||
taskbar.obj \
|
taskbar.obj \
|
||||||
textctrl.obj \
|
textctrl.obj \
|
||||||
thread.obj \
|
thread.obj \
|
||||||
timer.obj \
|
timer.obj \
|
||||||
toolbar.obj \
|
# toolbar.obj \
|
||||||
tooltip.obj \
|
tooltip.obj \
|
||||||
treectrl.obj \
|
|
||||||
utils.obj \
|
utils.obj \
|
||||||
utilsexc.obj \
|
utilsexc.obj \
|
||||||
wave.obj \
|
wave.obj \
|
||||||
@@ -663,7 +658,6 @@ $(GENLIBOBJS):
|
|||||||
copy ..\generic\$D\colrdlgg.obj
|
copy ..\generic\$D\colrdlgg.obj
|
||||||
copy ..\generic\$D\dcpsg.obj
|
copy ..\generic\$D\dcpsg.obj
|
||||||
copy ..\generic\$D\grid.obj
|
copy ..\generic\$D\grid.obj
|
||||||
copy ..\generic\$D\gridg.obj
|
|
||||||
copy ..\generic\$D\helpext.obj
|
copy ..\generic\$D\helpext.obj
|
||||||
copy ..\generic\$D\helphtml.obj
|
copy ..\generic\$D\helphtml.obj
|
||||||
copy ..\generic\$D\helpwxht.obj
|
copy ..\generic\$D\helpwxht.obj
|
||||||
@@ -723,11 +717,9 @@ $(OS2LIBOBJS1):
|
|||||||
copy ..\os2\$D\gsocket.obj
|
copy ..\os2\$D\gsocket.obj
|
||||||
copy ..\os2\$D\helpwin.obj
|
copy ..\os2\$D\helpwin.obj
|
||||||
copy ..\os2\$D\icon.obj
|
copy ..\os2\$D\icon.obj
|
||||||
copy ..\os2\$D\imaglist.obj
|
|
||||||
copy ..\os2\$D\iniconf.obj
|
copy ..\os2\$D\iniconf.obj
|
||||||
copy ..\os2\$D\joystick.obj
|
copy ..\os2\$D\joystick.obj
|
||||||
copy ..\os2\$D\listbox.obj
|
copy ..\os2\$D\listbox.obj
|
||||||
copy ..\os2\$D\listctrl.obj
|
|
||||||
copy ..\os2\$D\main.obj
|
copy ..\os2\$D\main.obj
|
||||||
copy ..\os2\$D\mdi.obj
|
copy ..\os2\$D\mdi.obj
|
||||||
copy ..\os2\$D\menu.obj
|
copy ..\os2\$D\menu.obj
|
||||||
@@ -735,10 +727,10 @@ $(OS2LIBOBJS1):
|
|||||||
copy ..\os2\$D\metafile.obj
|
copy ..\os2\$D\metafile.obj
|
||||||
copy ..\os2\$D\minifram.obj
|
copy ..\os2\$D\minifram.obj
|
||||||
copy ..\os2\$D\msgdlg.obj
|
copy ..\os2\$D\msgdlg.obj
|
||||||
|
|
||||||
$(OS2LIBOBJS2):
|
|
||||||
copy ..\os2\$D\nativdlg.obj
|
copy ..\os2\$D\nativdlg.obj
|
||||||
copy ..\os2\$D\notebook.obj
|
copy ..\os2\$D\notebook.obj
|
||||||
|
|
||||||
|
$(OS2LIBOBJS2):
|
||||||
copy ..\os2\$D\ownerdrw.obj
|
copy ..\os2\$D\ownerdrw.obj
|
||||||
copy ..\os2\$D\palette.obj
|
copy ..\os2\$D\palette.obj
|
||||||
copy ..\os2\$D\pen.obj
|
copy ..\os2\$D\pen.obj
|
||||||
@@ -756,15 +748,13 @@ $(OS2LIBOBJS2):
|
|||||||
copy ..\os2\$D\statbox.obj
|
copy ..\os2\$D\statbox.obj
|
||||||
copy ..\os2\$D\statline.obj
|
copy ..\os2\$D\statline.obj
|
||||||
copy ..\os2\$D\stattext.obj
|
copy ..\os2\$D\stattext.obj
|
||||||
copy ..\os2\$D\statbrpm.obj
|
|
||||||
copy ..\os2\$D\tabctrl.obj
|
copy ..\os2\$D\tabctrl.obj
|
||||||
copy ..\os2\$D\taskbar.obj
|
copy ..\os2\$D\taskbar.obj
|
||||||
copy ..\os2\$D\textctrl.obj
|
copy ..\os2\$D\textctrl.obj
|
||||||
copy ..\os2\$D\thread.obj
|
copy ..\os2\$D\thread.obj
|
||||||
copy ..\os2\$D\timer.obj
|
copy ..\os2\$D\timer.obj
|
||||||
copy ..\os2\$D\toolbar.obj
|
# copy ..\os2\$D\toolbar.obj
|
||||||
copy ..\os2\$D\tooltip.obj
|
copy ..\os2\$D\tooltip.obj
|
||||||
copy ..\os2\$D\treectrl.obj
|
|
||||||
copy ..\os2\$D\utils.obj
|
copy ..\os2\$D\utils.obj
|
||||||
copy ..\os2\$D\utilsexc.obj
|
copy ..\os2\$D\utilsexc.obj
|
||||||
copy ..\os2\$D\wave.obj
|
copy ..\os2\$D\wave.obj
|
||||||
|
@@ -24,6 +24,9 @@
|
|||||||
|
|
||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
|
|
||||||
|
#if !USE_SHARED_LIBRARIES
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Palette
|
* Palette
|
||||||
|
@@ -24,6 +24,10 @@
|
|||||||
#include "wx/os2/private.h"
|
#include "wx/os2/private.h"
|
||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
|
|
||||||
|
#if !USE_SHARED_LIBRARIES
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxPen, wxGDIObject)
|
||||||
|
#endif
|
||||||
|
|
||||||
wxPenRefData::wxPenRefData()
|
wxPenRefData::wxPenRefData()
|
||||||
{
|
{
|
||||||
m_style = wxSOLID;
|
m_style = wxSOLID;
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#if !USE_SHARED_LIBRARY
|
#if !USE_SHARED_LIBRARY
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxBitmapRadioButton, wxRadioButton)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool wxRadioButton::OS2Command(WXUINT param, WXWORD id)
|
bool wxRadioButton::OS2Command(WXUINT param, WXWORD id)
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
#include "wx/os2/tabctrl.h"
|
#include "wx/os2/tabctrl.h"
|
||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
#include "wx/os2/private.h"
|
#include "wx/os2/private.h"
|
||||||
#include "wx/os2/imaglist.h"
|
#include "wx/generic/imaglist.h"
|
||||||
|
|
||||||
#if !USE_SHARED_LIBRARY
|
#if !USE_SHARED_LIBRARY
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
|
||||||
|
@@ -65,17 +65,17 @@ bool wxGetHostName(
|
|||||||
#if wxUSE_NET_API
|
#if wxUSE_NET_API
|
||||||
char zServer[256];
|
char zServer[256];
|
||||||
char zComputer[256];
|
char zComputer[256];
|
||||||
unsigned long ulLevel;
|
unsigned short nLevel = 0;
|
||||||
unsigned char* zBuffer;
|
unsigned char* zBuffer;
|
||||||
unsigned long ulBuffer;
|
unsigned short nBuffer;
|
||||||
unsigned long* pulTotalAvail;
|
unsigned short* pnTotalAvail;
|
||||||
|
|
||||||
NetBiosGetInfo( (const unsigned char*)zServer
|
NetBiosGetInfo( (const unsigned char*)zServer
|
||||||
,(const unsigned char*)zComputer
|
,(const unsigned char*)zComputer
|
||||||
,ulLevel
|
,nLevel
|
||||||
,zBuffer
|
,zBuffer
|
||||||
,ulBuffer
|
,nBuffer
|
||||||
,pulTotalAvail
|
,pnTotalAvail
|
||||||
);
|
);
|
||||||
strcpy(zBuf, zServer);
|
strcpy(zBuf, zServer);
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user