diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-03 12:25:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-03 12:25:29 +0000 |
commit | 1492cd4767bc9c7748455639a8eb4429a2771c34 (patch) | |
tree | 787e7551eaa81832873055b71ef0fd6473a15f0a /plugins | |
parent | 22f041cb647f9c765004d3295d5a57a7220f55f0 (diff) |
added mechanism of windows subclassing, proof to dynamic plugin unloading
git-svn-id: http://svn.miranda-ng.org/main/trunk@3869 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SmileyAdd/src/dlgboxsubclass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp index 1970577b48..eee8db0025 100644 --- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp +++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp @@ -43,7 +43,7 @@ static HHOOK g_hMessageHookPre = NULL; static HANDLE g_hMutex = NULL;
static HANDLE g_hHookMsgWnd = NULL;
-static LRESULT CALLBACK MessageDlgSubclas(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
//type definitions
@@ -344,7 +344,7 @@ static void MsgWndDetect(HWND hwndDlg, HANDLE hContact, msgData* datm) if (msgwnd != NULL)
{
- msgwnd->wpOrigWndProc = (WNDPROC)SetWindowLongPtr(hwndDlg, GWLP_WNDPROC, (LONG_PTR)MessageDlgSubclas);
+ msgwnd->wpOrigWndProc = (WNDPROC)SetWindowLongPtr(hwndDlg, GWLP_WNDPROC, (LONG_PTR)MessageDlgSubclass);
msgwnd->CreateSmileyButton();
if (hContact == NULL) SetRichCallback(msgwnd->REdit, msgwnd->hContact, true, true);
}
@@ -353,7 +353,7 @@ static void MsgWndDetect(HWND hwndDlg, HANDLE hContact, msgData* datm) //global subclass function for all dialogs
-static LRESULT CALLBACK MessageDlgSubclas(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
MsgWndData* dat = IsMsgWnd(hwnd);
if (dat == NULL) return 0;
|