Print Page | Close Window

GetControlCount() cannot get the seperator

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=10015
Printed Date: 14 November 2025 at 7:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetControlCount() cannot get the seperator
Posted By: hikaroute
Subject: GetControlCount() cannot get the seperator
Date Posted: 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.



Replies:
Posted By: jimmy
Date Posted: 31 March 2008 at 7:13am
Hi,

Seperator has no control, it's only a flag of a other control.

  Jimmy



Posted By: hikaroute
Date 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


Posted By: jimmy
Date 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




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