From 0a39ff03db26b4012d3479ce8f48c5a9a4f6daa1 Mon Sep 17 00:00:00 2001 From: wyaadarsh Date: Fri, 4 Nov 2016 06:18:54 -0700 Subject: [PATCH] SQLyog 12.3.1 GA --- include/SQLyog.rc | 2 +- include/Version.h | 2 +- src/CCustomComboBox.cpp | 141 ++++++++++++++++++++-------------------- src/GUIHelper.cpp | 6 +- 4 files changed, 77 insertions(+), 74 deletions(-) diff --git a/include/SQLyog.rc b/include/SQLyog.rc index d47836a..3634c97 100644 --- a/include/SQLyog.rc +++ b/include/SQLyog.rc @@ -1841,7 +1841,7 @@ BEGIN GROUPBOX "Transaction Options",IDC_TRANSACTION,4,185,247,36 CONTROL "Prompt when query causing implicit commit is executed",IDC_PROMPTTRANSACTION, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,9,196,197,10 - CONTROL "Prompt when closing sessing or program if transaction is active.",IDC_PROMPTCLOSETRANSACTION, + CONTROL "Prompt when closing session or program if transaction is active.",IDC_PROMPTCLOSETRANSACTION, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,9,208,212,10 END diff --git a/include/Version.h b/include/Version.h index 677e50b..3443b45 100644 --- a/include/Version.h +++ b/include/Version.h @@ -1,5 +1,5 @@ #define MAJOR_VERSION_INT 12 #define MINOR_VERSION_INT 3 -#define UPDATE_VERSION_INT 0 +#define UPDATE_VERSION_INT 1 #define RELEASE_VERSION_INT 0 #define EXTRAINFO "" diff --git a/src/CCustomComboBox.cpp b/src/CCustomComboBox.cpp index c90b82e..93c7d6c 100644 --- a/src/CCustomComboBox.cpp +++ b/src/CCustomComboBox.cpp @@ -368,81 +368,84 @@ CCustomComboBox::OnHandleEditChange(){ wyWChar str[70] = {0},*temp=NULL; wyInt32 id = -1; wyInt32 len = -1; - int i, status=0,index; //status flag is set when atleast one match found - - GetWindowText(m_hwndCombo, str, 65); - len=wcslen(str); - if(len) - { - if(len==1) - SendMessage(m_hwndCombo, CB_SHOWDROPDOWN, FALSE, NULL); - - for(i=0;im_pcmainwin->m_connection->PopulateColorArray(m_hwndCombo, &dirstr); + } + else + { + pGlobals->m_pcmainwin->m_connection->PopulateColorArray(m_hwndCombo, &dirstr); + if(SendMessage(m_hwndCombo, CB_GETDROPPEDSTATE, NULL, NULL) == FALSE) + { + if(m_showDropDown == wyTrue) + { + SendMessage(m_hwndCombo, CB_SHOWDROPDOWN, TRUE, NULL); + SetCursor(LoadCursor(NULL, IDC_ARROW)); + } + else + m_showDropDown = wyTrue; + } + SendMessage(m_hwndCombo, CB_SETEDITSEL, NULL, MAKELPARAM(-1,0)); - } - - - return wyTrue; + } + + return wyTrue; } // function handles WM_COMMAND message to the Custom Combo Control diff --git a/src/GUIHelper.cpp b/src/GUIHelper.cpp index 9a52875..17eb912 100644 --- a/src/GUIHelper.cpp +++ b/src/GUIHelper.cpp @@ -7910,15 +7910,15 @@ OnDrawConnNameCombo(HWND hwndcombo, LPDRAWITEMSTRUCT lpds, wyBool isconndbname) wyInt32 ncount, i, j, ret; wyString connstr, dirstr, conncount; wyInt32 topindex; - wyWChar directory[MAX_PATH + 1], *lpfileport=0; + /*wyWChar directory[MAX_PATH + 1], *lpfileport=0; ret = SearchFilePath(L"sqlyog", L".ini", MAX_PATH, directory, &lpfileport); if(ret == 0) return wyFalse; dirstr.SetAs(directory); + */ //fill the combobox with options ncount = SendMessage(hwndcombo, CB_GETCOUNT, 0, 0); - switch (lpds->itemAction) { case ODA_DRAWENTIRE: @@ -7933,7 +7933,7 @@ OnDrawConnNameCombo(HWND hwndcombo, LPDRAWITEMSTRUCT lpds, wyBool isconndbname) topindex = 0; j = ncount; } - pGlobals->m_pcmainwin->m_connection->PopulateColorArray(hwndcombo, &dirstr); + // pGlobals->m_pcmainwin->m_connection->PopulateColorArray(hwndcombo, &dirstr); for(i = topindex; i < j; i++) { if(isconndbname == wyTrue)