Click here to Skip to main content
15,917,456 members
Home / Discussions / C#
   

C#

 
GeneralRe: playing a wav file :- directx/c# Pin
S020035613-Jul-04 1:04
S020035613-Jul-04 1:04 
GeneralRe: playing a wav file :- directx/c# Pin
exhaulted13-Jul-04 1:14
exhaulted13-Jul-04 1:14 
GeneralRe: playing a wav file :- directx/c# Pin
S020035613-Jul-04 1:31
S020035613-Jul-04 1:31 
GeneralRe: playing a wav file :- directx/c# Pin
exhaulted13-Jul-04 1:39
exhaulted13-Jul-04 1:39 
GeneralRe: playing a wav file :- directx/c# Pin
S020035613-Jul-04 2:02
S020035613-Jul-04 2:02 
GeneralRe: playing a wav file :- directx/c# Pin
exhaulted13-Jul-04 2:31
exhaulted13-Jul-04 2:31 
GeneralRe: playing a wav file :- directx/c# Pin
S020035614-Jul-04 11:31
S020035614-Jul-04 11:31 
Generalneed an opinion.. Pin
OMalleyW12-Jul-04 9:02
OMalleyW12-Jul-04 9:02 
GeneralRe: need an opinion.. Pin
Nick Parker12-Jul-04 9:11
protectorNick Parker12-Jul-04 9:11 
GeneralRe: need an opinion.. Pin
OMalleyW12-Jul-04 9:35
OMalleyW12-Jul-04 9:35 
GeneralRe: need an opinion.. Pin
Heath Stewart12-Jul-04 9:41
protectorHeath Stewart12-Jul-04 9:41 
GeneralRe: need an opinion.. Pin
OMalleyW12-Jul-04 10:55
OMalleyW12-Jul-04 10:55 
Generalplaying a wav file :- directx/c# Pin
Anonymous12-Jul-04 8:57
Anonymous12-Jul-04 8:57 
GeneralClass or Struct Pin
Gomac12-Jul-04 7:34
Gomac12-Jul-04 7:34 
GeneralRe: Class or Struct Pin
Heath Stewart12-Jul-04 9:31
protectorHeath Stewart12-Jul-04 9:31 
QuestionScroll a Treeview in Code? Pin
selden0312-Jul-04 6:29
selden0312-Jul-04 6:29 
AnswerRe: Scroll a Treeview in Code? Pin
Jay Shankar12-Jul-04 20:54
Jay Shankar12-Jul-04 20:54 
QuestionConstructing a setup project with variable paths not working??? Pin
LongRange.Shooter12-Jul-04 5:13
LongRange.Shooter12-Jul-04 5:13 
QuestionCan not catch KeyDown message from RETURN key Pin
Roman Muntyanu12-Jul-04 3:49
Roman Muntyanu12-Jul-04 3:49 
AnswerRe: Can not catch KeyDown message from RETURN key Pin
Peter Vertes12-Jul-04 4:22
Peter Vertes12-Jul-04 4:22 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Nick Parker12-Jul-04 4:56
protectorNick Parker12-Jul-04 4:56 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Roman Muntyanu12-Jul-04 6:28
Roman Muntyanu12-Jul-04 6:28 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Mike Dimmick12-Jul-04 12:51
Mike Dimmick12-Jul-04 12:51 
Is it a CFormView? CFormView calls IsDialogMessage, which assumes that you're trying to press the default button on the form, or raises WM_COMMAND for IDOK if there is no default.

IsDialogMessage first probes the control with focus to see if it wants to handle this character. It does this by sending the control the WM_GETDLGCODE message. IIRC, the control has to return a code including the flag DLGC_WANTALLKEYS or DLGC_WANTMESSAGE in order to swallow the RETURN keypress. You'll need to experiment a little.

In your C# code, you'll probably have to override WndProc. The reason it works on a C# form is that the C# form manager doesn't use the pre-existing Windows dialog manager code - it's a new implementation.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Roman Muntyanu12-Jul-04 14:31
Roman Muntyanu12-Jul-04 14:31 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Roman Muntyanu14-Jul-04 1:55
Roman Muntyanu14-Jul-04 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.