At first you need some message-handler in your app. Notice: The function must get called from in the app (or in the main thread else it will crash).
Than you need a dialog: the easiest way is to create some with resource editor and use the wizard to create a class to wrap all up. I hope this
video explains all details.