Problem with CToolBar and Manifest

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have noticed problems with the CToolBar class when using a manifest file
in VC++ 2003. To test my theory I created an empty MFC MDI project with the
manifest file so I get the WinXP style controls. When running the project I
found the following, after-which, single-clicks on buttons cause the button
to stay down and attempting to move the toolbar causes an exception error:

Hold Ctrl+Alt keys down.
Right-click on an enabled toolbar button and hold.
Left-click and hold on same button, release right mouse button.
Presto, problem found.

If the manifest file is removed from the project the WinXP styles are
obviously unused, but there are no problems of this nature. This is surely a
bug within the new common controls; or I am doing somthing wrong? Please bare
in mind that I am using the standard "MFC Application" app wizard.

Does anybody know a way around this?

Lea Hayes
 
Hi again,

Through further testing I found that the Ctrl+Alt has nothing to do with the
problem. Simply right-clicking (and holding) then left-clicking (and holding)
followed by releasing the right button and then left button causes the
problem. Then single left clicks force buttons to stay down.
 
Back
Top