[green]
//Define an accelerator object in your .h
[/green]
[blue]HACCEL myAccelerator[/blue]
[green]
//In your OnInitDialog Function in the cpp file, add this
[/green]
[blue]myAccelerator=LoadAccelerators(AfxGetInstanceHandle(),MAKEINTRESOURCE(MENU_PRIMARY_ACCEL));[/blue]
[green]
//Where MENU_PRIMARY_ACCEL is the resource name of the accelerator object
[/green]