Click here to Skip to main content
15,910,411 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDBGrid Pin
Drawil3-Apr-02 0:13
Drawil3-Apr-02 0:13 
GeneralExact Caret Position in the Rich Edit Control Pin
internal2-Apr-02 23:51
internal2-Apr-02 23:51 
GeneralRe: Exact Caret Position in the Rich Edit Control Pin
alex.barylski3-Apr-02 0:17
alex.barylski3-Apr-02 0:17 
General3D graphics question Pin
alex.barylski2-Apr-02 23:49
alex.barylski2-Apr-02 23:49 
GeneralRe: 3D graphics question Pin
Paul M Watt3-Apr-02 5:54
mentorPaul M Watt3-Apr-02 5:54 
GeneralNetwork Card packet Programm! Pin
Reza Azizi2-Apr-02 23:28
Reza Azizi2-Apr-02 23:28 
GeneralWorking with DDS images Pin
benjymous2-Apr-02 23:20
benjymous2-Apr-02 23:20 
GeneralCFSTR_* Pin
2-Apr-02 23:20
suss2-Apr-02 23:20 
Hi I experience big troubles when trying to implement IDataObject with support for CFSTR_* formats.

I first enumerate my available formats, like

ASSUME0(celt == 1 && !pceltFetched);

if (nFormatsEnumerated == 0)
{
rgelt->cfFormat = ::RegisterClipboardFormat(CFSTR_FILEDESCRIPTOR);
rgelt->dwAspect = DVASPECT_CONTENT;
rgelt->lindex = -1;
rgelt->ptd = NULL;
rgelt->tymed = TYMED_HGLOBAL;
nFormatsEnumerated++;
return NOERROR;
}
else if (nFormatsEnumerated == 1)
{
rgelt->cfFormat = ::RegisterClipboardFormat(CFSTR_FILECONTENTS);
rgelt->dwAspect = DVASPECT_CONTENT;
rgelt->lindex = -1;
rgelt->ptd = NULL;
rgelt->tymed = TYMED_ISTREAM;
nFormatsEnumerated++;
return NOERROR;
}
else
{
return S_FALSE;
}

But when the data is requested, the lindex member of the FORMATETC structure is set to -1. I thought lindex would be set to the index of the file whose content is requested?

Anyone who has implmented this?
GeneralGet HWND from HINSTANCE Pin
Tran Hoang Chuong2-Apr-02 23:15
Tran Hoang Chuong2-Apr-02 23:15 
GeneralRe: Get HWND from HINSTANCE Pin
alex.barylski2-Apr-02 23:25
alex.barylski2-Apr-02 23:25 
GeneralRe: Get HWND from HINSTANCE Pin
Tran Hoang Chuong2-Apr-02 23:59
Tran Hoang Chuong2-Apr-02 23:59 
GeneralRe: Get HWND from HINSTANCE Pin
alex.barylski3-Apr-02 0:09
alex.barylski3-Apr-02 0:09 
GeneralRe: Get HWND from HINSTANCE Pin
Tran Hoang Chuong3-Apr-02 14:01
Tran Hoang Chuong3-Apr-02 14:01 
GeneralRe: Get HWND from HINSTANCE Pin
alex.barylski6-Apr-02 1:20
alex.barylski6-Apr-02 1:20 
QuestionOwnerdraw with underlined text? Pin
2-Apr-02 22:58
suss2-Apr-02 22:58 
AnswerRe: Ownerdraw with underlined text? Pin
alex.barylski2-Apr-02 23:33
alex.barylski2-Apr-02 23:33 
GeneralRe: Ownerdraw with underlined text? Pin
3-Apr-02 0:19
suss3-Apr-02 0:19 
GeneralRe: Ownerdraw with underlined text? Pin
alex.barylski3-Apr-02 0:24
alex.barylski3-Apr-02 0:24 
GeneralF... Enhanced Metafile, here I go again.... Pin
Braulio Dez2-Apr-02 22:47
Braulio Dez2-Apr-02 22:47 
QuestionHow to send ARP packet... Pin
2-Apr-02 22:32
suss2-Apr-02 22:32 
AnswerRe: How to send ARP packet... Pin
Mike Nordell2-Apr-02 22:36
Mike Nordell2-Apr-02 22:36 
GeneralRe: How to send ARP packet... Pin
8-Apr-02 2:05
suss8-Apr-02 2:05 
GeneralRe: How to send ARP packet... Pin
Mike Nordell15-Apr-02 12:37
Mike Nordell15-Apr-02 12:37 
GeneralHTMLHelp Search path Pin
peterchen2-Apr-02 22:31
peterchen2-Apr-02 22:31 
GeneralDisplay WINWORD on a dialog Pin
Tran Hoang Chuong2-Apr-02 20:08
Tran Hoang Chuong2-Apr-02 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.