Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCustom Slider control messages cannot be caught Pin
AlbertB25-Aug-16 2:54
AlbertB25-Aug-16 2:54 
AnswerRe: Custom Slider control messages cannot be caught Pin
Richard MacCutchan25-Aug-16 3:47
mveRichard MacCutchan25-Aug-16 3:47 
GeneralRe: Custom Slider control messages cannot be caught Pin
AlbertB25-Aug-16 4:39
AlbertB25-Aug-16 4:39 
GeneralRe: Custom Slider control messages cannot be caught Pin
Richard MacCutchan25-Aug-16 4:59
mveRichard MacCutchan25-Aug-16 4:59 
GeneralRe: Custom Slider control messages cannot be caught Pin
AlbertB25-Aug-16 5:54
AlbertB25-Aug-16 5:54 
GeneralRe: Custom Slider control messages cannot be caught Pin
Bram van Kampen27-Aug-16 16:23
Bram van Kampen27-Aug-16 16:23 
GeneralRe: Custom Slider control messages cannot be caught Pin
AlbertB27-Aug-16 17:30
AlbertB27-Aug-16 17:30 
GeneralRe: Custom Slider control messages cannot be caught Pin
leon de boer28-Aug-16 22:27
leon de boer28-Aug-16 22:27 
As you are getting right down and dirty and away from the MFC framework there are more possibilities inside the Win32 API.

If you look at the WM_PARENTNOTIFY message
WM_PARENTNOTIFY message (Windows)[^]

If you are compiling for windows > VISTA you can actually stop the message going to the dialog at all and directly handle it within the slider using the extended flag WS_EX_NOPARENTNOTIFY style. Useful for making owner draw (skinned) sliders.

It isn't clear to me if you are trying to get the slider to change something directly on it's control (owner draw skin) or if you are changing something in the dialog viewport so it may or may not be useful depending what you are doing.

I know for example that WinTweaks has its thumb part of it's scrollbar animated, I used to love the flame one Smile | :)

A basic example of owner draw in MFC is on the site and it isn't simple (How to skin CListCtrl including scrollbars and column headers[^])
In vino veritas


modified 29-Aug-16 5:20am.

GeneralRe: Custom Slider control messages cannot be caught Pin
AlbertB29-Aug-16 3:17
AlbertB29-Aug-16 3:17 
GeneralRe: Custom Slider control messages cannot be caught Pin
leon de boer29-Aug-16 5:34
leon de boer29-Aug-16 5:34 
AnswerRe: Custom Slider control messages cannot be caught Pin
Stephen Hewitt25-Aug-16 6:33
Stephen Hewitt25-Aug-16 6:33 
GeneralRe: Custom Slider control messages cannot be caught Pin
Bram van Kampen27-Aug-16 16:10
Bram van Kampen27-Aug-16 16:10 
GeneralRe: Custom Slider control messages cannot be caught Pin
Bram van Kampen27-Aug-16 16:15
Bram van Kampen27-Aug-16 16:15 
QuestionCEdit::SetHighlight Pin
AlecJames25-Aug-16 0:48
AlecJames25-Aug-16 0:48 
QuestionRe: CEdit::SetHighlight Pin
Richard MacCutchan25-Aug-16 0:59
mveRichard MacCutchan25-Aug-16 0:59 
AnswerRe: CEdit::SetHighlight Pin
AlecJames25-Aug-16 3:49
AlecJames25-Aug-16 3:49 
AnswerRe: CEdit::SetHighlight Pin
Jochen Arndt25-Aug-16 2:01
professionalJochen Arndt25-Aug-16 2:01 
GeneralRe: CEdit::SetHighlight Pin
Richard MacCutchan25-Aug-16 2:41
mveRichard MacCutchan25-Aug-16 2:41 
GeneralRe: CEdit::SetHighlight Pin
leon de boer25-Aug-16 3:15
leon de boer25-Aug-16 3:15 
GeneralRe: CEdit::SetHighlight Pin
AlecJames25-Aug-16 3:54
AlecJames25-Aug-16 3:54 
GeneralRe: CEdit::SetHighlight Pin
Jochen Arndt25-Aug-16 5:14
professionalJochen Arndt25-Aug-16 5:14 
GeneralRe: CEdit::SetHighlight Pin
leon de boer25-Aug-16 15:36
leon de boer25-Aug-16 15:36 
GeneralRe: CEdit::SetHighlight Pin
AlecJames26-Aug-16 0:10
AlecJames26-Aug-16 0:10 
QuestionHow to test a synchronization object for lock? Pin
Krishnakumartg18-Aug-16 19:02
Krishnakumartg18-Aug-16 19:02 
AnswerRe: How to test a synchronization object for lock? Pin
Jochen Arndt18-Aug-16 22:06
professionalJochen Arndt18-Aug-16 22:06 

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.