>I have added the Window pad _msm_window to an application's menu and added the Cascade bar and a separator to the _mwindow popup. As application windows are opened, they are added to the Window menu by default. This works exactly as it should. However, I need to loop through the application windows looking for a specific text string. The problem is that CntBar() always returns an incorrect value (often 1) unless I first activate the Window menu. This would imply that the bars for the application's windows were not created using Define Bar, but I don't have control over that process. Is there an accurate way to determine the correct number of bars under these circumstances?
>
>If I issue Activate Popup _mwindow before CntBar() the process works properly--except for the annoying transfer of focus to the menu that is!
I'm not sure if this is helpful (haven't tried), but check
Re: How to find Item Number on a menu? Thread #
1107544 Message #
1107691
If it's not broken, fix it until it is.
My Blog