Q1) I have a timer running that updates my window every 1/4 second. I only route the timer message to the active tab, so I don’t waste time reading controls from hardware that will never get displayed. When the user switches to a new tab, it takes 1/4 second for the new data to appear (which looks pretty strange). How can I detect the tab switch before the new tab is actually displayed? At the moment I can only find out the tab has switched after the new tab is displayed.
Q2) I have an editable label that gets updated from the same timer mentioned above. I need to detect that the user is in “edit mode” so I stop updating the control from the timer (thus overwriting what the poor sap is typing). Again, I can only detect that the user has changed something once they press enter or move the focus to another control.