How do I respond to a dynamically added button?
-
Hi, I've created a button dynamically but I only know how to respond to the button by assigning a handler using the wizard, but how do I go about it now?! /Tommy
-
Hi, I've created a button dynamically but I only know how to respond to the button by assigning a handler using the wizard, but how do I go about it now?! /Tommy
WM_COMMAND will recieve a BN_CLICKED message which includes the ID of the button and so on. I've been doing it in Win32, but I'm sure you can override WM_COMMAND in MFC, or otherwise do it through PreTranslateMessage otherwise ( the last resort ;0) Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.