Print Page | Close Window

Displaying icon in the left of custom control on t

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18363
Printed Date: 25 November 2024 at 3:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Displaying icon in the left of custom control on t
Posted By: Shinonome
Subject: Displaying icon in the left of custom control on t
Date 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?



Replies:
Posted By: Oleg
Date Posted: 13 May 2011 at 12:05am
Hi,

Sorry, CustomControl only can show attached child windows 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Shinonome
Date Posted: 18 May 2011 at 3:22am
I think about the another way about this problem.
I am in the next version is expected to be displayed icons.

Thankyou.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net