Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » toolbar derived from CExtToolControlBar with combo - problem Collapse All
Subject Author Date
Daniel Aug 15, 2002 - 3:16 AM

Hi
I found an intresting, I think, bug. Basicly I created a new calss based on CExtToolControlBar and created comboboxes with the code shown on the web page. When the combo boxes are created in the MainFrame class they work generaly OK but created in the new class based on CExtToolControlBar (in OnCreate method)they dont work properly. They loose focus, dont open or rather not always which is even harder to find out what is the case with them. If anyone has any idea or has gone through the problem and gives the solution then I will be very grateful.
If ypu need an example I can send it to you
Daniel

Sergiy Lavrynenko Aug 16, 2002 - 10:47 AM

Hi Daniel
First of all, your toolbar’s OnCreate() method is not good place to intitialize items in your toolbar. The matter is MFC has some specific when creating windows. To initialize your custom toolbar items, please post some message from toolbar’s OnCreate() and then handle it.
Thank you for a good question.

Daniel Aug 19, 2002 - 4:58 PM

I tried to use your advice but with no better result. The combo box behaves as it did before. In some cases it opens in other it doesnt.
Thank you anyway for your answer.
Daniel