Plex 2E

 View Only
  • 1.  C# Equivalent of GetWindowTitle

    Posted Aug 07, 2014 04:02 PM

    Need to get an Equivalent API to get the Current Window title

     

    In C++ I have an API

    pObPanel pCurrentPanel = ObUserAPI::pGetCurrentPanel();

    HWND pCurrentHWND = ObPanelAPI::GetHandleFromPanel(pCurrentPanel);

    char buffer[256];

    GetWindowText( pCurrentHWND, buffer, 256);

    &(1:).SetText(buffer);

     

     

    I need to get an Equivalent in C#

     

    Any C# Experts ?



  • 2.  Re: C# Equivalent of GetWindowTitle

    Posted Aug 08, 2014 02:22 AM

    for panel caption it is "field.Value = panel.Title;" and if you want to set value it is "fnc.ObUI.Main,SetUITitle(field.Value);"

    Where field is the parameter passed to the API