C++:How to call FindControl just with the TAG?

 

Hi,

 

I need to find a control (Button) just with the TAG.

 

How to do it with C++?

 

If I dont' know ControlType and ID, how to set this parameters?

Example: pBar->FindControl(NULL, NULL, TagName,false,true); (DOES NOT WORK)

 

 

 

From framewrk.tli:

 inline SolidEdgeFramework::CommandBarControlPtr SolidEdgeFramework::CommandBar::FindControl ( const _variant_t & Type, const _variant_t & Id, const _variant_t & Tag, const _variant_t & Visible, const _variant_t & Recursive ) {

    struct CommandBarControl * _result = 0;

    _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_DISPATCH, (void*)&_result,

        L"\x080c\x080c\x080c\x080c\x080c", &Type, &Id, &Tag, &Visible, &Recursive);

    return CommandBarControlPtr(_result, false);

}

 

 

Thanks in advance.

Best Regards

Massimo

 

Posted by: Massimo Magris
Post date: 7/2/2009 8:58:38 PM

1 REPLY

RE: C++:How to call FindControl just with the TAG?

Pass in "1" for the ID. Edge ignores an ID of one (assumes a match on the ID).

 

Posted by: R.D. Holland
Post date: 8/14/2009 10:28:58 AM