![]() |
Problem: Change type from Button to SplitButton |
Post Reply
|
| Author | |
hikaroute
Groupie
Joined: 05 September 2007 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem: Change type from Button to SplitButtonPosted: 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;
}
------------------------------------------------------------------------------------------ |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
hikaroute
Groupie
Joined: 05 September 2007 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
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? |
|
![]() |
|
hikaroute
Groupie
Joined: 05 September 2007 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 November 2007 at 3:12am |
|
Oh, I found that I miss something. Thank you so much.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 November 2007 at 4:31am |
|
ok :) as I told it must work :) |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |