Print Page | Close Window

Problem: Change type from Button to SplitButton

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8673
Printed Date: 14 November 2025 at 1:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem: Change type from Button to SplitButton
Posted By: hikaroute
Subject: Problem: Change type from Button to SplitButton
Date Posted: 05 November 2007 at 9:04pm
I use the OnCreateControl function for check the ID of controls then change type to SplitButton but they never changed, how should I add source code more? because I checked the ID of controls and they are correct ID.
 
-------------------------------------------------------------------------------------------
int CMainWindow::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{
   if (lpCreateControl->nID == ID_BUTTON_D2D_LINE)
     {
          lpCreateControl->controlType = xtpControlSplitButtonPopup;
          return TRUE;
      }
      return FALSE;
}
------------------------------------------------------------------------------------------



Replies:
Posted By: Oleg
Date Posted: 06 November 2007 at 1:35am
Hello,
 
Must work. Set breakpoint to this line to be sure it was executed.


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


Posted By: hikaroute
Date Posted: 06 November 2007 at 3:09am

Yes oleg, you r right.  I have to work by myself before ask you.

But when I debug mp application by put the breakpoint in this function, this function are skipped by not stop in the breakpoint.  I don't know why?



Posted By: hikaroute
Date Posted: 06 November 2007 at 3:12am
Oh, I found that I miss something.  Thank you so much.


Posted By: Oleg
Date Posted: 06 November 2007 at 4:31am

ok :) as I told it must work :)



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



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