Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine if window which is opening is associated with a frame

Status
Not open for further replies.

LunaRoja

Programmer
Sep 21, 2010
34
US
I need to know if a window which is opening is associated with a frame.

I see in the debugger, in the Shared tab, that the window is listed as "For window xxx". For instance, if my frame was w_frame and my associated window was w_win. When w_win opens and is stopped in the debbuger, the Shared tab will list "For window w_frame".

I have not determined how to access that list of shared objects in code or if there is another property which indicates whether or not the window is associated with a frame.

I would appreciate any help you can offer.

Thanks,

LR
 
By frame I assume you mean an MDI frame. Windows opened within the MDI frame are considered 'sheets'. You can use a combination of GetFirstSheet and GetNextSheet to retrieve references to the windows contained within the MDI's sheet array.

Matt

"Nature forges everything on the anvil of time"
 
Thanks much. I appreciate the quick response.

LR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top