I have a SDI application which has a dialog inside it.I will display the dialog when a menu item is clicked. Inside the dialog I have a list control and a refresh button , which will display the records fetched from a database.
After the dialog is displayed whenever I press F5 Key, the dialog needs to get refreshed rather the lsit control should show me the updated records from the database.
Actually I have implemented that in the Refresh button.Also I am able to capture the F5 Key when it is pressed in a dialog by mapping Application's PreMessageFilter. But the thing is after pressing the F5 Key I could not able to get the dialog's list control / Refresh Button's function / methoda say OnRefresh().
Do anyone tell me how to get the handle of Refresh button or how to call Refresh Method of this Dialog.