Refresh Tab Controls
-
Hi all, I have an application with several tabs, selection made in one tab is suppose to update the values on a few other tabs (from database). I tried creating a function and call it when the selection is change. This function activates the refresh buttons on the various tabs. But this method is unable to work. XXXOnDbClick() { // processing done here ............. // processing end Ctab1 *tab1; Ctab2 *tab2; tab1->Refresh(); tab2->Refresh(); } void XXX:Refresh(); { // as the button is private, this is the only way I can activate it OnButtonRefresh(); } I want to be able to view the updated values when selecting the tab instead of having to press the refresh button everytime. Thanks in advance.
-
Hi all, I have an application with several tabs, selection made in one tab is suppose to update the values on a few other tabs (from database). I tried creating a function and call it when the selection is change. This function activates the refresh buttons on the various tabs. But this method is unable to work. XXXOnDbClick() { // processing done here ............. // processing end Ctab1 *tab1; Ctab2 *tab2; tab1->Refresh(); tab2->Refresh(); } void XXX:Refresh(); { // as the button is private, this is the only way I can activate it OnButtonRefresh(); } I want to be able to view the updated values when selecting the tab instead of having to press the refresh button everytime. Thanks in advance.
Handle TCN_SELCHANGE instead of WM_LBUTTONDBLCLK