Re: [WIN] copy SIMPLE combo box selection into clipboard

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt,

Thanks,

I'm not sure how to use your first suggestion, but I had thought of your
second, but didn't know how to make the text I would put in the hidden edit
*selected*, so the "copy" would work on it; but I accidentally came across
something I'd saved once, mentioning what seemed to be exactly the "command"
I needed to make text in a "range" selected....now if I can just find it
*again*!!

Dan

----- Original Message -----
From: "Matt Lewis" <matthewwalkerlewis at YAHOO.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, October 22, 2000 12:35 PM
Subject: Re: [WIN] copy SIMPLE combo box selection into clipboard


> --- Dan B Moyer <DANMOYER at PRODIGY.NET> wrote:
> > Whoops,
> > I should have said,  (how) can I get an item selected in a SIMPLE combo
box
> > copied into the clipboard?
> >
>
> You probably need to use the clipboard functions defined in user32.dll:
>
> OpenClipboard, SetClipboardData, CloseClipboard, EmptyClipboard:
>
> BOOL OpenClipboard(  HWND hWndNewOwner   // handle to window opening
> clipboard);
> BOOL CloseClipboard(VOID)
> HANDLE SetClipboardData(  UINT uFormat, // clipboard format
>   HANDLE hMem   // data handle);
> BOOL EmptyClipboard(VOID)
>
> Alternatively, you could create a hidden edit control, set the text to
whatever
> is selected in the combo, and use the win32lib copy() routine on the edit
> control.
>
>
>
> =====
> Matt Lewis
> http://www.realftp.com/matthewlewis
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf!  It's FREE.
> http://im.yahoo.com/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu