Print Page | Close Window

WM_KICKIDLE on MainFrame with Modal Dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17060
Printed Date: 01 October 2024 at 8:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: WM_KICKIDLE on MainFrame with Modal Dialog
Posted By: jimmy
Subject: WM_KICKIDLE on MainFrame with Modal Dialog
Date Posted: 04 August 2010 at 3:55am
Hello,

How can i update the CommandBar on MainFrame, if there
is a ModalDialog open ?

With a Timer OnTimer: SendMessage(WM_KICKIDLE) ?

 Thanks
    Jimmy




Replies:
Posted By: Oleg
Date Posted: 05 August 2010 at 5:46am
MFC assumes if you have Modal dialog opened state of frame/view should not change.

Anyway you can try send WM_IDLEUPDATECMDUI from WM_KICKIDLE of your Modal dialog.



     ON_MESSAGE(WM_KICKIDLE, OnKickIdle)

LRESULT CDialogSampleDlg::OnKickIdle(WPARAM, LPARAM)
{
..
}


you don't need OnTimer - MFC send WM_KICKIDLE manually.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net