Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem: Change type from Button to SplitButton
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem: Change type from Button to SplitButton

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


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post Topic: Problem: Change type from Button to SplitButton
    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;
}
------------------------------------------------------------------------------------------
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
hikaroute View Drop Down
Groupie
Groupie


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
hikaroute View Drop Down
Groupie
Groupie


Joined: 05 September 2007
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote hikaroute Quote  Post ReplyReply Direct Link To This Post Posted: 06 November 2007 at 3:12am
Oh, I found that I miss something.  Thank you so much.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 06 November 2007 at 4:31am

ok :) as I told it must work :)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.063 seconds.