**************************************************************************/
void ClearSystemPalette(void);
-PDIB DibOpenFile(LPSTR szFile);
-int DibWriteFile(LPSTR szFile, LPBITMAPINFOHEADER lpbi);
+PDIB DibOpenFile(LPTSTR szFile);
+int DibWriteFile(LPTSTR szFile, LPBITMAPINFOHEADER lpbi);
BOOL DibSetUsage(PDIB pdib, HPALETTE hpal,UINT wUsage);
PDIB DibCreate(int bits, int dx, int dy);
BOOL DibMapToPalette(PDIB pdib, HPALETTE hpal);
bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
bool HandleMenuSelect(WXWORD nItem, WXWORD nFlags, WXHMENU hMenu);
- bool MSWCreate(int id, wxWindow *parent, const char *wclass,
- wxWindow *wx_win, const char *title,
+ bool MSWCreate(int id, wxWindow *parent, const wxChar *wclass,
+ wxWindow *wx_win, const wxChar *title,
int x, int y, int width, int height, long style);
// tooltip management
// Add to pool: necessary because Windows needs to have a string
// still exist across 3 callbacks.
- char *AddPool(const wxString& str);
+ wxChar *AddPool(const wxString& str);
protected:
wxTextCtrl* m_textCtrl; // The control used for editing a label
// notifications: return FALSE to prevent the menu from being
// appended/deleted
- virtual bool OnAppend(wxMenu *menu, const char *title);
+ virtual bool OnAppend(wxMenu *menu, const wxChar *title);
virtual bool OnDelete(wxMenu *menu, int index);
// item search
{
protected:
int filetype;
- char filename[255];
+ wxChar filename[255];
ImagePointerType RawImage; // Image data
int Width, Height; // Dimensions
friend class wxPNGReaderIter;
public:
wxPNGReader(void);
- wxPNGReader (char* ImageFileName); // Read an image file
+ wxPNGReader (wxChar* ImageFileName); // Read an image file
~wxPNGReader ();
void Create(int width, int height, int deep, int colortype=-1);
- bool ReadFile( char* ImageFileName=0 );
- bool SaveFile( char* ImageFileName=0 );
- bool SaveXPM(char *filename, char *name = 0);
+ bool ReadFile( wxChar* ImageFileName=0 );
+ bool SaveFile( wxChar* ImageFileName=0 );
+ bool SaveXPM(wxChar *filename, wxChar *name = 0);
int GetWidth( void ) const { return Width; };
int GetHeight( void ) const { return Height; };
int GetDepth( void ) const { return Depth; };
// returns TRUE if the window has been created
bool MSWCreate(int id,
wxWindow *parent,
- const char *wclass,
+ const wxChar *wclass,
wxWindow *wx_win,
- const char *title,
+ const wxChar *title,
int x, int y, int width, int height,
WXDWORD style,
- const char *dialog_template = NULL,
+ const wxChar *dialog_template = NULL,
WXDWORD exendedStyle = 0);
virtual bool MSWCommand(WXUINT param, WXWORD id);