![]() |
SetButtonInfo and GetItemRect replacements? |
Post Reply
|
| Author | |
prashant
Senior Member
Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
Quote Reply
Topic: SetButtonInfo and GetItemRect replacements?Posted: 13 August 2007 at 4:17am |
|
Hi,
Can anybody tell me what are the replacement functions in Codejock 10.4.2 for SetButtonInfo and GetItemRect ? Previously I am deriving my class from CXTToolBar and as per present implementation I am deriving my class from CXTPToolBar. My requirement is to display combo box on Toolbar. My previous code is as follows:- int nID=ID_PRIMARY_VIEW_COMBO; int nDropHeight=150; //SetButtonInfo(nIndex, nID, TBBS_SEPARATOR, w); CRect rect; //GetItemRect(nIndex, &rect); rect.top = 0; rect.bottom = rect.top + nDropHeight; if (!m_MasterViewListCombo.Create( CBS_DROPDOWNLIST|CBS_AUTOHSCROLL| WS_VISIBLE|WS_TABSTOP|WS_VSCROLL|WS_HSCROLL, rect, this, nID)) { TRACE("Failed to create combo-box\n"); return FALSE; } Thanks in advance. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 August 2007 at 8:51am |
|
Hello,
to add separator call
pToolBar->GetControl(i)->SetBeginGroup(TRUE);
to get rect call
pToolBar->GetControl(i)->GetRect();
Please check our samples. Better use our CXTPControlComboBox to use current theme for combo.
\Samples\CommandBars\CommonControls shows how to add standard combos to toolbar
\Samples\CommandBars\CustomThemes how to add themed combos.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |