In your mame source, in src/osd/windows/window.c, line 1258 in the latest build on mamedev.org
is the function which handles all the Windows messages for the window.
LRESULT CALLBACK winwindow_video_window_proc(HWND wnd, UINT message, WPARAM wparam, LPARAM lparam)
This is where you'd define your handlers for various windows messages.
I don't see anything in that function regarding SC_SIZE or SC_MOVE, I think you're using the wrong command list, windows messages are prefixed WM,
see here.
It is a large function, currently the MAME team has this as part of the handler
Code:
1340 // pause the system when we start a menu or resize
1341 case WM_ENTERSIZEMOVE:
1342 window->resize_state = RESIZE_STATE_RESIZING;
1343 case WM_ENTERMENULOOP:
1344 winwindow_ui_pause_from_window_thread(window->machine(), TRUE);
1345 break;
1346
1347 // unpause the system when we stop a menu or resize and force a redraw
1348 case WM_EXITSIZEMOVE:
1349 window->resize_state = RESIZE_STATE_PENDING;
1350 case WM_EXITMENULOOP:
1351 winwindow_ui_pause_from_window_thread(window->machine(), FALSE);
1352 InvalidateRect(wnd, NULL, FALSE);
1353 break;
with the size operation defined, so it's not jumping to DefWindowProc in the Windows API.
http://www.mamedev.org/source/src/os.../window.c.html