How can I update my status-bar in MFC?
-
Hello everybody I have modified status bar in CMyMainFrame class to show current time.In fact I have added an Indicator_ID to add a place next to the other 3 default indicators on status bar(Caps lock/Num lock/Scroll lock). It generally works and show current time, But problem is that current time is updated just when I move the mouse or click somewhere. How can I update that pragmatically from inside the project? Best Regards.
-
Hello everybody I have modified status bar in CMyMainFrame class to show current time.In fact I have added an Indicator_ID to add a place next to the other 3 default indicators on status bar(Caps lock/Num lock/Scroll lock). It generally works and show current time, But problem is that current time is updated just when I move the mouse or click somewhere. How can I update that pragmatically from inside the project? Best Regards.
This has nothing to do with Managed C++/CLI. Please use the correct forum for your questions. You already have a question in the MFC forum. And the answer to your question is simply to use a timer as described at SetTimer function (winuser.h) - Win32 apps | Microsoft Docs[^].