Re: [wineconsole][dialog] Fix inversion in work Up-down control (Option Dialog)
19 Feb
2007
19 Feb
'07
4:39 a.m.
"Anatoly Lyutin" <vostok(a)etersoft.ru> wrote:
struct dialog_info* di; unsigned idc; + unsigned nMaxHistUD = 500;
switch (msg) { @@ -66,6 +67,8 @@ static INT_PTR WINAPI WCUSER_OptionDlgPr di = (struct dialog_info*)((PROPSHEETPAGEA*)lParam)->lParam; di->hDlg = hDlg; SetWindowLongPtr(hDlg, DWLP_USER, (LONG_PTR)di); + + SendMessage(GetDlgItem(hDlg,IDC_OPT_HIST_SIZE_UD), UDM_SETRANGE, (WPARAM) 0, MAKELONG (nMaxHistUD, 0));
There is no need for (WPARAM) cast. Better use MAKELPARAM to construct an lParam instead of MAKELONG. Simple MAKELPARAM(500, 0) works just fine without introducing a new variable. -- Dmitry.
6874
Age (days ago)
6874
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov