Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWindowProc() precision Pin
rp_suman16-Jul-07 5:08
rp_suman16-Jul-07 5:08 
QuestionRe: WindowProc() precision Pin
Mark Salsbery16-Jul-07 5:22
Mark Salsbery16-Jul-07 5:22 
AnswerRe: WindowProc() precision Pin
rp_suman16-Jul-07 21:32
rp_suman16-Jul-07 21:32 
GeneralRe: WindowProc() precision Pin
Mark Salsbery17-Jul-07 5:28
Mark Salsbery17-Jul-07 5:28 
GeneralRe: WindowProc() precision Pin
rp_suman17-Jul-07 19:53
rp_suman17-Jul-07 19:53 
GeneralRe: WindowProc() precision Pin
rp_suman17-Jul-07 22:01
rp_suman17-Jul-07 22:01 
GeneralRe: WindowProc() precision Pin
Mark Salsbery18-Jul-07 5:47
Mark Salsbery18-Jul-07 5:47 
QuestionListbox multi select problem [modified] Pin
pirat316-Jul-07 4:53
pirat316-Jul-07 4:53 
Hey guys, I have a form with two list boxes on it, both are inside a scroll box. I have multi select on, as I need the user to be able to click and drag the mouse to select multiple items without holding ctrl or shift. If I select any item in listbox #1, then select one in listbox #2, scroll down so neither are visible any longer. Now, if I click on anything that's not in the same listbox that was last clicked, (ie following the example above I click on an item in listbox #1 after scrolling down), the scroll box (which the listboxes are in) automatically scrolls all the way to the top, highlighting every item in that listbox from the one I clicked up to the item that is at the same mouse position as before scrolling. I believe it is a problem with losing focus, and I tried doing

On Mouse Down: ListBox->SetFocus(), but that didn't help (don't know if that's the right format). Any help would be appreciated, sorry if this is a really simple question. Thanks,

I found out the exact problem (I think)...now...just how to fix it :P The focus changes from one listbox to the next when it's clicked (both are within the scroll box). I need a way to have two separate focuses (foci?), one for each listbox. And when the scroll box moves all the way up, it's always a set amount : the number of times you clicked down (so...the number of vertical increments). So if I select something in one of the listboxes, then click one something in the other, then scroll down twice. After clicking on the first listbox, the scroll bar will move 2*increment of the scroll bar up and select all items within that range, in that listbox.

Alex


-- modified at 6:46 Tuesday 17th July, 2007
Question(ActiveX) Control in VC++6 as collection of Controls? Pin
Andy Rama16-Jul-07 4:46
Andy Rama16-Jul-07 4:46 
QuestionSetting Dialog Control Focus Pin
MRCres16-Jul-07 4:25
MRCres16-Jul-07 4:25 
AnswerDouble posting Pin
leckey16-Jul-07 4:30
leckey16-Jul-07 4:30 
AnswerRe: Setting Dialog Control Focus Pin
Stephen Hewitt16-Jul-07 14:27
Stephen Hewitt16-Jul-07 14:27 
QuestionSetting Dialog Control Focus Pin
MRCres16-Jul-07 4:21
MRCres16-Jul-07 4:21 
QuestionRe: Setting Dialog Control Focus Pin
Mark Salsbery16-Jul-07 5:52
Mark Salsbery16-Jul-07 5:52 
QuestionRe: Setting Dialog Control Focus Pin
MRCres16-Jul-07 9:34
MRCres16-Jul-07 9:34 
AnswerRe: Setting Dialog Control Focus Pin
Mark Salsbery16-Jul-07 9:40
Mark Salsbery16-Jul-07 9:40 
QuestionRe: Setting Dialog Control Focus Pin
David Crow16-Jul-07 10:22
David Crow16-Jul-07 10:22 
AnswerRe: Setting Dialog Control Focus Pin
MRCres17-Jul-07 2:43
MRCres17-Jul-07 2:43 
GeneralRe: Setting Dialog Control Focus Pin
David Crow17-Jul-07 2:46
David Crow17-Jul-07 2:46 
GeneralRe: Setting Dialog Control Focus Pin
MRCres23-Jul-07 6:14
MRCres23-Jul-07 6:14 
QuestionFlashWindowEx useage Pin
minkowski16-Jul-07 4:17
minkowski16-Jul-07 4:17 
AnswerRe: FlashWindowEx useage Pin
CPallini16-Jul-07 4:48
mveCPallini16-Jul-07 4:48 
AnswerRe: FlashWindowEx useage Pin
Michael Dunn16-Jul-07 6:53
sitebuilderMichael Dunn16-Jul-07 6:53 
QuestionRe: FlashWindowEx useage Pin
Hamid_RT25-Jul-07 7:51
Hamid_RT25-Jul-07 7:51 
Questionhow to get the description of port of remort pc on lan Pin
sumd16-Jul-07 4:05
sumd16-Jul-07 4:05 

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.