![]() |
Displaying icon in the left of custom control on t |
Post Reply ![]() |
Author | |
Shinonome ![]() Groupie ![]() Joined: 18 July 2008 Status: Offline Points: 78 |
![]() ![]() ![]() ![]() ![]() Posted: 12 May 2011 at 4:16am |
I wrote code that put the custom control on tool bar.
Because I wanted to display the icon in the left of the custom control in OnCreateControl, the following codes were added. int CMainFrame::OnCreateControl( LPCREATECONTROLSTRUCT lpsCreateControl ) { int nRet = FALSE ; switch( lpsCreateControl->nID ) { case IDC_XXX : { lpsCreateControl->pControl = CXTPControlCustom::CreateControlCustom( &m_ctrlCustom ) ; lpsCreateControl->controlType = xtpControlCustom ; lpsCreateControl->buttonStyle = xtpButtonIcon ; nRet = TRUE ; break ; } } : : } However, the icon was not displayed. Isn't there method of solving this problem? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Sorry, CustomControl only can show attached child windows
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Shinonome ![]() Groupie ![]() Joined: 18 July 2008 Status: Offline Points: 78 |
![]() ![]() ![]() ![]() ![]() |
I think about the another way about this problem.
I am in the next version is expected to be displayed icons. Thankyou. |
|
![]() |
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 |