Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Displaying icon in the left of custom control on t
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Displaying icon in the left of custom control on t

 Post Reply Post Reply
Author
Message
Shinonome View Drop Down
Groupie
Groupie


Joined: 18 July 2008
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shinonome Quote  Post ReplyReply Direct Link To This Post Topic: Displaying icon in the left of custom control on t
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2011 at 12:05am
Hi,

Sorry, CustomControl only can show attached child windows 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Shinonome View Drop Down
Groupie
Groupie


Joined: 18 July 2008
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shinonome Quote  Post ReplyReply Direct Link To This Post 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.
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.172 seconds.