普通にこれでいいじゃん。

bool window::GetStatusHoge(){
 return this->IsTopWindow() || (this->IsBottomWindow() && visible);
}

>>387と比べて、何がしたいか意図が明確。