No real changes, just fix some typos in comments in wxMSW code.
Closes #14994. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,7 +61,7 @@ namespace
|
|||||||
// space around check mark bitmap in pixels
|
// space around check mark bitmap in pixels
|
||||||
static const int CHECKMARK_EXTRA_SPACE = 1;
|
static const int CHECKMARK_EXTRA_SPACE = 1;
|
||||||
|
|
||||||
// space betwen check bitmap and text label
|
// space between check bitmap and text label
|
||||||
static const int CHECKMARK_LABEL_SPACE = 2;
|
static const int CHECKMARK_LABEL_SPACE = 2;
|
||||||
|
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
@@ -1284,7 +1284,7 @@ static DWORD wxRasMonitorThread(wxRasThreadData *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we don't need it any more now and if this thread ran, it is our
|
// we don't need it any more now and if this thread ran, it is our
|
||||||
// responsability to free the data
|
// responsibility to free the data
|
||||||
delete data;
|
delete data;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -1540,14 +1540,14 @@ wxString wxAMMediaBackend::GetErrorString(HRESULT hrdsv)
|
|||||||
{
|
{
|
||||||
return wxString::Format(wxT("DirectShow error \"%s\" \n")
|
return wxString::Format(wxT("DirectShow error \"%s\" \n")
|
||||||
wxT("(numeric %X)\n")
|
wxT("(numeric %X)\n")
|
||||||
wxT("occured"),
|
wxT("occurred"),
|
||||||
szError, (int)hrdsv);
|
szError, (int)hrdsv);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return wxString::Format(wxT("Unknown error \n")
|
return wxString::Format(wxT("Unknown error \n")
|
||||||
wxT("(numeric %X)\n")
|
wxT("(numeric %X)\n")
|
||||||
wxT("occured"),
|
wxT("occurred"),
|
||||||
(int)hrdsv);
|
(int)hrdsv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
// is about to be played - and if the user didn't change the state of the
|
// is about to be played - and if the user didn't change the state of the
|
||||||
// media (m_bWasStateChanged), when set it back to the stop state.
|
// media (m_bWasStateChanged), when set it back to the stop state.
|
||||||
//
|
//
|
||||||
// The ActiveX control itself is particularily stubborn, calling
|
// The ActiveX control itself is particularly stubborn, calling
|
||||||
// IOleInPlaceSite::OnPosRectChange every file change trying to set itself
|
// IOleInPlaceSite::OnPosRectChange every file change trying to set itself
|
||||||
// to something different then what we told it to before.
|
// to something different then what we told it to before.
|
||||||
//
|
//
|
||||||
@@ -861,7 +861,7 @@ bool wxWMP10MediaBackend::CreateControl(wxControl* ctrl, wxWindow* parent,
|
|||||||
IWMPPlayer2* pWMPPlayer2; // Only 2 has windowless video and stretchtofit
|
IWMPPlayer2* pWMPPlayer2; // Only 2 has windowless video and stretchtofit
|
||||||
if(m_pWMPPlayer->QueryInterface(IID_IWMPPlayer2, (void**)&pWMPPlayer2) == 0)
|
if(m_pWMPPlayer->QueryInterface(IID_IWMPPlayer2, (void**)&pWMPPlayer2) == 0)
|
||||||
{
|
{
|
||||||
// We don't check errors here as these arn't particularily important
|
// We don't check errors here as these arn't particularly important
|
||||||
// and may not be implemented (i.e. stretchToFit on CE)
|
// and may not be implemented (i.e. stretchToFit on CE)
|
||||||
pWMPPlayer2->put_windowlessVideo(VARIANT_TRUE);
|
pWMPPlayer2->put_windowlessVideo(VARIANT_TRUE);
|
||||||
pWMPPlayer2->put_stretchToFit(VARIANT_TRUE);
|
pWMPPlayer2->put_stretchToFit(VARIANT_TRUE);
|
||||||
@@ -1472,7 +1472,7 @@ wxFORCE_LINK_THIS_MODULE(wxmediabackend_wmp10)
|
|||||||
// you playing a file through WMP.
|
// you playing a file through WMP.
|
||||||
//
|
//
|
||||||
// Here are those hacks. They do indeed "work" as expected - just call
|
// Here are those hacks. They do indeed "work" as expected - just call
|
||||||
// SendMessage with one of those myterious values layed out in
|
// SendMessage with one of those myterious values laid out in
|
||||||
// Peter Foot's Friday, May 21, 2004 Blog Post on the issue.
|
// Peter Foot's Friday, May 21, 2004 Blog Post on the issue.
|
||||||
// (He says they are in a registery section entitled "Pendant Bus")
|
// (He says they are in a registery section entitled "Pendant Bus")
|
||||||
//
|
//
|
||||||
|
@@ -1269,7 +1269,7 @@ void wxActiveXContainer::OnKillFocus(wxFocusEvent& event)
|
|||||||
// wxActiveXContainer::MSWTranslateMessage
|
// wxActiveXContainer::MSWTranslateMessage
|
||||||
//
|
//
|
||||||
// Called for every message that needs to be translated.
|
// Called for every message that needs to be translated.
|
||||||
// Some controls might need more keyboard keys to process (CTRL-C, CTRL-A ect),
|
// Some controls might need more keyboard keys to process (CTRL-C, CTRL-A etc),
|
||||||
// In that case TranslateAccelerator should always be called first.
|
// In that case TranslateAccelerator should always be called first.
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
bool wxActiveXContainer::MSWTranslateMessage(WXMSG* pMsg)
|
bool wxActiveXContainer::MSWTranslateMessage(WXMSG* pMsg)
|
||||||
|
@@ -930,7 +930,7 @@ void wxDataObject::SetAutoDelete()
|
|||||||
((wxIDataObject *)m_pIDataObject)->SetDeleteFlag();
|
((wxIDataObject *)m_pIDataObject)->SetDeleteFlag();
|
||||||
m_pIDataObject->Release();
|
m_pIDataObject->Release();
|
||||||
|
|
||||||
// so that the dtor doesnt' crash
|
// so that the dtor doesn't crash
|
||||||
m_pIDataObject = NULL;
|
m_pIDataObject = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1316,7 +1316,7 @@ size_t wxFileDataObject::GetDataSize() const
|
|||||||
static const size_t sizeOfChar = sizeof(wxChar);
|
static const size_t sizeOfChar = sizeof(wxChar);
|
||||||
#endif // wxUSE_UNICODE_MSLU/!wxUSE_UNICODE_MSLU
|
#endif // wxUSE_UNICODE_MSLU/!wxUSE_UNICODE_MSLU
|
||||||
|
|
||||||
// inital size of DROPFILES struct + null byte
|
// initial size of DROPFILES struct + null byte
|
||||||
size_t sz = sizeof(DROPFILES) + sizeOfChar;
|
size_t sz = sizeof(DROPFILES) + sizeOfChar;
|
||||||
|
|
||||||
const size_t count = m_filenames.size();
|
const size_t count = m_filenames.size();
|
||||||
|
@@ -396,7 +396,7 @@ void wxWindowsPrintNativeData::InitializeDevMode(const wxString& printerName, Wi
|
|||||||
|
|
||||||
// From MSDN: How To Modify Printer Settings with the DocumentProperties() Function
|
// From MSDN: How To Modify Printer Settings with the DocumentProperties() Function
|
||||||
// The purpose of this is to fill the DEVMODE with privdata from printer driver.
|
// The purpose of this is to fill the DEVMODE with privdata from printer driver.
|
||||||
// If we have a printer name and OpenPrinter sucessfully returns
|
// If we have a printer name and OpenPrinter successfully returns
|
||||||
// this replaces the PrintDlg function which creates the DEVMODE filled only with data from default printer.
|
// this replaces the PrintDlg function which creates the DEVMODE filled only with data from default printer.
|
||||||
if ( !m_devMode && !printerName.IsEmpty() )
|
if ( !m_devMode && !printerName.IsEmpty() )
|
||||||
{
|
{
|
||||||
|
@@ -79,7 +79,7 @@ wxRegConfig::wxRegConfig(const wxString& appName, const wxString& vendorName,
|
|||||||
bool bDoUseGlobal = (style & wxCONFIG_USE_GLOBAL_FILE) != 0;
|
bool bDoUseGlobal = (style & wxCONFIG_USE_GLOBAL_FILE) != 0;
|
||||||
|
|
||||||
// the convention is to put the programs keys under <vendor>\<appname>
|
// the convention is to put the programs keys under <vendor>\<appname>
|
||||||
// (but it can be overridden by specifying the pathes explicitly in strLocal
|
// (but it can be overridden by specifying the paths explicitly in strLocal
|
||||||
// and/or strGlobal)
|
// and/or strGlobal)
|
||||||
if ( strLocal.empty() || (strGlobal.empty() && bDoUseGlobal) )
|
if ( strLocal.empty() || (strGlobal.empty() && bDoUseGlobal) )
|
||||||
{
|
{
|
||||||
|
@@ -120,7 +120,7 @@ typedef struct thread_data{
|
|||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
/* This thread handles socket events on WinCE using WSAEventSelect() as
|
/* This thread handles socket events on WinCE using WSAEventSelect() as
|
||||||
* WSAAsyncSelect is not supported. When an event occurs for the socket, it is
|
* WSAAsyncSelect is not supported. When an event occurs for the socket, it is
|
||||||
* checked what kind of event happend and the correct message gets posted so
|
* checked what kind of event happened and the correct message gets posted so
|
||||||
* that the hidden window can handle it as it would in other MSW builds.
|
* that the hidden window can handle it as it would in other MSW builds.
|
||||||
*/
|
*/
|
||||||
DWORD WINAPI SocketThread(LPVOID data)
|
DWORD WINAPI SocketThread(LPVOID data)
|
||||||
|
@@ -1486,7 +1486,7 @@ HRESULT STDMETHODCALLTYPE VirtualProtocol::Read(void *pv, ULONG cb, ULONG *pcbRe
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Dummy return to surpress a compiler warning
|
//Dummy return to suppress a compiler warning
|
||||||
wxFAIL;
|
wxFAIL;
|
||||||
return INET_E_DOWNLOAD_FAILURE;
|
return INET_E_DOWNLOAD_FAILURE;
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
'''
|
'''
|
||||||
This script will delete dependences from *.vcp files.
|
This script will delete dependences from *.vcp files.
|
||||||
After using this script, next time when you will try to save project,
|
After using this script, next time when you will try to save project,
|
||||||
you will have wait untill 'Visual Tools' will rebuild all dependencies
|
you will have wait until 'Visual Tools' will rebuild all dependencies
|
||||||
and this process might take HUGE amount of time
|
and this process might take HUGE amount of time
|
||||||
|
|
||||||
Author : Viktor Voroshylo
|
Author : Viktor Voroshylo
|
||||||
|
@@ -1430,7 +1430,7 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
|
|||||||
// it doesn't seem useful to use WS_CLIPSIBLINGS here as we officially
|
// it doesn't seem useful to use WS_CLIPSIBLINGS here as we officially
|
||||||
// don't support overlapping windows and it only makes sense for them and,
|
// don't support overlapping windows and it only makes sense for them and,
|
||||||
// presumably, gives the system some extra work (to manage more clipping
|
// presumably, gives the system some extra work (to manage more clipping
|
||||||
// regions), so avoid it alltogether
|
// regions), so avoid it altogether
|
||||||
|
|
||||||
|
|
||||||
if ( flags & wxVSCROLL )
|
if ( flags & wxVSCROLL )
|
||||||
@@ -5451,7 +5451,7 @@ bool wxWindowMSW::HandleMouseEvent(WXUINT msg, int x, int y, WXUINT flags)
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifdef wxHAS_XBUTTON
|
#ifdef wxHAS_XBUTTON
|
||||||
// the same messages are used for both auxillary mouse buttons so we need
|
// the same messages are used for both auxiliary mouse buttons so we need
|
||||||
// to adjust the index manually
|
// to adjust the index manually
|
||||||
switch ( msg )
|
switch ( msg )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user