Thank you! SM_CXSIZEFRAME was the parameter I've missed in the first place. smile

With the following combination of parameters it seems to work fine:
Code:
SetCursorPos(window_pos.x + pie_menu->x + sys_metrics(SM_CYSIZEFRAME),
             window_pos.y + pie_menu->y + sys_metrics(SM_CYMENU) + sys_metrics(SM_CXSIZEFRAME));