Using Common Controls in ATL

I've got a problem activating Statusbar in a dialogbox using ATL. I created the Statusbar control using CStatusBarCtrl, and i set the test pane with some message. But since c doesn't display statusbar by default, i have to call ON_UPDATE_COMMAND_UI macro. But since i'm unable to use this macro in an ATL, the status bar doesn't display. If anyone knows how to display a status bar in an ATL, would be helpful to me.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

your ATL has a UI?
If you are building ATL component, while creating the workspace you can check the checkbox 'support MFC' which may allow you to use this macro directly.
By checking this box the wizard adds some header files and macros required to use mfc in ATL. You can find out these addition by creating dummy ATL workspace & add the same to your current workspace.
Hope this works.
Tommy HuiEngineerCommented:
ATL allows you to use simple MFC macros and classes within your ATL program. However, it does not support any of the MFC UI classes very well, primarily because these classes depend on the MFC application architecture. You can create your program as an MFC application and add ATL as needed. Or alternatively, use the Windows API to create your status bar and manipulate it via the Windows API.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.