Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - WM_KICKIDLE on MainFrame with Modal Dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

WM_KICKIDLE on MainFrame with Modal Dialog

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: WM_KICKIDLE on MainFrame with Modal Dialog
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.