The owner draw message ONLY send to the owner window, not the parent. if the window hasn't, it will send it to the top level parent window. So,how can i set a window's owner window?
On Jun 17, 6:02 am, "susan" <none> wrote: > The owner draw message ONLY send to the owner window, not the parent. > if the window hasn't, it will send it to the top level parent window. > So,how can i set a window's owner window? Hi, You can use the following APIs to get/set the parent window of the specified child window: GetParent() SetParent() http://msdn.microsoft.com/en-us/library/ms633510(VS.85).aspx http://msdn.microsoft.com/en-us/library/ms633541(VS.85).aspx Kellie.