Link to home
Start Free TrialLog in
Avatar of joji
joji

asked on

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.
Avatar of freshmeat
freshmeat

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.
ASKER CERTIFIED SOLUTION
Avatar of Tommy Hui
Tommy Hui

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial