Ahemski
Ahemski

Reputation: 93

AddItem in CMFCToolBarComboBoxButton - new value is not shown

I am using Visual Studio 2008.

I have a problem with AddItem in CMFCToolBarComboBoxButton.

I added CMFCToolBarComboBoxButton to tool bar (I used this solutions: click here).

The problem is call AddItem() method in run time.

I checked in Quick Watch object which calls this method. In this object, the new value appears. But I don't see it in application.

What can be wrong?

Thanks in advance.

Upvotes: 0

Views: 481

Answers (1)

Ahemski
Ahemski

Reputation: 93

There is wrong method to use. The correct method is ReplaceButton().

Upvotes: 1

Related Questions