Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generallosing stdin when redirecting stdout and stderr Pin
Peter Weyzen23-Jul-02 11:19
Peter Weyzen23-Jul-02 11:19 
Generaldrag drop, list view Pin
Chris Losinger23-Jul-02 9:48
professionalChris Losinger23-Jul-02 9:48 
GeneralRe: drag drop, list view Pin
CaesarCZ23-Jul-02 11:45
CaesarCZ23-Jul-02 11:45 
GeneralRe: drag drop, list view Pin
l a u r e n23-Jul-02 12:27
l a u r e n23-Jul-02 12:27 
GeneralRe: drag drop, list view Pin
Shog923-Jul-02 17:58
sitebuilderShog923-Jul-02 17:58 
GeneralRe: drag drop, list view Pin
Bhikshapathi Gorantla23-Jul-02 19:07
Bhikshapathi Gorantla23-Jul-02 19:07 
GeneralRe: drag drop, list view Pin
Shog924-Jul-02 6:03
sitebuilderShog924-Jul-02 6:03 
GeneralRe: drag drop, list view Pin
Chris Losinger23-Jul-02 19:18
professionalChris Losinger23-Jul-02 19:18 
it's an icon view, so i don't have an insertion mark.

what i do in OnMouseMove (currently, and it works no worse or better than anything else i've tried):

1. HitTest to see which item the drag is over

2. if it's an item (and not the item we were over the last time), set the new item highlight state and clear the old item's highlight state

3. regardless of hittest:
DragShowNolock(false)
UpdateWindow
DragShowNolock(true)
DragMove

4. then handle the out-of-rect stuff to do an autoscroll effect (this isn't the cause of the flicker, as it only kicks in when you've left the client rect)

i can move the DragShowNolock(false) anywhere before 3, with no effect

i can put the DragMove anywhere with only slight effect. sometimes, i can make it so the drag image is under the list items.

i get a really nice smooth draw if i get rid of both DragShowNolock calls, but then the listview items don't repaint themselves correctly.

-c


To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
   /. #3848917

GeneralRe: drag drop, list view Pin
Shog924-Jul-02 5:51
sitebuilderShog924-Jul-02 5:51 
GeneralRe: drag drop, list view Pin
Shog922-Sep-04 7:53
sitebuilderShog922-Sep-04 7:53 
QuestionCDatabase.OpenEx -> obstinate DSN? Pin
Leonard23-Jul-02 9:06
Leonard23-Jul-02 9:06 
Generallistview control question... Pin
l a u r e n23-Jul-02 8:36
l a u r e n23-Jul-02 8:36 
GeneralRe: listview control question... Pin
Jeremy Falcon23-Jul-02 8:57
professionalJeremy Falcon23-Jul-02 8:57 
GeneralRe: listview control question... Pin
l a u r e n23-Jul-02 11:25
l a u r e n23-Jul-02 11:25 
GeneralRe: listview control question... Pin
Shog923-Jul-02 9:05
sitebuilderShog923-Jul-02 9:05 
GeneralRe: listview control question... Pin
l a u r e n23-Jul-02 11:26
l a u r e n23-Jul-02 11:26 
GeneralPassing data from any app to Visual C++ COM objects Pin
Emilio Guijarro23-Jul-02 8:35
Emilio Guijarro23-Jul-02 8:35 
GeneralRe: Passing data from any app to Visual C++ COM objects Pin
l a u r e n23-Jul-02 8:41
l a u r e n23-Jul-02 8:41 
GeneralRe: Passing data from any app to Visual C++ COM objects Pin
Mel Stober23-Jul-02 12:41
Mel Stober23-Jul-02 12:41 
GeneralCustomizing afxMessageBox Icons Pin
JLSogorb23-Jul-02 7:55
sussJLSogorb23-Jul-02 7:55 
GeneralRe: Customizing afxMessageBox Icons Pin
Joaquín M López Muñoz23-Jul-02 12:10
Joaquín M López Muñoz23-Jul-02 12:10 
Generalsyntax error : 'catch' Pin
moredip23-Jul-02 6:46
moredip23-Jul-02 6:46 
GeneralRe: syntax error : 'catch' Pin
Scott H. Settlemier23-Jul-02 7:03
Scott H. Settlemier23-Jul-02 7:03 
GeneralRe: syntax error : 'catch' Pin
moredip23-Jul-02 7:10
moredip23-Jul-02 7:10 
GeneralRe: syntax error : 'catch' Pin
Joaquín M López Muñoz23-Jul-02 7:17
Joaquín M López Muñoz23-Jul-02 7:17 

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.