HOWTO: Using Class Wrappers to Access Windows Common Controls in ATL (223439)
The information in this article applies to:
- The Microsoft Active Template Library (ATL) 3.0
This article was previously published under Q223439 SUMMARY
When accessing Windows Common Controls in an MFC dialog box, you can use the thin class wrappers provided by MFC to simplify the task. Unfortunately, ATL does not "officially" provide this functionality.
Normally, this would require you to create your own classes or communicate with the controls by using messages. Thankfully, there is another option. In the ATLCON sample included with Visual C++, you will find ATLControls.h, which has created thin wrapper classes for the Windows Standard and Common Controls. These wrapper classes can be used to access controls on an ATL dialog box or ATL composite control.
Because these classes are not officially in ATL, they are only supported in the context of the sample included with this article. Should you need to, it is a straight-forward process to change the source code of your project's version of ATLControls.h.
Modification Type: | Major | Last Reviewed: | 6/26/2001 |
---|
Keywords: | kbATLWC kbCtrl kbhowto kbsample KB223439 |
---|
|