Skip to content

Commit

Permalink
upd project sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypp committed Nov 24, 2024
1 parent 1a1b8b7 commit 641f892
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ INT_PTR CALLBACK EditorPagesProc (
case NM_DBLCLK:
{
LPNMITEMACTIVATE lpnmlv;
INT command_id = 0;
ULONG command_id = 0;
INT listview_id;

lpnmlv = (LPNMITEMACTIVATE)lparam;
Expand All @@ -944,7 +944,7 @@ INT_PTR CALLBACK EditorPagesProc (
}

if (command_id)
_r_wnd_sendmessage (hwnd, 0, WM_COMMAND, MAKEWPARAM (command_id, 0), 0);
_r_ctrl_sendcommand (hwnd, command_id, 0);

break;
}
Expand Down
10 changes: 5 additions & 5 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ INT_PTR CALLBACK SettingsProc (

_r_updown_setvalue (hwnd, IDC_NOTIFICATIONTIMEOUT, _r_config_getulong (L"NotificationsTimeout", NOTIFY_TIMEOUT_DEFAULT));

_r_wnd_sendmessage (hwnd, 0, WM_COMMAND, MAKEWPARAM (IDC_ENABLENOTIFICATIONS_CHK, 0), WM_APP);
_r_ctrl_sendcommand (hwnd, IDC_ENABLENOTIFICATIONS_CHK,WM_APP);

break;
}
Expand Down Expand Up @@ -762,7 +762,7 @@ INT_PTR CALLBACK SettingsProc (

_r_ctrl_checkbutton (hwnd, IDC_ENABLEUILOG_CHK, _r_config_getboolean (L"IsLogUiEnabled", FALSE));

_r_wnd_sendmessage (hwnd, 0, WM_COMMAND, MAKEWPARAM (IDC_ENABLELOG_CHK, 0), WM_APP);
_r_ctrl_sendcommand (hwnd, IDC_ENABLELOG_CHK, WM_APP);

break;
}
Expand Down Expand Up @@ -1720,7 +1720,7 @@ INT_PTR CALLBACK SettingsProc (
if (hctrl)
_r_ctrl_enable (hctrl, 0, is_enabled);

_r_wnd_sendmessage (hwnd, 0, WM_COMMAND, MAKEWPARAM (IDC_NOTIFICATIONSOUND_CHK, 0), WM_APP);
_r_ctrl_sendcommand (hwnd, IDC_NOTIFICATIONSOUND_CHK, WM_APP);

if (is_postmessage)
break;
Expand Down Expand Up @@ -2262,7 +2262,7 @@ INT_PTR CALLBACK DlgProc (

case WM_MBUTTONUP:
{
_r_wnd_sendmessage (hwnd, 0, WM_COMMAND, MAKEWPARAM (IDM_TRAY_LOGSHOW, 0), 0);
_r_ctrl_sendcommand (hwnd, IDM_TRAY_LOGSHOW, 0);
break;
}

Expand Down Expand Up @@ -2868,7 +2868,7 @@ INT_PTR CALLBACK DlgProc (
}

if (command_id)
_r_wnd_sendmessage (hwnd, 0, WM_COMMAND, MAKEWPARAM (command_id, 0), 0);
_r_ctrl_sendcommand (hwnd, command_id, 0);

break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ VOID _app_message_contextmenu (
command_id = _r_menu_popup (hmenu, hwnd, NULL, FALSE);

if (command_id)
_r_wnd_sendmessage (hwnd, 0, WM_COMMAND, MAKEWPARAM (command_id, 0), (LPARAM)lpnmlv->iSubItem);
_r_ctrl_sendcommand (hwnd, command_id, (LPARAM)lpnmlv->iSubItem);

if (hsubmenu_rules)
DestroyMenu (hsubmenu_rules);
Expand Down

0 comments on commit 641f892

Please sign in to comment.