- if ( (isChild || HasFlag(wxFRAME_TOOL_WINDOW)) && parent )
- {
- // this is either a normal child window or a top level window with
- // wxFRAME_TOOL_WINDOW style (see below)
- hParent = GetHwndOf(parent);
- }
- else
- {
- // this is either a window for which no parent was specified (not
- // much we can do then) or a frame without wxFRAME_TOOL_WINDOW
- // style: we should use NULL parent HWND for it or it would be
- // always on top of its parent which is not what we usually want
- // (in fact, we only want it for frames with the special
- // wxFRAME_TOOL_WINDOW as above)
- hParent = NULL;
- }
-
+ // this is a frame without wxFRAME_TOOL_WINDOW style: we should use
+ // NULL parent HWND for it or it would be always on top of its parent
+ // which is not what we usually want (in fact, we only want it for
+ // frames with the special wxFRAME_TOOL_WINDOW as above)
+ hParent = NULL;