Split up wxStream doc files; added wxTCP... files; added wxBusyCursor;
added overloaded wxGetHostName etc. functions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -811,3 +811,41 @@ int isascii( int c )
|
||||
return ( c >= 0 && c < 128 ) ;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Overloaded functions, taking a wxString
|
||||
bool wxGetHostName(wxString& name)
|
||||
{
|
||||
bool success = wxGetHostName(wxBuffer, 500);
|
||||
if (success)
|
||||
{
|
||||
name = wxBuffer;
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool wxGetUserId(wxString& buf)
|
||||
{
|
||||
bool success = wxGetUserId(wxBuffer, 500);
|
||||
if (success)
|
||||
{
|
||||
buf = wxBuffer;
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool wxGetUserName(wxString& buf)
|
||||
{
|
||||
bool success = wxGetUserName(wxBuffer, 500);
|
||||
if (success)
|
||||
{
|
||||
buf = wxBuffer;
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@@ -20,13 +20,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
struct wxBusyCursor
|
||||
{
|
||||
wxBusyCursor() { wxBeginBusyCursor(); }
|
||||
~wxBusyCursor() { wxEndBusyCursor(); }
|
||||
};
|
||||
|
||||
IMPLEMENT_CLASS(wxExtHelpController, wxHTMLHelpControllerBase)
|
||||
|
||||
/**
|
||||
|
@@ -33,13 +33,6 @@ public:
|
||||
{ id = iid; url = iurl; doc = idoc; }
|
||||
};
|
||||
|
||||
|
||||
struct wxBusyCursor
|
||||
{
|
||||
wxBusyCursor() { wxBeginBusyCursor(); }
|
||||
~wxBusyCursor() { wxEndBusyCursor(); }
|
||||
};
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxHTMLHelpControllerBase, wxHelpControllerBase)
|
||||
|
||||
/**
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#include "wx/app.h"
|
||||
#endif
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/dde.h"
|
||||
|
||||
#ifndef __TWIN32__
|
||||
@@ -40,6 +40,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
#include <windows.h>
|
||||
#include <ddeml.h>
|
||||
#include <string.h>
|
||||
@@ -120,6 +121,21 @@ void wxDDECleanUp()
|
||||
delete [] DDEDefaultIPCBuffer ;
|
||||
}
|
||||
|
||||
// A module to allow DDE initialization/cleanup
|
||||
// without calling these functions from app.cpp or from
|
||||
// the user's application.
|
||||
|
||||
class wxDDEModule: public wxModule
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxDDEModule)
|
||||
public:
|
||||
wxDDEModule() {}
|
||||
bool OnInit() { wxDDEInitialize(); return TRUE; };
|
||||
void OnExit() { wxDDECleanUp(); };
|
||||
};
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxDDEModule, wxModule)
|
||||
|
||||
// Global find connection
|
||||
static wxDDEConnection *DDEFindConnection(HCONV hConv)
|
||||
{
|
||||
|
Reference in New Issue
Block a user