winapi - Delphi form staying on top of itself -
i've got app has window stays in front of other windows, stays in front of other 'stay on top' windows checking z order , moving forwards if isn't top most. works ok, except window has controls pop things combo boxes , hints. happens window moves in front of hints etc.
the logic i've attempted looks @ handle of window in front , attempts see if owner (using getwindow (h,gw_owner)) or parent (getparent(h)) window. failing continues call recursively see if window parent of parent etc.
this doesn't work , application tries put in front of popped-up control not ideal. suggestions on other approaches?
thanks terry
the hints have application handle parent , owner. testing h=application.handle solves problem them. combo boxes seem different story , calls parent return 65556 , owner gives 0.
Comments
Post a Comment