>>360
で自分の設計ならの場合は

結局メンバをstatusHoge を増やして、

topWindow.statusHoge=true;
bottomWindow.statusHoge=bottomWindow.visible;

みたいな処理があって・・・・

Window* p=getWindow();
if(p->statusHoge){

}

ね。 こっちがすっきりするでしょ?