>>36
on_mouse_rbtn_up()の最後でtrueを返す必要がある

具体的には以下をon_mouse_rbtn_up()の最終行に追加

return true;

通常のコンテキストメニューを表示させるには
左Shift+左Win+右クリック