>      Afx:00400000:8:00010011:00000000:00000000:
>
>          AfxControlBar70d:
>
>              ToolBarWindow32:
>
> But when I call GetParent from ToolBarWindow32, I get the owner, the same
> window as calling GetOwner (which is another window on the desktop, the
> main app I am running under).
>
> The  Afx:00400000:8:00010011:00000000:00000000 has the SYS_MENU
> that I want
> to disable, but I don't know how to get to it.

Would FindWindow() work, specifying the
"Afx:00400000:8:00010011:00000000:00000000" (which is a registered window
class name) as the class name and NULL for window name (= caption)? If you
can specify the window name too, do so, otherwise there's a risk you'll get
another control bar if there happens to be more than one on the screen.

(If you're interested, I believe 00400000 is the window style, 00010011 is
the handle to a system cursor for when the mouse is over that window, and
the last two are NULL for background brush handle and window's icon handle -
the parameters to AfxRegisterWndClass() - don't know what the 8 is. The
whole string is what is returned from AfxRegisterWndClass() )

--
Jason Teagle
[EMAIL PROTECTED]



_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to