Click here to Skip to main content
16,004,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to hanle header click & prevent of a list control Pin
Amrit Agr23-Mar-12 1:52
Amrit Agr23-Mar-12 1:52 
QuestionRe: How to hanle header click & prevent of a list control Pin
David Crow23-Mar-12 2:11
David Crow23-Mar-12 2:11 
AnswerRe: How to hanle header click & prevent of a list control Pin
Amrit Agr23-Mar-12 19:20
Amrit Agr23-Mar-12 19:20 
SuggestionRe: How to hanle header click & prevent of a list control Pin
David Crow24-Mar-12 12:29
David Crow24-Mar-12 12:29 
QuestionHow to set focus on an activeX? Pin
Member 875345022-Mar-12 18:48
Member 875345022-Mar-12 18:48 
AnswerRe: How to set focus on an activeX? Pin
Randor 23-Mar-12 7:27
professional Randor 23-Mar-12 7:27 
QuestionSubclassed CListCtrl Pin
David Crow22-Mar-12 11:18
David Crow22-Mar-12 11:18 
AnswerRe: Subclassed CListCtrl Pin
Jochen Arndt22-Mar-12 22:36
professionalJochen Arndt22-Mar-12 22:36 
I would use the second approach because it separates handling of the window (loose focus, mouse clicked outside, ESC/TAB pressed) from the list itself.

If clicking the scroll bar is your only problem, the solution is simple:
If the point is inside the client rect of the list control, you clicked the list, otherwise you clicked the scroll bar when inside the list controls window rect (the parent window client rect when using the second approach).
GeneralRe: Subclassed CListCtrl Pin
David Crow23-Mar-12 2:09
David Crow23-Mar-12 2:09 
GeneralRe: Subclassed CListCtrl Pin
Jochen Arndt23-Mar-12 2:26
professionalJochen Arndt23-Mar-12 2:26 
QuestionSerial Port / Windows Sockets clash Pin
ad_robot22-Mar-12 2:07
ad_robot22-Mar-12 2:07 
AnswerRe: Serial Port / Windows Sockets clash Pin
Jochen Arndt22-Mar-12 2:55
professionalJochen Arndt22-Mar-12 2:55 
QuestionRe: Serial Port / Windows Sockets clash Pin
ad_robot22-Mar-12 7:39
ad_robot22-Mar-12 7:39 
AnswerRe: Serial Port / Windows Sockets clash Pin
Jochen Arndt22-Mar-12 8:07
professionalJochen Arndt22-Mar-12 8:07 
GeneralRe: Serial Port / Windows Sockets clash Pin
ad_robot22-Mar-12 10:03
ad_robot22-Mar-12 10:03 
GeneralRe: Serial Port / Windows Sockets clash Pin
Jochen Arndt22-Mar-12 21:41
professionalJochen Arndt22-Mar-12 21:41 
GeneralRe: Serial Port / Windows Sockets clash Pin
ad_robot23-Mar-12 2:21
ad_robot23-Mar-12 2:21 
GeneralRe: Serial Port / Windows Sockets clash Pin
Jochen Arndt23-Mar-12 2:43
professionalJochen Arndt23-Mar-12 2:43 
Questiondebug dll not working Pin
appollosputnik21-Mar-12 6:05
appollosputnik21-Mar-12 6:05 
AnswerRe: debug dll not working Pin
Chris Losinger21-Mar-12 6:16
professionalChris Losinger21-Mar-12 6:16 
AnswerRe: debug dll not working Pin
Rajesh R Subramanian21-Mar-12 6:26
professionalRajesh R Subramanian21-Mar-12 6:26 
AnswerRe: debug dll not working Pin
Albert Holguin21-Mar-12 7:43
professionalAlbert Holguin21-Mar-12 7:43 
AnswerRe: debug dll not working Pin
Malli_S21-Mar-12 20:09
Malli_S21-Mar-12 20:09 
AnswerRe: debug dll not working Pin
Stephen Hewitt22-Mar-12 3:41
Stephen Hewitt22-Mar-12 3:41 
QuestionvCard Pin
wangxiaodong21-Mar-12 1:55
wangxiaodong21-Mar-12 1: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.