They do exist. vis.

P:\test>type 275606.pl #! perl -slw use strict; use Win32::GuiTest qw[ GetComboText GetComboContents ]; eval{ GetComboText() } or print $@; eval{ GetComboContents() } or print $@; P:\test>275606 Usage: Win32::GuiTest::GetComboText(hwnd, index) at P:\test\275606.pl +line 5. Usage: Win32::GuiTest::GetComboContents(hWnd) at P:\test\275606.pl lin +e 6.

Though the documentation for them seems to be completely absent. Looking through guitest.xs, GetComboText() & GetComboContents() map to a calls to GetTextHelper()

SV* GetComboText(hwnd, index) HWND hwnd; int index CODE: RETVAL = GetTextHelper(hwnd, index, CB_GETLBTEXTLEN, CB_GETLBT +EXT); OUTPUT: RETVAL SV* GetComboText(hwnd, index) HWND hwnd; int index CODE: RETVAL = GetTextHelper(hwnd, index, CB_GETLBTEXTLEN, CB_GETLBT +EXT); OUTPUT: RETVAL

Which in turn gets mapped to calls to SendMessage().

SV* GetTextHelper(HWND hwnd, int index, UINT lenmsg, UINT textmsg) { SV* sv = 0; int len = SendMessage(hwnd, lenmsg, index, 0L); char* text = (char*)safemalloc(len+1); if (text != 0) { SendMessage(hwnd, textmsg, index, (LPARAM)text); sv = newSVpv(text, len); safefree(text); } return sv; }

So, it would be a case of fightling your way through the MSDN documentation relating to ComboBoxes to work out what and how and why, which the module author must have done to bring you the module in the first place. All of which reenforces my opening comments above:

It would not be easy, and it would require either a pretty goood understanding of the Win32 APIs or a lot of research and perseverance.

It all comes down to how desperately you need to do this.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

In reply to Re^3: Perl application to read the current browser page by BrowserUk
in thread Perl application to read the current browser page by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.