Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Coordinate Conversions Pin
georgiek5016-Mar-03 14:38
georgiek5016-Mar-03 14:38 
GeneralRe: Coordinate Conversions Pin
73Zeppelin16-Mar-03 15:51
73Zeppelin16-Mar-03 15:51 
GeneralNeed a windows registry expert's help Pin
Abin16-Mar-03 2:18
Abin16-Mar-03 2:18 
QuestionHow to calculate the running time of each function? Pin
George216-Mar-03 1:24
George216-Mar-03 1:24 
GeneralMessage routing Pin
JamesLaing16-Mar-03 1:01
JamesLaing16-Mar-03 1:01 
GeneralRe: Message routing Pin
Brian Shifrin16-Mar-03 2:33
Brian Shifrin16-Mar-03 2:33 
GeneralRe: Message routing Pin
JamesLaing16-Mar-03 2:38
JamesLaing16-Mar-03 2:38 
GeneralChanging Ownership of child CView Pin
ganon15-Mar-03 17:23
ganon15-Mar-03 17:23 
I have been having some trouble changing the parent of a CView object. I have a program which utilizes the CSplitterWnd to have two separate views. My intention is for users to undock a splitter view and make it a free floating window. The problem comes when I try and assign ownership of a CView class to another window.

I am using both a CView(when in a splitter) and a CWnd(when a toolbox) to wrap the main CView class containg application information. When i try and assign the CView class a new parent SetParent(wndToolBox) it works fine. However when it comes to sending click messages and such it crashes :/

in CView::OnMouseActivate

fails evaluating
ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame));

It seems that the the CView class which has had a new parent assigned has not been removed from the notification queue of its previous parent.

Is it even possible to dynamically reasign a CView class to another parent window without such errors occuring ??

Any help would be GREATLY appreciated Smile | :)
Thanks
GeneralRe: Changing Ownership of child CView Pin
Brian Shifrin16-Mar-03 2:41
Brian Shifrin16-Mar-03 2:41 
GeneralTimer Pin
progman15-Mar-03 13:20
progman15-Mar-03 13:20 
GeneralRe: Timer Pin
Nish Nishant15-Mar-03 15:29
sitebuilderNish Nishant15-Mar-03 15:29 
GeneralRe: Timer Pin
progman16-Mar-03 12:17
progman16-Mar-03 12:17 
GeneralRe: Timer Pin
Jambolo16-Mar-03 14:20
Jambolo16-Mar-03 14:20 
GeneralInternet connection Pin
progman15-Mar-03 13:05
progman15-Mar-03 13:05 
GeneralRe: Internet connection Pin
Nish Nishant15-Mar-03 15:32
sitebuilderNish Nishant15-Mar-03 15:32 
GeneralRe: Internet connection Pin
d_kilshtein16-Mar-03 5:51
d_kilshtein16-Mar-03 5:51 
GeneralRe: Internet connection Pin
Big Art16-Mar-03 8:39
Big Art16-Mar-03 8:39 
Generalwav resources compiling Pin
progman15-Mar-03 13:00
progman15-Mar-03 13:00 
GeneralRe: wav resources compiling Pin
Nish Nishant15-Mar-03 15:33
sitebuilderNish Nishant15-Mar-03 15:33 
GeneralRe: wav resources compiling Pin
progman16-Mar-03 12:11
progman16-Mar-03 12:11 
QuestionHow to block ctrl+alt+del in WinNT Pin
Valera24117615-Mar-03 9:26
Valera24117615-Mar-03 9:26 
AnswerRe: How to block ctrl+alt+del in WinNT Pin
Chris Losinger15-Mar-03 9:43
professionalChris Losinger15-Mar-03 9:43 
GeneralRe: How to block ctrl+alt+del in WinNT Pin
Valera24117615-Mar-03 9:55
Valera24117615-Mar-03 9:55 
GeneralRe: How to block ctrl+alt+del in WinNT Pin
Chris Losinger15-Mar-03 9:58
professionalChris Losinger15-Mar-03 9:58 
GeneralRe: How to block ctrl+alt+del in WinNT Pin
Scott H. Settlemier16-Mar-03 2:07
Scott H. Settlemier16-Mar-03 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.