mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
Support compile mingw32
This commit is contained in:
parent
cc47a8ef7b
commit
e65781aa65
32 changed files with 225 additions and 128 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue