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

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

--- 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