diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-03 17:29:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-03 17:29:16 +0300 |
commit | d52ef64e120376c9f8ec9985667c73f0e144a285 (patch) | |
tree | b7182fe6ee85b85afe4a44af3e42ff5abf46e6ee /plugins/Import | |
parent | 7d64192e0df02a52f50d3bbd761cbb9508d97973 (diff) |
Import; custom window removed
Diffstat (limited to 'plugins/Import')
-rw-r--r-- | plugins/Import/src/dbrw/dbintf.cpp | 3 | ||||
-rw-r--r-- | plugins/Import/src/dbrw/dbintf.h | 1 | ||||
-rw-r--r-- | plugins/Import/src/dbrw/dbsql.cpp | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/plugins/Import/src/dbrw/dbintf.cpp b/plugins/Import/src/dbrw/dbintf.cpp index 7f23dcc373..aae77e66ab 100644 --- a/plugins/Import/src/dbrw/dbintf.cpp +++ b/plugins/Import/src/dbrw/dbintf.cpp @@ -25,8 +25,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. CDbxSQLite::CDbxSQLite() : sql_prepare_len(0) { - m_hAPCWindow = CreateWindowEx(0, L"STATIC", NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL); - sql_prepare_add(ctc_stmts, ctc_stmts_prep, SQL_CTC_STMT_NUM); sql_prepare_add(evt_stmts, evt_stmts_prep, SQL_EVT_STMT_NUM); sql_prepare_add(set_stmts, set_stmts_prep, SQL_SET_STMT_NUM); @@ -40,7 +38,6 @@ CDbxSQLite::~CDbxSQLite() sql_finalize(*sql_prepare_stmt[i]); mir_free(sql_prepare_text); mir_free(sql_prepare_stmt); - DestroyWindow(m_hAPCWindow); } int CDbxSQLite::Open(const wchar_t *profile) diff --git a/plugins/Import/src/dbrw/dbintf.h b/plugins/Import/src/dbrw/dbintf.h index 2c558bf537..07b2a62a2b 100644 --- a/plugins/Import/src/dbrw/dbintf.h +++ b/plugins/Import/src/dbrw/dbintf.h @@ -94,7 +94,6 @@ struct CDbxSQLite : public MDatabaseCommon, public MZeroedObject { private: sqlite3 *m_sqlite; - HWND m_hAPCWindow; int sql_prepare_len; char **sql_prepare_text; diff --git a/plugins/Import/src/dbrw/dbsql.cpp b/plugins/Import/src/dbrw/dbsql.cpp index e403fac43b..3cfc5450f9 100644 --- a/plugins/Import/src/dbrw/dbsql.cpp +++ b/plugins/Import/src/dbrw/dbsql.cpp @@ -89,7 +89,7 @@ void CDbxSQLite::sql_server_sync(TSqlMessage *msg) { msg->hDoneEvent = CreateEvent(NULL, FALSE, FALSE, NULL); sql_server_sync_apc((UINT_PTR)msg); - PostMessage(m_hAPCWindow, WM_NULL, 0, 0); + PostMessage(Miranda_GetSystemWindow()->GetHwnd(), WM_NULL, 0, 0); WaitForSingleObject(msg->hDoneEvent, INFINITE); CloseHandle(msg->hDoneEvent); } |