Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -991,8 +991,8 @@ bool wxTextCtrl::EmulateKeyPress(const wxKeyEvent& event)
|
||||
size_t lenOld = GetValue().length();
|
||||
|
||||
wxUint32 code = event.GetRawKeyCode();
|
||||
::keybd_event(code, 0, 0 /* key press */, 0);
|
||||
::keybd_event(code, 0, KEYEVENTF_KEYUP, 0);
|
||||
::keybd_event((BYTE)code, 0, 0 /* key press */, 0);
|
||||
::keybd_event((BYTE)code, 0, KEYEVENTF_KEYUP, 0);
|
||||
|
||||
// assume that any alphanumeric key changes the total number of characters
|
||||
// in the control - this should work in 99% of cases
|
||||
@@ -2122,9 +2122,12 @@ bool wxTextCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
||||
case WM_SETCURSOR:
|
||||
// ok, so it is hardcoded - do we really nee to
|
||||
// customize it?
|
||||
::SetCursor(GetHcursorOf(wxCursor(wxCURSOR_HAND)));
|
||||
*result = TRUE;
|
||||
break;
|
||||
{
|
||||
wxCursor cur(wxCURSOR_HAND);
|
||||
::SetCursor(GetHcursorOf(cur));
|
||||
*result = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
case WM_MOUSEMOVE:
|
||||
case WM_LBUTTONDOWN:
|
||||
@@ -2403,7 +2406,7 @@ bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style)
|
||||
|
||||
const wxArrayInt& tabs = style.GetTabs();
|
||||
|
||||
pf.cTabCount = wxMin(tabs.GetCount(), MAX_TAB_STOPS);
|
||||
pf.cTabCount = (SHORT)wxMin(tabs.GetCount(), MAX_TAB_STOPS);
|
||||
size_t i;
|
||||
for (i = 0; i < (size_t) pf.cTabCount; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user