summaryrefslogtreecommitdiff
path: root/plugins/qt_clist/src/clistmenus.cpp
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2013-03-14 08:26:08 +0000
committerAlexander Gluzsky <sss123next@list.ru>2013-03-14 08:26:08 +0000
commit05f0ab2b372cf24cb148faaea790c1772955365f (patch)
tree09e021f0012810d13dd8783551bacf7f78bf6ee5 /plugins/qt_clist/src/clistmenus.cpp
parent809aa14dd2119e7b0de93846eb38bbb83073dad6 (diff)
started prting stdclist to qt, currently just qt event loop implemented, nothing more, does not try to build/use
git-svn-id: http://svn.miranda-ng.org/main/trunk@4014 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/qt_clist/src/clistmenus.cpp')
-rwxr-xr-xplugins/qt_clist/src/clistmenus.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/qt_clist/src/clistmenus.cpp b/plugins/qt_clist/src/clistmenus.cpp
new file mode 100755
index 0000000000..b32f914c52
--- /dev/null
+++ b/plugins/qt_clist/src/clistmenus.cpp
@@ -0,0 +1,37 @@
+/*
+
+Miranda IM: the free IM client for Microsoft* Windows*
+
+Copyright 2000-12 Miranda IM, 2012-13 Miranda NG project,
+all portions of this codebase are copyrighted to the people
+listed in contributors.txt.
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
+#include "commonheaders.h"
+
+INT_PTR CloseAction(WPARAM /*wParam*/,LPARAM /*lParam*/)
+{
+ if (CallService(MS_SYSTEM_OKTOEXIT,0,0))
+ DestroyWindow(pcli->hwndContactList);
+
+ return(0);
+}
+
+void InitCustomMenus()
+{
+ CreateServiceFunction( "CloseAction", CloseAction );
+}