Click here to Skip to main content
16,010,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: When i override OnKeyDown... Pin
Nick Parker7-Feb-03 19:53
protectorNick Parker7-Feb-03 19:53 
QuestionRemoting a MFC object? Pin
Nish Nishant7-Feb-03 3:33
sitebuilderNish Nishant7-Feb-03 3:33 
AnswerRe: Remoting a MFC object? Pin
leppie7-Feb-03 7:54
leppie7-Feb-03 7:54 
AnswerRe: Remoting a MFC object? Pin
Nick Parker7-Feb-03 8:31
protectorNick Parker7-Feb-03 8:31 
Generaladvanced how-to question from a newbie. Pin
rusmo7-Feb-03 3:17
rusmo7-Feb-03 3:17 
GeneralRe: advanced how-to question from a newbie. Pin
rusmo277-Feb-03 4:53
rusmo277-Feb-03 4:53 
GeneralOverriding MouseWheel Pin
jpwkeeper7-Feb-03 0:56
jpwkeeper7-Feb-03 0:56 
GeneralRe: Overriding MouseWheel Pin
Jeff J7-Feb-03 8:43
Jeff J7-Feb-03 8:43 
MouseWheel events are often a pain, as they are not part of the original Win32 API, and diverted to extra DLLs like those in IntelliPoint or Logitech mouse software. Standard window behaviour is to bubble the event to a parent window, and wheel scrolls are automatically handled.

From your description, it sounds like wheel events are processed before OnMouseWheel() is called to signal the event, so presumably it just acts as a post-event notification. I have struggled with this before in both MFC and .Net.

You might want to intercept WM_MOUSEWHEEL earlier on, by overriding PreProcessMessage(). Controls intercept all, and pre-handle several messages, at that stage, before passing the messages (and some never propogate further) to the defined event handlers. By not passing WM_MOUSEWHEEL to base.PreProcessMessage(), you should be able to keep the parent from handling it.

Cheers
GeneralSkinning Pin
daboss6-Feb-03 23:46
daboss6-Feb-03 23:46 
QuestionChecking files on server via http? Pin
lustuyck6-Feb-03 23:44
lustuyck6-Feb-03 23:44 
AnswerRe: Checking files on server via http? Pin
leppie7-Feb-03 6:38
leppie7-Feb-03 6:38 
GeneralPure Tones - Sound generation from scratch. Pin
mkearl6-Feb-03 23:42
mkearl6-Feb-03 23:42 
GeneralRe: Pure Tones - Sound generation from scratch. Pin
Richard Deeming7-Feb-03 0:16
mveRichard Deeming7-Feb-03 0:16 
GeneralGuid and String Pin
devvvy6-Feb-03 23:30
devvvy6-Feb-03 23:30 
GeneralRe: Guid and String Pin
StephanBoome7-Feb-03 0:51
StephanBoome7-Feb-03 0:51 
GeneralRe: Guid and String Pin
devvvy7-Feb-03 0:53
devvvy7-Feb-03 0:53 
Questionpossibly a question without a awnser ? Pin
jtmtv186-Feb-03 23:11
jtmtv186-Feb-03 23:11 
AnswerRe: possibly a question without a awnser ? Pin
Philip Fitzsimons6-Feb-03 23:37
Philip Fitzsimons6-Feb-03 23:37 
GeneralRe: possibly a question without a awnser ? Pin
leppie7-Feb-03 11:09
leppie7-Feb-03 11:09 
QuestionStructure array is the member another structure? Pin
JuhaKa6-Feb-03 23:03
JuhaKa6-Feb-03 23:03 
AnswerRe: Structure array is the member another structure? Pin
leppie7-Feb-03 11:19
leppie7-Feb-03 11:19 
GeneralException creating a control Pin
chito6-Feb-03 16:03
chito6-Feb-03 16:03 
GeneralRe: Exception creating a control Pin
James T. Johnson6-Feb-03 18:42
James T. Johnson6-Feb-03 18:42 
QuestionHow can I make Command at runtime? Pin
bania6-Feb-03 15:40
bania6-Feb-03 15:40 
AnswerRe: How can I make Command at runtime? Pin
leppie6-Feb-03 21:53
leppie6-Feb-03 21:53 

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.