Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've got a problem when I navigate controls using Mnemonics such as (ALT + O) for Ok button. I have a parent dialog, under it I've placed a child dialog. On Parent dialog there is a Ok button with O letter underlined. On child dialog, I've a Move button with M button underlined. When the focus is on Parent dialog and I press ALT + M, the Move button should be pressed, but it doesn't. Same happens when focus is on child dialog, the Ok button doesn't respond.



I am very much confused. Please suggest me what should I do?

- Abhay
Posted
Updated 15-Jul-10 2:53am
v2
Comments
Johnny J. 15-Jul-10 8:50am    
You are indeed confused. First of all: Don't put your email in your post at all. That's only going to attract spam mail to your account. Second of all: Don't put it as the subject either. The subject should give a short description of your problem so that people that feel that it is something they know something about feel inclined to read your post.

This seems to be a common confusion these days.

As soon as your main dialog starts the child dialog the child has the focus and you can only access the commands of the child. Until the child closes the parent dialog is deactivated and will not receive any messages. If you need to access commands of both dialogs at the same time then you must make the child dialog modeless.
 
Share this answer
 
Make sure your child dialog has the style Control=true in the resource editor. I think it corresponds to the WS_EX_CONTROLPARENT style.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900