summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgutils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-19 17:01:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-19 17:01:50 +0000
commit638ccde5cf7428b75d0de5c0254ce07261085fee (patch)
tree830e697eb0904c50abe41ba66c4b57ff5e903196 /plugins/TabSRMM/src/msgdlgutils.cpp
parent394540126b181982d8b61d07a084ceeac8559ed1 (diff)
button control moved to wParam everywhere
git-svn-id: http://svn.miranda-ng.org/main/trunk@483 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index 27bb4741cb..770b415110 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -2213,7 +2213,7 @@ LRESULT TSAPI GetSendButtonState(HWND hwnd)
HWND hwndIDok=GetDlgItem(hwnd, IDOK);
if(hwndIDok)
- return(SendMessage(hwndIDok, BUTTONSETASFLATBTN + 15, 0, 0));
+ return(SendMessage(hwndIDok, BUTTONGETSTATEID, TRUE, 0));
else
return 0;
}
@@ -2221,13 +2221,13 @@ LRESULT TSAPI GetSendButtonState(HWND hwnd)
void TSAPI EnableSendButton(const TWindowData *dat, int iMode)
{
HWND hwndOK;
- SendMessage(GetDlgItem(dat->hwnd, IDOK), BUTTONSETASFLATBTN + 14, iMode, 0);
- SendMessage(GetDlgItem(dat->hwnd, IDC_PIC), BUTTONSETASFLATBTN + 14, dat->fEditNotesActive ? TRUE : (!iMode && dat->iOpenJobs == 0) ? TRUE : FALSE, 0);
+ SendMessage(GetDlgItem(dat->hwnd, IDOK), BUTTONSETASNORMAL, iMode, 0);
+ SendMessage(GetDlgItem(dat->hwnd, IDC_PIC), BUTTONSETASNORMAL, dat->fEditNotesActive ? TRUE : (!iMode && dat->iOpenJobs == 0) ? TRUE : FALSE, 0);
hwndOK = GetDlgItem(GetParent(GetParent(dat->hwnd)), IDOK);
if (IsWindow(hwndOK))
- SendMessage(hwndOK, BUTTONSETASFLATBTN + 14, iMode, 0);
+ SendMessage(hwndOK, BUTTONSETASNORMAL, iMode, 0);
}
void TSAPI SendNudge(const TWindowData *dat)