Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - GetControlCount() cannot get the seperator
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetControlCount() cannot get the seperator

 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: GetControlCount() cannot get the seperator
    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.
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2008 at 7:13am
Hi,

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

  Jimmy

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: 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
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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

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.078 seconds.