Cannot subclass Shell Embedding

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Has anyone encountered problems subclassing the "Shell Embedding"
window? I receive a failed assertion everytime I try to subclass it,
yet I have no problems subclassing its child window "Shell DocObjet
View". The assertion fails inside the line below [ wincore.cpp file,
CWnd::Attach() method ]:

ASSERT(FromHandlePermanent(hWndNew) == NULL);

hWndNew is the window handle of the "Shell Embedding" window.

Of course I would rather subclass "Shell Embedding" instead of "Shell
DocObject View" because the latter does not receive any of the moveTo()
and moveBy() notifications. Btw, I'm using MFC's CHtmlView, and
apparently I can subclass "Shell Embedding" with a release build.
However I prefer being able to debug my source code with Visual
Studio's debugger.

Many Thanks!

George

.



Relevant Pages

  • Re: How to catch web page script "moveto()" in CHtmlView?
    ... But I use "Shell Embedding" keywords to search and no ... window width and height according to Q259963, ... I learn the ie control draws scrollbars but how and when ie ... subclass and hook etc. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: scrolling in textbox Options
    ... Getting into subclass optimizing might be more than ... Basically, the way it works is that each window (form, ... When you use something like a textbox the messages ... Sub Main and a module-based close-down then you might need ...
    (microsoft.public.vb.general.discussion)
  • Re: SoA Vs OO
    ... > several types T1...Tn which let says might inherit from one another ... Say the Window class contains a GdiHandle member. ... it's doing very, very crufty internal stuff, so the subclass can't even ... If refactoring tools were a solution, ...
    (comp.object)
  • Re: SoA Vs OO
    ... > several types T1...Tn which let says might inherit from one another ... Say the Window class contains a GdiHandle member. ... it's doing very, very crufty internal stuff, so the subclass can't even ... If refactoring tools were a solution, ...
    (comp.programming)
  • Re: Subclassing Dialog Window ?
    ... I want to subclass dialog box window. ... window procedure rules or dialog procedure rules? ... BOOL instead of LRESULT. ...
    (microsoft.public.win32.programmer.ui)