![]() |
CXTToolBarPopupWnd Icon Swap Feature |
Post Reply
|
| Author | |
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTToolBarPopupWnd Icon Swap FeaturePosted: 24 February 2006 at 12:38am |
|
Hi, CXTToolBarPopupWnd The popup window contains a separate toolbar that will swap out the image with the newly selected command. Works similar to MS Word's border dropdown button. How can i implement the same swap out feature in 9.81 XT Pro ? Thanks in advance
|
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 February 2006 at 7:47am |
|
Hello, See TearOffPopups sample. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 February 2006 at 12:51am |
|
Hello, older CXTToolBarPopupWnd provides icon swap i want to change the icon of commandbar button(splitbuttonpopup) (TearOffPopups and Office11 doesn't swap icons. their implementation thanks in advance |
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 February 2006 at 12:11am |
|
Hi, ON_UPDATE_COMMAND_UI_RANGE(ID_BDR_OUTSIDE,ID_BDR_RIGHT, OnUpdateBorder) void CMainFrame::OnUpdateBorder(CCmdUI* pCmdUI) when i click a button in a tear-offed border toolbar when i click a button in the border popupbar(without tear-off it) |
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 February 2006 at 8:22am |
|
Here code you need: CMainFrame::CMainFrame() m_nBorderIcon = ID_BDR_NONE; void CMainFrame::OnBorders(UINT nID) m_nBorderIcon = nID; } void CMainFrame::OnUpdateBorders(CCmdUI* pCmdUI) if (pCmdUI->m_nID == ID_BDR_NONE) } |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 February 2006 at 10:31pm |
|
thanks, I can change the icon but there is some redraw problem (see my previous post) |
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 February 2006 at 7:59am |
|
Hello, I tested it before send and it worked. Can you attach project you have now? |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 February 2006 at 10:36pm |
|
Hi, Hearty
|
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
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 |