[Win32 API]Superclassing.
Umm, how does one superclass dialog controls? As it controls that are created with the resource editor?
TIA
quote:Original post by Midnight Coder
Same way you would do it with a normal window. To get the Window handle of a dialog control, use GetDlgItem().
Nope, that''s subclassing.
quote:Original post by Clash Rocker
Umm, how does one superclass dialog controls? As it controls that are created with the resource editor?
TIA
Well, you can manually load and parse dialog resources and create whatever controls you want (essentially writing your own versions of DialogBox() and/or CreateDialog()). Hardly worth the trouble, IMO.
Another way to do it is to wrap Windows controls in ActiveX controls and use those in the dialog editor. Of course, to do Ax you''d probably want to use ATL; and that means you''ll have HWND wrapped in a C++ class, so superclassing becomes a moot point. If you go with ATL check out CContainedWindow.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement