Creating a cildwindow in other app:s FrameWindow
stefan.o@monitor.se Wednesday, December 11, 1996 Environment: NT 4.0 VC++ 4.0 I have a MDI-application written in Powerbuilder. Would it be possible to write a DLL using MFC that creates a ChildWindow in= side the PB-applications FrameWindow. If so, can I use classes like CMDIChildWnd and other parts of MFC? I can pass handles to windows from Powerbuilder to the DLL if that's any he= lp. Any hints would be most appreciated, I'm a bit clueless right now... -- Stefan Olsson
Mao Zhihong -- maozh@geocities.com Sunday, December 15, 1996 Dear stefan, >I have a MDI-application written in Powerbuilder. > Would it be possible to write a DLL using MFC that creates a ChildWindow in= > side the PB-applications FrameWindow. Of course you can. > If so, can I use classes like CMDIChildWnd and other parts of MFC? > I can pass handles to windows from Powerbuilder to the DLL if that's any he= > lp. You must pass the HWND of your PB's window, and create a MFC Windows as its child. I'v just do the same thing in my project, more than PB, I create it on VB,Delphi... They all work ok. I don't think it is difficult, so just try it. BTW: I didn't create a MDI Child Window in others MDI Client. I just create the MDI Child in the other app, then create a MFC windows as child of MDI Child window. Hope it will be helpful. mao -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Mao Zhihong DreamyRainbow Software Studio Oooo. .oooO Voc/Fax : 86-25-5408086 ( ) ( ) E-Mail : mailto:maozh@geocities.com ) / \ ( mailto:mao@seu.edu.cn (_/ \_) URL : http://www.geocities.com/Vienna/2898 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "We get to create only a few things in this life. We really have such a short time here, some of us just want to make it count." - Steven Jobs
| Вернуться в корень Архива |