summaryrefslogtreecommitdiff
path: root/plugins/YAPP/src/popwin.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-27 12:41:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-27 12:41:48 +0000
commit79a1a399448f6942966054a347b1125bf38a3b68 (patch)
tree14297e0f02869d6bae44056807870342e31651fa /plugins/YAPP/src/popwin.cpp
parentd114b204282ced93e141c4a95fb11ccdb5cee45c (diff)
switch from custom YAPP constants to ones from m_popup.h
git-svn-id: http://svn.miranda-ng.org/main/trunk@5150 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP/src/popwin.cpp')
-rw-r--r--plugins/YAPP/src/popwin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/YAPP/src/popwin.cpp b/plugins/YAPP/src/popwin.cpp
index 15b48f7f31..5e2a766daf 100644
--- a/plugins/YAPP/src/popwin.cpp
+++ b/plugins/YAPP/src/popwin.cpp
@@ -288,7 +288,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
}
}
#endif
- PostMessage(hwnd, PM_INIT, (WPARAM)hwnd, 0);
+ PostMessage(hwnd, UM_INITPOPUP, (WPARAM)hwnd, 0);
return 0;
case WM_MOUSEMOVE:
if (pwd && !pwd->mouse_in) {
@@ -316,7 +316,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
if (pwd->mouse_in || (options.global_hover && global_mouse_in))
SetTimer(hwnd, ID_CLOSETIMER, 800, 0); // reset timer if mouse in window - allow another 800 ms
else {
- PostMessage(hwnd, PM_DESTROY, 0, 0);
+ PostMessage(hwnd, UM_DESTROYPOPUP, 0, 0);
}
return TRUE;
} else if (wParam == ID_MOVETIMER) {
@@ -525,7 +525,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
RemoveWindowFromStack(hwnd);
- SendMessage(hwnd, PM_DIENOTIFY, 0, 0);
+ SendMessage(hwnd, UM_FREEPLUGINDATA, 0, 0);
if (pd) {
pd->SetIcon(NULL);
@@ -729,7 +729,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
return TRUE;
// drop through
- case PM_DESTROY:
+ case UM_DESTROYPOPUP:
PostMPMessage(MUM_DELETEPOPUP, 0, (LPARAM)hwnd);
return TRUE;
}
@@ -739,7 +739,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
// provide a way to close popups, if no PluginWindowProc is provided
if (uMsg == WM_CONTEXTMENU) {
- SendMessage(hwnd, PM_DESTROY, 0, 0);
+ SendMessage(hwnd, UM_DESTROYPOPUP, 0, 0);
return TRUE;
}