![]() |
GetControlCount() cannot get the seperator |
Post Reply
|
| Author | |
hikaroute
Groupie
Joined: 05 September 2007 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Topic: GetControlCount() cannot get the seperatorPosted: 31 March 2008 at 6:52am |
|
Hi,
I use the GetControlCount() function for get the count of the control but I have 4 subcontrol inside (3 controls + 1seperator) but the GetControlCount() return the value is only 3 (Should be 4). Whice function can use for get the real control with seperator? I think it can, but I don't know which to use.
Thank you.
|
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 March 2008 at 7:13am |
|
Hi,
Seperator has no control, it's only a flag of a other control. Jimmy |
|
![]() |
|
hikaroute
Groupie
Joined: 05 September 2007 Status: Offline Points: 51 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 March 2008 at 7:28am |
|
Hi jimmy, then can I get the total object in the menu? then I can know how many seperator in that menu? Or I want to know how to get the seperator and its position.
Thank you
|
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 March 2008 at 10:22am |
|
Hi,
CXTPControl::GetBeginGroup() return, if the control has a seperator on his top. for (nIndex = 0; nIndex < pControls->GetCount(); nIndex++, iMenuIndex++) { CXTPControl* pControl = pControls->GetAt(nIndex); if (pControl->GetBeginGroup()) iMenuIndex++; .... } Jimmy |
|
![]() |
|
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 |