Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPControlComboBox::Copy don't copy selected item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlComboBox::Copy don't copy selected item

 Post Reply Post Reply
Author
Message
KirillMueller View Drop Down
Newbie
Newbie


Joined: 01 October 2007
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote KirillMueller Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlComboBox::Copy don't copy selected item
    Posted: 09 December 2012 at 5:18am
After CXTPControlComboBox::Copy, the copied control still has -1 as selected item. Is this by design?

I've fixed it in my copy of the code by adding 

SetCurSel(pControlCombo->GetCurSel());

as last statement (!) in CXTPControlComboBox::Copy, just after CXTPControlPopup::Copy(...). Adding it at any earlier point cannot work because the list of items is copied only in the CXTPControlPopup::Copy(...) call.

Otherwise, is there a way to make sure that a ComboBox control added to the "Quick Access" controls has the same state as the original control?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.