Click here to Skip to main content
16,010,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use WM_WTSSESSION_CHANGE? Pin
Blake Miller15-Apr-04 9:36
Blake Miller15-Apr-04 9:36 
GeneralDUN Pin
AusBloke18-Mar-02 6:28
AusBloke18-Mar-02 6:28 
GeneralRe: DUN Pin
Vladimir Georgiev18-Mar-02 7:58
Vladimir Georgiev18-Mar-02 7:58 
GeneralRe: DUN Pin
AusBloke18-Mar-02 9:25
AusBloke18-Mar-02 9:25 
GeneralRe: DUN Pin
Carlos Antollini18-Mar-02 8:42
Carlos Antollini18-Mar-02 8:42 
GeneralRe: DUN Pin
AusBloke18-Mar-02 9:24
AusBloke18-Mar-02 9:24 
GeneralRe: DUN Pin
19-Mar-02 7:16
suss19-Mar-02 7:16 
GeneralDrag & Drop Pin
Li Mu Bai18-Mar-02 5:53
Li Mu Bai18-Mar-02 5:53 
Hi Chaps,

Anyone got any drag & drop code examples?
having a bit of trouble with the leftbuttonup function and the HitTest() not working properly

I did this:

void CRunEICDlg::OnLButtonUp(UINT nFlags, CPoint point)
{
if( m_bDragging )
{
ASSERT(m_pimagelist != NULL);
m_pimagelist->EndDrag();
CImageList* pTemp = m_pimagelist;
m_pimagelist = NULL;
delete pTemp;
ReleaseCapture();
m_bDragging = false;
}
// CPoint point;
// GetCursorPos( &point );
m_cTestSeq.ClientToScreen( &point );


UINT flags;
int item;
item = m_cTestSeq.HitTest( point, &flags );

item = item;

if( LVHT_NOWHERE | flags )
{
// add to end
item = item;
}
else if( LVHT_ONITEM | flags )
{
// insert before the item
item = item;
}

// }


CDialog::OnLButtonUp(nFlags, point);
}


But it doesnt recognise when the leftbutton was let go in the listControl window
any comments greatfully received


The Wudan Master
GeneralRe: Drag & Drop Pin
Tomasz Sowinski18-Mar-02 5:55
Tomasz Sowinski18-Mar-02 5:55 
GeneralFlickering list control Pin
Andrew Stampor18-Mar-02 5:26
Andrew Stampor18-Mar-02 5:26 
GeneralRe: Flickering list control Pin
Tomasz Sowinski18-Mar-02 5:43
Tomasz Sowinski18-Mar-02 5:43 
GeneralRe: Flickering list control Pin
Andrew Stampor18-Mar-02 6:36
Andrew Stampor18-Mar-02 6:36 
GeneralRe: Flickering list control Pin
Tomasz Sowinski18-Mar-02 7:06
Tomasz Sowinski18-Mar-02 7:06 
GeneralRe: Flickering list control Pin
Andrew Stampor18-Mar-02 10:36
Andrew Stampor18-Mar-02 10:36 
QuestionSame caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 5:10
generic_user_id18-Mar-02 5:10 
AnswerRe: Same caption problem as before, what am I doing wrong? Pin
Paul M Watt18-Mar-02 5:32
mentorPaul M Watt18-Mar-02 5:32 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 5:57
generic_user_id18-Mar-02 5:57 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
Ravi Bhavnani18-Mar-02 6:21
professionalRavi Bhavnani18-Mar-02 6:21 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 6:56
generic_user_id18-Mar-02 6:56 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
Paul M Watt18-Mar-02 7:50
mentorPaul M Watt18-Mar-02 7:50 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 9:24
generic_user_id18-Mar-02 9:24 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
Paul M Watt18-Mar-02 9:48
mentorPaul M Watt18-Mar-02 9:48 
GeneralRe: Same caption problem as before, what am I doing wrong? Pin
generic_user_id18-Mar-02 11:06
generic_user_id18-Mar-02 11:06 
GeneralActiveX problem Pin
18-Mar-02 4:49
suss18-Mar-02 4:49 
GeneralRe: ActiveX problem Pin
Michael P Butler18-Mar-02 4:55
Michael P Butler18-Mar-02 4:55 

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.