Click here to Skip to main content
15,921,454 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Roman Muntyanu12-Jul-04 14:31
Roman Muntyanu12-Jul-04 14:31 
Thanks Mike for attention to the problem.

Actually I managed to catch pressing Enter key in WindowProc overriden method in CFormView with WM_COMMAND message for IDOK. Then I simplify my testing project and put C# control on CDialog. Same thing. On C# side I cannot catch Enter in overriden WndProc. No messages at all when pressing Enter. Probably message could not reach C# control on its way. So I need to do all necessary message calls on C++ side in WindowPoc. I tried to call TranslateMessage(msg) with hwnd of my RichTextBox to get WM_CHAR in textbox. This call was not successful and returned 0. When I did the same call against CEdit control it worked and message was translated. Now the question for me is : which kind of message should I send to RichTextBox ? Maybe it is IsDialogMessage(RichTextBox_HWND, WM_KEYDOWN_MSG) if I understood your comment correctly. I hope RichTextBox will swallow Return keypress. But I need to know hwnd of RichTextBox. For testing app it was not difficult. But in real app will not be so easy to get it on surface. Any idea how to avoid knowing RichTextBox hwnd ?
Thanks a lot

Roman
GeneralRe: Can not catch KeyDown message from RETURN key Pin
Roman Muntyanu14-Jul-04 1:55
Roman Muntyanu14-Jul-04 1:55 
Generalblock an IP Pin
chuchichäschtli12-Jul-04 2:28
chuchichäschtli12-Jul-04 2:28 
GeneralRe: block an IP Pin
Heath Stewart12-Jul-04 3:04
protectorHeath Stewart12-Jul-04 3:04 
Generalrequest socket Pin
shahrokh nabavi12-Jul-04 1:31
shahrokh nabavi12-Jul-04 1:31 
GeneralRe: request socket Pin
Heath Stewart12-Jul-04 4:07
protectorHeath Stewart12-Jul-04 4:07 
Generalrequest socket Pin
shahrokh nabavi12-Jul-04 1:29
shahrokh nabavi12-Jul-04 1:29 
GeneralA serious bug of list view in compact framework Pin
ting66812-Jul-04 0:18
ting66812-Jul-04 0:18 
GeneralRe: A serious bug of list view in compact framework Pin
Mike Dimmick12-Jul-04 12:43
Mike Dimmick12-Jul-04 12:43 
GeneralRe: A serious bug of list view in compact framework Pin
ting66812-Jul-04 18:29
ting66812-Jul-04 18:29 
GeneralRe: A serious bug of list view in compact framework Pin
ting66812-Jul-04 21:01
ting66812-Jul-04 21:01 
General2 questions Pin
bouli11-Jul-04 23:37
bouli11-Jul-04 23:37 
GeneralRe: 2 questions Pin
Mike Dimmick11-Jul-04 23:56
Mike Dimmick11-Jul-04 23:56 
GeneralRe: 2 questions Pin
bouli12-Jul-04 0:25
bouli12-Jul-04 0:25 
GeneralRe: 2 questions Pin
Heath Stewart12-Jul-04 3:14
protectorHeath Stewart12-Jul-04 3:14 
GeneralRe: 2 questions Pin
bouli12-Jul-04 3:36
bouli12-Jul-04 3:36 
GeneralRe: 2 questions Pin
Heath Stewart12-Jul-04 4:02
protectorHeath Stewart12-Jul-04 4:02 
GeneralRe: 2 questions Pin
bouli12-Jul-04 4:10
bouli12-Jul-04 4:10 

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.