Support compile mingw32

This commit is contained in:
lsv 2025-09-23 16:17:07 +05:00
parent cc47a8ef7b
commit e65781aa65
32 changed files with 225 additions and 128 deletions

View file

@ -98,14 +98,14 @@ long ctlComboBoxFix::GetLongKey(int sel)
{
if (sel < 0)
sel = GetSelection();
return (long)wxItemContainer::GetClientData(sel);
return (long)wxPtrToUInt(wxItemContainer::GetClientData(sel));
}
OID ctlComboBoxFix::GetOIDKey(int sel)
{
if (sel < 0)
sel = GetSelection();
return (OID)wxItemContainer::GetClientData(sel);
return (OID)wxPtrToUInt(wxItemContainer::GetClientData(sel));
}
wxString ctlComboBoxFix::GetStringKey(int sel)

View file

@ -1573,7 +1573,7 @@ void ctlSQLBox::SetCaretWidthForKeyboardLayout() {
int newwidth = currentwidth;
#ifdef __WXMSW__
HKL la = GetKeyboardLayout(0);
if (((int)la & 0xFFFF) == 0x409) {
if (((long long)la & 0xFFFF) == 0x409) {
//en
newwidth = 1;
}