Loading ...
Sorry, an error occurred while loading the content.

Re: Tabbed navigation question

Expand Messages
  • Philip Zembrod
    ... You could try to send a TCM_SETCURSEL message to the tab control s handle. TCM_SETCURSEL takes the 0-based index of the desired tab item as WParam and 0 as
    Message 1 of 3 , Apr 19 3:32 AM
    • 0 Attachment
      > Date: Sun, 17 Apr 2005 15:24:29 -0000
      > From: "evenprime" <evenprime@...>
      > Subject: Tabbed navigation question
      >
      > I'm useing win32 guitest to automate some unscriptable applications
      > (not something I wrote, no OLE or WMI as options)
      >
      > I'm having trouble with tabbed navigation. Where buttons can be
      > controlled ala:
      >
      > PushChildButton($fgWindow, "^OK\$");
      >
      > Tabs seem to have to be clicked with coordinates relative to the
      > entire screen, and I can't always guarantee the window I need to
      > interact with will open in the same place everytime.
      >
      > Is their a way to get those coordinates relative to the active window?
      > Better yet, is their a way to determine which tab to activate
      > without coordinate based mouse clicks?

      You could try to send a TCM_SETCURSEL message to the tab control's handle.
      TCM_SETCURSEL takes the 0-based index of the desired tab item as WParam
      and 0 as LParam and should select the tab item.

      Regards
      Philip
    Your message has been successfully submitted and would be delivered to recipients shortly.