curWnd = ::GetParent(curWnd);
if (aStopOnFirstTopLevel) { DWORD style = nsToolkit::mGetWindowLong(curWnd, GWL_STYLE);  if (!(style & WS_CHILDWINDOW)) break; }  curWnd = ::GetParent(curWnd);
static HWND GetTopLevelHWND(HWND aWnd){  HWND curWnd = aWnd;  HWND topWnd = NULL;  while (curWnd)  {    topWnd = curWnd;    curWnd = ::GetParent(curWnd);  }  return topWnd;}